summaryrefslogtreecommitdiff
path: root/package/xmlstarlet
diff options
context:
space:
mode:
Diffstat (limited to 'package/xmlstarlet')
-rw-r--r--package/xmlstarlet/Config.in9
-rw-r--r--package/xmlstarlet/xmlstarlet.mk21
2 files changed, 30 insertions, 0 deletions
diff --git a/package/xmlstarlet/Config.in b/package/xmlstarlet/Config.in
new file mode 100644
index 000000000..99762b876
--- /dev/null
+++ b/package/xmlstarlet/Config.in
@@ -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
index 000000000..d7613f808
--- /dev/null
+++ b/package/xmlstarlet/xmlstarlet.mk
@@ -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))