From: Alexander Aring <alex.aring@gmail.com>
To: ptxdist@pengutronix.de
Cc: Alexander Aring <alex.aring@gmail.com>
Subject: [ptxdist] [PATCH 1/2] libbsd: add new package
Date: Sun, 26 Jan 2014 19:40:35 +0100 [thread overview]
Message-ID: <1390761636-23113-1-git-send-email-alex.aring@gmail.com> (raw)
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
next reply other threads:[~2014-01-26 18:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-26 18:40 Alexander Aring [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1390761636-23113-1-git-send-email-alex.aring@gmail.com \
--to=alex.aring@gmail.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox