Signed-off-by: Clemens Gruber <clemens.gru...@pqgruber.com> --- rules/npth.in | 10 ++++++++++ rules/npth.make | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 rules/npth.in create mode 100644 rules/npth.make
diff --git a/rules/npth.in b/rules/npth.in new file mode 100644 index 000000000..a8db4f6ca --- /dev/null +++ b/rules/npth.in @@ -0,0 +1,10 @@ +## SECTION=system_libraries + +config NPTH + tristate + prompt "npth" + help + New Portable Threads Library used by GnuPG + + nPth is a library to provide the GNU Pth API and thus + a non-preemptive threads implementation. diff --git a/rules/npth.make b/rules/npth.make new file mode 100644 index 000000000..6dda1e361 --- /dev/null +++ b/rules/npth.make @@ -0,0 +1,61 @@ +# -*-makefile-*- +# +# Copyright (C) 2018 by Clemens Gruber <clemens.gru...@pqgruber.com> +# +# 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_NPTH) += npth + +# +# Paths and names +# +NPTH_VERSION := 1.5 +NPTH_MD5 := 9ba2dc4302d2f32c66737c43ed191b1b +NPTH := npth-$(NPTH_VERSION) +NPTH_SUFFIX := tar.bz2 +NPTH_URL := ftp://ftp.gnupg.org/gcrypt/npth/$(NPTH).$(NPTH_SUFFIX) +NPTH_SOURCE := $(SRCDIR)/$(NPTH).$(NPTH_SUFFIX) +NPTH_DIR := $(BUILDDIR)/$(NPTH) +NPTH_LICENSE := LGPL-2.1 +NPTH_LICENSE_FILES := \ + file://COPYING.LIB;md5=2caced0b25dfefd4c601d92bd15116de + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +NPTH_AUTOCONF := \ + $(CROSS_AUTOCONF_USR) \ + --disable-tests \ + --enable-build-timestamp="$(PTXDIST_VERSION_YEAR)-$(PTXDIST_VERSION_MONTH)-01T00:00+0000" + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/npth.targetinstall: + @$(call targetinfo) + + @$(call install_init, npth) + @$(call install_fixup, npth,PRIORITY,optional) + @$(call install_fixup, npth,SECTION,base) + @$(call install_fixup, npth,AUTHOR,"Clemens Gruber") + @$(call install_fixup, npth,DESCRIPTION,"The new GNU portable threads library") + + @$(call install_lib, npth, 0, 0, 0644, libnpth) + + @$(call install_finish, npth) + + @$(call touch) + +# vim: syntax=make -- 2.15.1 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de