package: add xmlstarlet package
authorNate Ford <nford@westpond.com>
Fri, 11 Feb 2011 09:26:24 +0000 (10:26 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 11 Feb 2011 09:26:24 +0000 (10:26 +0100)
[Peter: don't link statically, only depend on iconv if !BR_ENABLE_LOCALE]
Signed-off-by: Nate Ford <nford@westpond.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/xmlstarlet/Config.in [new file with mode: 0644]
package/xmlstarlet/xmlstarlet.mk [new file with mode: 0644]

index 0899578eb4202f4a9377184ad80fd0bbe796d88c..0f0ec4719d8151e26bc1d7c6ab5dc971bf001916 100644 (file)
@@ -471,6 +471,7 @@ source "package/logrotate/Config.in"
 source "package/screen/Config.in"
 source "package/sudo/Config.in"
 source "package/which/Config.in"
+source "package/xmlstarlet/Config.in"
 endmenu
 
 menu "System tools"
diff --git a/package/xmlstarlet/Config.in b/package/xmlstarlet/Config.in
new file mode 100644 (file)
index 0000000..99762b8
--- /dev/null
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_XMLSTARLET
+       bool "xmlstarlet"
+       select BR2_PACKAGE_LIBXML2
+       select BR2_PACKAGE_LIBXSLT
+       select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
+       help
+         Command Line XML Toolkit
+
+         http://xmlstar.sourceforge.net/
diff --git a/package/xmlstarlet/xmlstarlet.mk b/package/xmlstarlet/xmlstarlet.mk
new file mode 100644 (file)
index 0000000..d7613f8
--- /dev/null
@@ -0,0 +1,21 @@
+#############################################################
+#
+# XMLstarlet
+#
+#############################################################
+
+XMLSTARLET_VERSION:=1.0.4
+XMLSTARLET_SOURCE:=xmlstarlet-$(XMLSTARLET_VERSION).tar.gz
+XMLSTARLET_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/project/xmlstar/xmlstarlet/$(XMLSTARLET_VERSION)
+XMLSTARLET_INSTALL_STAGING:=NO
+XMLSTARLET_INSTALL_TARGET:=YES
+
+XMLSTARLET_DEPENDENCIES += libxml2 libxslt \
+       $(if $(BR2_PACKAGE_LIBICONV),libiconv)
+
+XMLSTARLET_CONF_OPT += --disable-static-libs \
+       --with-libxml-prefix=${STAGING_DIR}/usr \
+       --with-libxslt-prefix=${STAGING_DIR}/usr \
+       --with-libiconv-prefix=${STAGING_DIR}/usr
+
+$(eval $(call AUTOTARGETS,package,xmlstarlet))