summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYegor Yefremov <yegorslists@googlemail.com>2014-03-20 22:17:11 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2014-03-23 21:33:09 (GMT)
commitd0a3fa2d0753507864cf8212ec6fa7045c1ccd3b (patch)
tree296a610bf1e670d370147d5f533169ec4b848feb
parent6aee76bcad2022d7c9bd530bef9126ff57035d10 (diff)
downloadbuildroot-d0a3fa2d0753507864cf8212ec6fa7045c1ccd3b.tar.gz
buildroot-d0a3fa2d0753507864cf8212ec6fa7045c1ccd3b.tar.bz2
libuci: new package
[Peter: needs !static, use += for _CONF_OPT] Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/Config.in1
-rw-r--r--package/libuci/Config.in16
-rw-r--r--package/libuci/libuci.mk19
3 files changed, 36 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 66ded0b..cfa53d3 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -792,6 +792,7 @@ source "package/libsigsegv/Config.in"
source "package/libtasn1/Config.in"
source "package/libtpl/Config.in"
source "package/libubox/Config.in"
+source "package/libuci/Config.in"
source "package/libunwind/Config.in"
source "package/liburcu/Config.in"
source "package/linux-pam/Config.in"
diff --git a/package/libuci/Config.in b/package/libuci/Config.in
new file mode 100644
index 0000000..761ae6e
--- /dev/null
+++ b/package/libuci/Config.in
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_LIBUCI
+ bool "libuci"
+ depends on !BR2_PREFER_STATIC_LIB
+ select BR2_PACKAGE_LIBUBOX
+ help
+ This library originates from the OpenWrt project to
+ handle the configuration file infrastructure, but can
+ also be used for the same purposes in projects other
+ than OpenWrt.
+
+ This package will also install CLI tool uci.
+
+ http://wiki.openwrt.org/doc/techref/uci
+
+comment "libuci needs a toolchain w/ dynamic library"
+ depends on BR2_PREFER_STATIC_LIB
diff --git a/package/libuci/libuci.mk b/package/libuci/libuci.mk
new file mode 100644
index 0000000..736b946
--- /dev/null
+++ b/package/libuci/libuci.mk
@@ -0,0 +1,19 @@
+################################################################################
+#
+# libuci
+#
+################################################################################
+
+LIBUCI_VERSION = 262fede3e8c8c08c1eb0d1be9bf102232fb86cb9
+LIBUCI_SITE = git://nbd.name/uci.git
+LIBUCI_LICENSE = LGPLv2.1
+LIBUCI_INSTALL_STAGING = YES
+LIBUCI_DEPENDENCIES = libubox
+
+ifeq ($(BR2_PACKAGE_LUA),y)
+ LIBUCI_DEPENDENCIES += lua
+else
+ LIBUCI_CONF_OPT += -DBUILD_LUA:BOOL=OFF
+endif
+
+$(eval $(cmake-package))