Browse Source

package: add libconfuse - A library for parsing configuration files

Peter Korsgaard 17 years ago
parent
commit
0e23e6bdf1
3 changed files with 30 additions and 0 deletions
  1. 1 0
      package/Config.in
  2. 11 0
      package/libconfuse/Config.in
  3. 18 0
      package/libconfuse/libconfuse.mk

+ 1 - 0
package/Config.in

@@ -78,6 +78,7 @@ if !BR2_PACKAGE_BUSYBOX_HIDE_OTHERS
 source "package/less/Config.in"
 endif
 source "package/libconfig/Config.in"
+source "package/libconfuse/Config.in"
 source "package/libdaemon/Config.in"
 source "package/libelf/Config.in"
 source "package/libevent/Config.in"

+ 11 - 0
package/libconfuse/Config.in

@@ -0,0 +1,11 @@
+config BR2_PACKAGE_LIBCONFUSE
+	bool "libconfuse"
+	help
+	  LibConfuse is a configuration file parser library written in
+	  C. It supports sections and (lists of) values (strings,
+	  integers, floats, booleans or other sections), as well as some
+	  other features (such as single/double-quoted strings,
+	  environment variable expansion, functions and nested include
+	  statements.
+
+	  http://www.nongnu.org/confuse/

+ 18 - 0
package/libconfuse/libconfuse.mk

@@ -0,0 +1,18 @@
+#############################################################
+#
+# libconfuse
+#
+#############################################################
+LIBCONFUSE_VERSION:=2.6
+LIBCONFUSE_SOURCE:=confuse-$(LIBCONFUSE_VERSION).tar.gz
+LIBCONFUSE_SITE:=http://bzero.se/confuse/
+LIBCONFUSE_AUTORECONF:=NO
+LIBCONFUSE_INSTALL_STAGING:=YES
+LIBCONFUSE_INSTALL_TARGET:=YES
+LIBCONFUSE_INSTALL_TARGET_OPT:=DESTDIR=$(TARGET_DIR) install-strip
+
+LIBCONFUSE_CONF_OPT:=--enable-shared --disable-rpath $(DISABLE_NLS)
+
+LIBCONFUSE_DEPENDENCIES = uclibc
+
+$(eval $(call AUTOTARGETS,package,libconfuse))