mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 1/2] libbsd: add new package
@ 2014-01-26 18:40 Alexander Aring
  2014-01-26 18:40 ` [ptxdist] [PATCH 2/2] netcat: add choice for gnu or bsd version of nc Alexander Aring
  2014-01-30  8:59 ` [ptxdist] [PATCH 1/2] libbsd: add new package Michael Olbrich
  0 siblings, 2 replies; 4+ messages in thread
From: Alexander Aring @ 2014-01-26 18:40 UTC (permalink / raw)
  To: ptxdist; +Cc: Alexander Aring

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
 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 <aar@pengutronix.de>
+#
+# 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 <aar@pengutronix.de>")
+	@$(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
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-01-30  8:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-26 18:40 [ptxdist] [PATCH 1/2] libbsd: add new package Alexander Aring
2014-01-26 18:40 ` [ptxdist] [PATCH 2/2] netcat: add choice for gnu or bsd version of nc Alexander Aring
2014-01-30  8:59   ` Michael Olbrich
2014-01-30  8:59 ` [ptxdist] [PATCH 1/2] libbsd: add new package Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox