Selaa lähdekoodia

tclap: new package

Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Matt Weber 11 vuotta sitten
vanhempi
commit
9da3b5d5f9
3 muutettua tiedostoa jossa 34 lisäystä ja 0 poistoa
  1. 1 0
      package/Config.in
  2. 17 0
      package/tclap/Config.in
  3. 16 0
      package/tclap/tclap.mk

+ 1 - 0
package/Config.in

@@ -859,6 +859,7 @@ menu "Text and terminal handling"
 	source "package/popt/Config.in"
 	source "package/readline/Config.in"
 	source "package/slang/Config.in"
+	source "package/tclap/Config.in"
 endmenu
 
 endmenu

+ 17 - 0
package/tclap/Config.in

@@ -0,0 +1,17 @@
+comment "tclap needs a toolchain w/ C++"
+	depends on !BR2_INSTALL_LIBSTDCPP
+
+config BR2_PACKAGE_TCLAP
+	bool "tclap"
+	depends BR2_INSTALL_LIBSTDCPP
+	help
+	  This is a small, flexible library that provides a simple interface
+	  for defining and accessing command line arguments. It was initially
+	  inspired by the user friendly CLAP libary. The difference is that
+	  this library is templatized, so the argument class is type
+	  independent. Type independence avoids identical-except-for-type
+	  objects, such as IntArg, FloatArg, and StringArg. While the library
+	  is not strictly compliant with the GNU or POSIX standards, it is
+	  close.
+
+	  http://tclap.sourceforge.net/

+ 16 - 0
package/tclap/tclap.mk

@@ -0,0 +1,16 @@
+################################################################################
+#
+# tclap
+#
+################################################################################
+
+TCLAP_VERSION = 1.2.1
+TCLAP_SITE = http://downloads.sourceforge.net/project/tclap
+TCLAP_LICENSE = MIT
+TCLAP_LICENSE_FILES = COPYING
+TCLAP_INSTALL_STAGING = YES
+
+# This package is a pure C++ template library, only made of headers.
+TCLAP_INSTALL_TARGET = NO
+
+$(eval $(autotools-package))