From: Carsten Schlote <[email protected]>

Adds libnih and host build-tool nih-dbus-tool.

Signed-off-by: Carsten Schlote <[email protected]>
---
 rules/host-libnih.in   |   16 ++++++
 rules/host-libnih.make |  112 +++++++++++++++++++++++++++++++++++++++
 rules/libnih.in        |   21 +++++++
 rules/libnih.make      |  137 ++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 286 insertions(+), 0 deletions(-)
 create mode 100644 rules/host-libnih.in
 create mode 100644 rules/host-libnih.make
 create mode 100644 rules/libnih.in
 create mode 100644 rules/libnih.make

diff --git a/rules/host-libnih.in b/rules/host-libnih.in
new file mode 100644
index 0000000..c823cc8
--- /dev/null
+++ b/rules/host-libnih.in
@@ -0,0 +1,16 @@
+## SECTION=hosttools_noprompt
+
+config HOST_LIBNIH
+       tristate
+       select HOST_GPERF
+       select HOST_LIBUDEV
+       select HOST_DBUS
+       help
+         FIXME
+
+if HOST_LIBNIH
+
+config HOST_LIBNIH_DBUS_TOOL
+       bool
+
+endif
diff --git a/rules/host-libnih.make b/rules/host-libnih.make
new file mode 100644
index 0000000..de09679
--- /dev/null
+++ b/rules/host-libnih.make
@@ -0,0 +1,112 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2009 by Carsten Schlote <[email protected]>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_LIBNIH) += host-libnih
+
+#
+# Paths and names
+#
+HOST_LIBNIH_DIR        = $(HOST_BUILDDIR)/$(LIBNIH)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-libnih.get: $(STATEDIR)/libnih.get
+       @$(call targetinfo)
+       @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-libnih.extract:
+       @$(call targetinfo)
+       @$(call clean, $(HOST_LIBNIH_DIR))
+       @$(call extract, LIBNIH, $(HOST_BUILDDIR))
+       @$(call patchin, LIBNIH, $(HOST_LIBNIH_DIR))
+       @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOST_LIBNIH_PATH       := PATH=$(HOST_PATH)
+HOST_LIBNIH_ENV        := $(HOST_ENV)
+
+# don't use := here
+HOST_LIBNIH_MAKEVARS   = \
+       PREFIX=$(PTXDIST_SYSROOT_HOST) \
+       BUILDDIR=$(HOST_UPSTART_DIR) \
+       DESTDIR=$(PTXDIST_SYSROOT_HOST)
+    
+HOST_UPSTART_MAKE_PAR := NO
+
+#
+# autoconf
+#
+#
+# autoconf
+#
+HOST_LIBNIH_AUTOCONF   := $(HOST_AUTOCONF) \
+       --prefix=/usr \
+       --disable-shared \
+       --enable-static \
+       --enable-threading \
+       --disable-compiler-coverage \
+       --enable-linker-optimisations \
+       --with-gnu-ld \
+       --disable-nls \
+       --enable-threads=posix \
+       --disable-rpath \
+       --without-libpth-prefix \
+       --without-libiconv-prefix \
+       --with-included-gettext \
+       --without-libintl-prefix \
+       nih_install=yes
+
+#$(STATEDIR)/host-libnih.prepare:
+#      @$(call targetinfo)
+#      @$(call clean, $(HOST_LIBNIH_DIR)/config.cache)
+#      cd $(HOST_LIBNIH_DIR) && \
+#              $(HOST_LIBNIH_PATH) $(HOST_LIBNIH_ENV) \
+#              ./configure $(HOST_LIBNIH_AUTOCONF)
+#      @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+#$(STATEDIR)/host-libnih.compile:
+#      @$(call targetinfo)
+#      cd $(HOST_LIBNIH_DIR) && $(HOST_LIBNIH_PATH) $(MAKE) $(PARALLELMFLAGS)
+#      @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+#$(STATEDIR)/host-libnih.install:
+#      @$(call targetinfo)
+#      @$(call install, HOST_LIBNIH)
+#      @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+host-libnih_clean:
+       rm -rf $(STATEDIR)/host-libnih.*
+       rm -rf $(HOST_LIBNIH_DIR)
+
+# vim: syntax=make
diff --git a/rules/libnih.in b/rules/libnih.in
new file mode 100644
index 0000000..4dc02f5
--- /dev/null
+++ b/rules/libnih.in
@@ -0,0 +1,21 @@
+## SECTION=system_libraries
+
+config LIBNIH
+       tristate
+       select HOST_LIBNIH
+       select HOST_LIBNIH_DBUS_TOOL
+       select DBUS
+       prompt "libnih"
+       help
+         FIXME
+
+if LIBNIH
+
+config LIBNIH_DBUS_TOOL
+       bool
+       prompt "nih-dbus-tool (native)"
+       help
+         This is the local version of the nih-dbus-tool. Probably not needed
+         on target, yet (unless we have all other build tools as well)
+
+endif
diff --git a/rules/libnih.make b/rules/libnih.make
new file mode 100644
index 0000000..39fd371
--- /dev/null
+++ b/rules/libnih.make
@@ -0,0 +1,137 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2009 by Carsten Schlote <[email protected]>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_LIBNIH) += libnih
+
+#
+# Paths and names
+#
+LIBNIH_VERSION := 1.0.0
+LIBNIH         := libnih-$(LIBNIH_VERSION)
+LIBNIH_SUFFIX          := tar.gz
+LIBNIH_URL             := 
http://launchpad.net/libnih/1.0/1.0.0/+download/$(LIBNIH).$(LIBNIH_SUFFIX)
+LIBNIH_SOURCE          := $(SRCDIR)/$(LIBNIH).$(LIBNIH_SUFFIX)
+LIBNIH_DIR             := $(BUILDDIR)/$(LIBNIH)
+LIBNIH_LICENSE := unknown
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(LIBNIH_SOURCE):
+       @$(call targetinfo)
+       @$(call get, LIBNIH)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBNIH_PATH    := PATH=$(CROSS_PATH)
+LIBNIH_ENV     := $(CROSS_ENV) \
+    NIH_DBUS_TOOL=$(PTXCONF_SYSROOT_HOST)/usr/bin/nih-dbus-tool
+
+LIBNIH_MAKEVARS := \
+    NIH_DBUS_TOOL=$(PTXCONF_SYSROOT_HOST)/usr/bin/nih-dbus-tool
+
+
+#
+# autoconf
+#
+LIBNIH_AUTOCONF := $(CROSS_AUTOCONF_USR) \
+       --enable-shared \
+       --enable-static \
+       --enable-threading \
+       --enable-compiler-warnings \
+       --enable-compiler-optimisations \
+       --disable-compiler-coverage \
+       --enable-linker-optimisations \
+       --with-gnu-ld \
+       --disable-nls \
+       --enable-threads=posix \
+       --disable-rpath \
+       --without-libpth-prefix \
+       --without-libiconv-prefix \
+       --with-included-gettext \
+       --without-libintl-prefix
+
+
+#$(STATEDIR)/libnih.prepare:
+#      @$(call targetinfo)
+#      @$(call clean, $(LIBNIH_DIR)/config.cache)
+#      cd $(LIBNIH_DIR) && \
+#              $(LIBNIH_PATH) $(LIBNIH_ENV) \
+#              ./configure $(LIBNIH_AUTOCONF)
+#      @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+#$(STATEDIR)/libnih.compile:
+#      @$(call targetinfo)
+#      cd $(LIBNIH_DIR) && $(LIBNIH_PATH) $(MAKE) $(PARALLELMFLAGS)
+#      @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+#$(STATEDIR)/libnih.install:
+#      @$(call targetinfo)
+#      @$(call install, LIBNIH)
+#      @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libnih.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init,  libnih)
+       @$(call install_fixup, libnih,PACKAGE,libnih)
+       @$(call install_fixup, libnih,PRIORITY,optional)
+       @$(call install_fixup, libnih,VERSION,$(LIBNIH_VERSION))
+       @$(call install_fixup, libnih,SECTION,base)
+       @$(call install_fixup, libnih,AUTHOR,"Carsten Schlote 
<[email protected]>")
+       @$(call install_fixup, libnih,DEPENDS,)
+       @$(call install_fixup, libnih,DESCRIPTION,missing)
+
+#      @$(call install_copy, libnih, 0, 0, 0755, $(LIBNIH_DIR)/foobar, 
/dev/null)
+
+       @$(call install_copy, libnih, 0, 0, 0755, -, 
/usr/lib/libnih-dbus.so.1.0.0)
+       @$(call install_link, libnih,  libnih-dbus.so.1.0.0, 
/usr/lib/libnih-dbus.so.1)
+       @$(call install_link, libnih,  libnih-dbus.so.1.0.0, 
/usr/lib/libnih-dbus.so)
+
+       @$(call install_copy, libnih, 0, 0, 0755, -, /usr/lib/libnih.so.1.0.0)
+       @$(call install_link, libnih,  libnih.so.1.0.0, /usr/lib/libnih.so.1)
+       @$(call install_link, libnih,  libnih.so.1.0.0, /usr/lib/libnih.so)
+
+ ifdef PTXCONF_LIBNIH_DBUS_TOOL
+       @$(call install_copy, libnih, 0, 0, 0755, -, /usr/bin/nih-dbus-tool)
+ endif
+
+       @$(call install_finish, libnih)
+
+       @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+libnih_clean:
+       rm -rf $(STATEDIR)/libnih.*
+       rm -rf $(PKGDIR)/libnih_*
+       rm -rf $(LIBNIH_DIR)
+
+# vim: syntax=make
-- 
1.6.5.6.gb3118


--
ptxdist mailing list
[email protected]

Reply via email to