Signed-off-by: Alexander Aring <[email protected]> --- rules/libbsd.in | 11 ++++++++++ rules/libbsd.make | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 rules/libbsd.in create mode 100644 rules/libbsd.make
diff --git a/rules/libbsd.in b/rules/libbsd.in new file mode 100644 index 0000000..6563753 --- /dev/null +++ b/rules/libbsd.in @@ -0,0 +1,11 @@ +## SECTION=system_libraries + +config LIBBSD + tristate + prompt "libbsd" + help + This library provides useful functions commonly found on + BSD systems, and lacking on others like GNU systems, thus + making it easier to port projects with strong BSD origins, + without needing to embed the same code over and over again + on each project. diff --git a/rules/libbsd.make b/rules/libbsd.make new file mode 100644 index 0000000..01b647e --- /dev/null +++ b/rules/libbsd.make @@ -0,0 +1,63 @@ +# -*-makefile-*- +# +# Copyright (C) 2014 by Alexander Aring <[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_LIBBSD) += libbsd + +# +# Paths and names +# +LIBBSD_VERSION := 0.6.0 +LIBBSD_MD5 := f6c75f0a9818e323a589bcbd560a0eb4 +LIBBSD := libbsd-$(LIBBSD_VERSION) +LIBBSD_SUFFIX := tar.xz +LIBBSD_URL := http://libbsd.freedesktop.org/releases/$(LIBBSD).$(LIBBSD_SUFFIX) +LIBBSD_SOURCE := $(SRCDIR)/$(LIBBSD).$(LIBBSD_SUFFIX) +LIBBSD_DIR := $(BUILDDIR)/$(LIBBSD) +LIBBSD_LICENSE := BSD + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- +LIBBSD_CONF_ENV = \ + $(CROSS_ENV) + +# +# autoconf +# +LIBSD_CONF_TOOL := autoconf +LIBSD_CONF_OPT := \ + $(GLOBAL_LARGE_FILE_OPTION) \ + --enable-shared \ + --disable-static \ + --with-gnu-ld + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libbsd.targetinstall: + @$(call targetinfo) + + @$(call install_init, libbsd) + @$(call install_fixup, libbsd,PRIORITY,optional) + @$(call install_fixup, libbsd,SECTION,base) + @$(call install_fixup, libbsd,AUTHOR,"Alexander Aring <[email protected]>") + @$(call install_fixup, libbsd,DESCRIPTION,missing) + + @$(call install_lib, libbsd, 0, 0, 0644, libbsd) + + @$(call install_finish, libbsd) + + @$(call touch) + +# vim: syntax=make -- 1.8.5.3 -- ptxdist mailing list [email protected]
