Tim Sander wrote: > Signed-off-by: Tim Sander <[email protected]> > > rules/libnih.in | 9 +++++ > rules/libnih.make | 88 > +++++++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 97 insertions(+), 0 deletions(-) > create mode 100644 rules/libnih.in > create mode 100644 rules/libnih.make > > diff --git a/rules/libnih.in b/rules/libnih.in > new file mode 100644 > index 0000000..0a883e2 > --- /dev/null > +++ b/rules/libnih.in > @@ -0,0 +1,9 @@ > +## SECTION=system_libraries > + > +config LIBNIH > + bool > + prompt "libnih" > + select DBUS > + select HOST_LIBNIH > + help > + libnih is a small library for C application development containing > functions that, despite its name, are not implemented elsewhere in the > standard library set. > diff --git a/rules/libnih.make b/rules/libnih.make > new file mode 100644 > index 0000000..f656726 > --- /dev/null > +++ b/rules/libnih.make > @@ -0,0 +1,88 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2010 by Tim Sander > +# > +# 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.2 > +LIBNIH := libnih-$(LIBNIH_VERSION) > +LIBNIH_SUFFIX := tar.gz > +LIBNIH_URL := > http://launchpad.net/libnih/1.0/$(LIBNIH_VERSION)/+download/$(LIBNIH).$(LIBNIH_SUFFIX) > +LIBNIH_DIR := $(BUILDDIR)/$(LIBNIH) > +LIBNIH_SOURCE := $(SRCDIR)/$(LIBNIH).$(LIBNIH_SUFFIX) > + > +# > ---------------------------------------------------------------------------- > +# Get > +# > ---------------------------------------------------------------------------- > +$(LIBNIH_SOURCE): > + @$(call targetinfo) > + @$(call get, LIBNIH) > + > +# > ---------------------------------------------------------------------------- > +# Prepare > +# > ---------------------------------------------------------------------------- > + > +LIBNIH_PATH := PATH=$(CROSS_PATH) > +LIBNIH_ENV := $(CROSS_ENV) > NIH_DBUS_TOOL=${PTXDIST_PLATFORMDIR}/sysroot-host/bin/nih-dbus-tool
please use $(PTXDIST_SYSROOT_HOST) > + > +# > +# autoconf > +# > +LIBNIH_AUTOCONF := \ > + $(CROSS_AUTOCONF_USR) > + > +# > ---------------------------------------------------------------------------- > +# 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, 1.0.1) > + @$(call install_fixup, libnih, SECTION, base) > + @$(call install_fixup, libnih, AUTHOR, "Tim Sander") > + @$(call install_fixup, libnih, DEPENDS,) > + @$(call install_fixup, libnih, DESCRIPTION, missing) > + @for i in $(shell cd $(PKGDIR)/$(LIBNIH) && find bin sbin usr/bin > usr/sbin -type f); do \ > + $(call install_copy, libnih, 0, 0, 0755, -, /$$i); \ > + done > + @for i in $(shell cd $(PKGDIR)/$(LIBNIH) && find lib usr/lib -name > "*.so*"); do \ > + $(call install_copy, libnih, 0, 0, 0644, -, /$$i); \ > + done > + @links="$(shell cd $(PKGDIR)/$(LIBNIH) && find lib usr/lib -type l)"; > \ > + if [ -n "$$links" ]; then \ > + for i in $$links; do \ > + from="`readlink $(PKGDIR)/$(LIBNIH)/$$i`"; \ > + to="/$$i"; \ > + $(call install_link, libnih, $$from, $$to); \ > + done; \ > + fi > + @$(call install_finish, libnih) > + > + @$(call touch) > + > +# > ---------------------------------------------------------------------------- > +# Clean > +# > ---------------------------------------------------------------------------- > + > +libnih_clean: > + rm -rf $(STATEDIR)/libnih.* > + rm -rf $(PKGDIR)/libnih_* > + rm -rf $(LIBNIH_DIR) > + > +# vim: syntax=make cheers, Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
signature.asc
Description: OpenPGP digital signature
-- ptxdist mailing list [email protected]
