mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bernhard Walle <bernhard@bwalle.de>
To: ptxdist@pengutronix.de
Cc: Bernhard Walle <bernhard@bwalle.de>
Subject: [ptxdist] [PATCH] libconfig: New package
Date: Thu,  6 Nov 2014 15:00:38 +0100	[thread overview]
Message-ID: <1415282438-2565-1-git-send-email-bernhard@bwalle.de> (raw)

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
 rules/libconfig.in   | 14 ++++++++++++
 rules/libconfig.make | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)
 create mode 100644 rules/libconfig.in
 create mode 100644 rules/libconfig.make

diff --git a/rules/libconfig.in b/rules/libconfig.in
new file mode 100644
index 0000000..5a6ec7e
--- /dev/null
+++ b/rules/libconfig.in
@@ -0,0 +1,14 @@
+## SECTION=system_libraries
+
+menuconfig LIBCONFIG
+	tristate
+	prompt "libconfig                     "
+	help
+	  C/C++ Configuration File Library
+
+if LIBCONFIG
+
+config LIBCONFIG_CXX
+       bool "build and install install libconfig++"
+
+endif
diff --git a/rules/libconfig.make b/rules/libconfig.make
new file mode 100644
index 0000000..6eeb4e9
--- /dev/null
+++ b/rules/libconfig.make
@@ -0,0 +1,62 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2014 by Bernhard Walle <bernhard@bwalle.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_LIBCONFIG) += libconfig
+
+#
+# Paths and names
+#
+LIBCONFIG_VERSION	:= 1.4.9
+LIBCONFIG_MD5		:= b6ee0ce2b3ef844bad7cac2803a90634
+LIBCONFIG		:= libconfig-$(LIBCONFIG_VERSION)
+LIBCONFIG_SUFFIX	:= tar.gz
+LIBCONFIG_URL		:= http://www.hyperrealm.com/libconfig/$(LIBCONFIG).$(LIBCONFIG_SUFFIX)
+LIBCONFIG_SOURCE	:= $(SRCDIR)/$(LIBCONFIG).$(LIBCONFIG_SUFFIX)
+LIBCONFIG_DIR		:= $(BUILDDIR)/$(LIBCONFIG)
+LIBCONFIG_LICENSE	:= LGPLv2.1
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+LIBCONFIG_CONF_TOOL	:= autoconf
+LIBCONFIG_CONF_OPT	:= $(CROSS_AUTOCONF_USR) \
+	--disable-examples \
+	--$(call ptx/endis, PTXCONF_LIBCONFIG_CXX)-cxx
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libconfig.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, libconfig)
+	@$(call install_fixup, libconfig,PRIORITY,optional)
+	@$(call install_fixup, libconfig,SECTION,base)
+	@$(call install_fixup, libconfig,AUTHOR,"Bernhard Walle <bernhard@bwalle.de>")
+	@$(call install_fixup, libconfig,DESCRIPTION,missing)
+
+	@$(call install_lib, libconfig, 0, 0, 0644, libconfig)
+ifdef PTXCONF_LIBCONFIG_CXX
+	@$(call install_lib, libconfig, 0, 0, 0644, libconfig++)
+endif
+
+	@$(call install_finish, libconfig)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.1.3


-- 
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2014-11-06 14:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-06 14:00 Bernhard Walle [this message]
2014-11-13 16:58 ` Michael Olbrich
  -- strict thread matches above, loose matches on Subject: below --
2014-07-19 20:47 [ptxdist] [PATCH] libconfig: new package Guillaume GOURAT
2014-07-21  6:36 ` Uwe Kleine-König
2014-07-21  9:24 ` 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=1415282438-2565-1-git-send-email-bernhard@bwalle.de \
    --to=bernhard@bwalle.de \
    --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