blob: e0abf04502cac2fb948ddebc702550a01c8f5484 [file] [log] [blame]
Alexandre Belloni8dfd59d2013-06-05 23:53:30 +00001################################################################################
Nate Forde0efb0d2011-02-11 10:26:24 +01002#
Alexandre Belloni966e0052013-06-05 23:53:28 +00003# xmlstarlet
Nate Forde0efb0d2011-02-11 10:26:24 +01004#
Alexandre Belloni8dfd59d2013-06-05 23:53:30 +00005################################################################################
Nate Forde0efb0d2011-02-11 10:26:24 +01006
Axel Linec2c8322013-10-10 09:07:32 +08007XMLSTARLET_VERSION = 1.5.0
Stefan Fröberg23ef45c2012-08-26 02:52:48 +03008XMLSTARLET_SITE = http://downloads.sourceforge.net/project/xmlstar/xmlstarlet/$(XMLSTARLET_VERSION)
Axel Lin270db932013-10-10 09:05:04 +08009XMLSTARLET_LICENSE = MIT
10XMLSTARLET_LICENSE_FILES = COPYING
Thomas Petazzoni1a0986d2015-05-16 17:39:46 +020011# We're patching configure.ac
12XMLSTARLET_AUTORECONF = YES
Nate Forde0efb0d2011-02-11 10:26:24 +010013
14XMLSTARLET_DEPENDENCIES += libxml2 libxslt \
15 $(if $(BR2_PACKAGE_LIBICONV),libiconv)
16
Thomas De Schampheleireaaffd202014-09-27 21:32:44 +020017XMLSTARLET_CONF_OPTS += \
Nate Forde0efb0d2011-02-11 10:26:24 +010018 --with-libxml-prefix=${STAGING_DIR}/usr \
19 --with-libxslt-prefix=${STAGING_DIR}/usr \
20 --with-libiconv-prefix=${STAGING_DIR}/usr
21
Thomas Petazzoni665e13c2014-12-03 22:41:29 +010022ifeq ($(BR2_STATIC_LIBS),y)
Thomas De Schampheleireaaffd202014-09-27 21:32:44 +020023XMLSTARLET_CONF_OPTS += --enable-static-libs
Bernd Kuhls4edc0f12015-12-13 10:53:46 +010024XMLSTARLET_CONF_ENV = LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libxml-2.0`"
Romain Naourb840bc62014-08-18 23:35:42 +020025else
Thomas De Schampheleireaaffd202014-09-27 21:32:44 +020026XMLSTARLET_CONF_OPTS += --disable-static-libs
Romain Naourb840bc62014-08-18 23:35:42 +020027endif
28
Arnout Vandecappelle (Essensium/Mind)e1502eb2012-07-03 00:07:32 +020029$(eval $(autotools-package))