From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ea0-x230.google.com ([2a00:1450:4013:c01::230]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1W7UdX-0003qS-5L for ptxdist@pengutronix.de; Sun, 26 Jan 2014 19:41:41 +0100 Received: by mail-ea0-f176.google.com with SMTP id h14so1900069eaj.35 for ; Sun, 26 Jan 2014 10:40:45 -0800 (PST) From: Alexander Aring Date: Sun, 26 Jan 2014 19:40:35 +0100 Message-Id: <1390761636-23113-1-git-send-email-alex.aring@gmail.com> Subject: [ptxdist] [PATCH 1/2] libbsd: add new package Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Alexander Aring Signed-off-by: Alexander Aring --- 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 +# +# 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 ") + @$(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