package: add libargtable2
authorRobin Holt <holt@sgi.com>
Mon, 13 Jun 2011 12:14:05 +0000 (07:14 -0500)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 12 Jul 2011 20:49:07 +0000 (22:49 +0200)
The argtable2 sourceforge project provides easy parsing of command line
options and file contents.

[Peter: Misc cleanup/fixes]
Signed-off-by: Robin Holt <holt@sgi.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/libargtable2/Config.in [new file with mode: 0644]
package/libargtable2/libargtable2.mk [new file with mode: 0644]

index aef701d8f8ef713b77ec746e3e7c24661306acd3..55ea34300ded0a8574d1e78b9eb407fabc4efa17 100644 (file)
@@ -333,6 +333,7 @@ source "package/libupnp/Config.in"
 endmenu
 
 menu "Other"
+source "package/libargtable2/Config.in"
 source "package/argp-standalone/Config.in"
 source "package/libatomic_ops/Config.in"
 source "package/libcap/Config.in"
diff --git a/package/libargtable2/Config.in b/package/libargtable2/Config.in
new file mode 100644 (file)
index 0000000..42d067b
--- /dev/null
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LIBARGTABLE2
+       bool "libargtable2"
+       help
+         A greatly simplified and yet quite robust argument parsing
+         set of library calls.
+
+         http://argtable.sourceforge.net/
diff --git a/package/libargtable2/libargtable2.mk b/package/libargtable2/libargtable2.mk
new file mode 100644 (file)
index 0000000..57eb629
--- /dev/null
@@ -0,0 +1,17 @@
+#############################################################
+#
+# libargtable2
+#
+#############################################################
+
+LIBARGTABLE2_VERSION = 13
+LIBARGTABLE2_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/argtable/
+
+LIBARGTABLE2_INSTALL_STAGING = YES
+LIBARGTABLE2_CONF_OPT= --program-prefix="" \
+               --disable-example \
+               --disable-kernel-module \
+               --enable-lib \
+               --enable-util
+
+$(eval $(call AUTOTARGETS,package,libargtable2))