summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Walle <bernhard@bwalle.de>2014-11-06 15:00:38 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2014-11-13 17:32:09 +0100
commit9c14eba0726ccc66127ad9826f54b81600dd4a86 (patch)
tree922f4849922c4fd204174fe89b17676838d6cf03
parent3b69137927b59e3f021c3fd18a4bf3fd8adfff21 (diff)
downloadptxdist-9c14eba0726ccc66127ad9826f54b81600dd4a86.tar.gz
ptxdist-9c14eba0726ccc66127ad9826f54b81600dd4a86.tar.xz
libconfig: New package
Signed-off-by: Bernhard Walle <bernhard@bwalle.de> [mol: reorder configure options] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/libconfig.in14
-rw-r--r--rules/libconfig.make63
2 files changed, 77 insertions, 0 deletions
diff --git a/rules/libconfig.in b/rules/libconfig.in
new file mode 100644
index 000000000..5a6ec7e93
--- /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 000000000..aa08a5a8e
--- /dev/null
+++ b/rules/libconfig.make
@@ -0,0 +1,63 @@
+# -*-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) \
+ --$(call ptx/endis, PTXCONF_LIBCONFIG_CXX)-cxx \
+ --disable-examples
+
+# ----------------------------------------------------------------------------
+# 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