Alexandre Belloni | 8dfd59d | 2013-06-05 23:53:30 +0000 | [diff] [blame] | 1 | ################################################################################ |
Nate Ford | e0efb0d | 2011-02-11 10:26:24 +0100 | [diff] [blame] | 2 | # |
Alexandre Belloni | 966e005 | 2013-06-05 23:53:28 +0000 | [diff] [blame] | 3 | # xmlstarlet |
Nate Ford | e0efb0d | 2011-02-11 10:26:24 +0100 | [diff] [blame] | 4 | # |
Alexandre Belloni | 8dfd59d | 2013-06-05 23:53:30 +0000 | [diff] [blame] | 5 | ################################################################################ |
Nate Ford | e0efb0d | 2011-02-11 10:26:24 +0100 | [diff] [blame] | 6 | |
Axel Lin | ec2c832 | 2013-10-10 09:07:32 +0800 | [diff] [blame] | 7 | XMLSTARLET_VERSION = 1.5.0 |
Stefan Fröberg | 23ef45c | 2012-08-26 02:52:48 +0300 | [diff] [blame] | 8 | XMLSTARLET_SITE = http://downloads.sourceforge.net/project/xmlstar/xmlstarlet/$(XMLSTARLET_VERSION) |
Axel Lin | 270db93 | 2013-10-10 09:05:04 +0800 | [diff] [blame] | 9 | XMLSTARLET_LICENSE = MIT |
| 10 | XMLSTARLET_LICENSE_FILES = COPYING |
Thomas Petazzoni | 1a0986d | 2015-05-16 17:39:46 +0200 | [diff] [blame] | 11 | # We're patching configure.ac |
| 12 | XMLSTARLET_AUTORECONF = YES |
Nate Ford | e0efb0d | 2011-02-11 10:26:24 +0100 | [diff] [blame] | 13 | |
| 14 | XMLSTARLET_DEPENDENCIES += libxml2 libxslt \ |
| 15 | $(if $(BR2_PACKAGE_LIBICONV),libiconv) |
| 16 | |
Thomas De Schampheleire | aaffd20 | 2014-09-27 21:32:44 +0200 | [diff] [blame] | 17 | XMLSTARLET_CONF_OPTS += \ |
Nate Ford | e0efb0d | 2011-02-11 10:26:24 +0100 | [diff] [blame] | 18 | --with-libxml-prefix=${STAGING_DIR}/usr \ |
| 19 | --with-libxslt-prefix=${STAGING_DIR}/usr \ |
| 20 | --with-libiconv-prefix=${STAGING_DIR}/usr |
| 21 | |
Thomas Petazzoni | 665e13c | 2014-12-03 22:41:29 +0100 | [diff] [blame] | 22 | ifeq ($(BR2_STATIC_LIBS),y) |
Thomas De Schampheleire | aaffd20 | 2014-09-27 21:32:44 +0200 | [diff] [blame] | 23 | XMLSTARLET_CONF_OPTS += --enable-static-libs |
Bernd Kuhls | 4edc0f1 | 2015-12-13 10:53:46 +0100 | [diff] [blame] | 24 | XMLSTARLET_CONF_ENV = LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libxml-2.0`" |
Romain Naour | b840bc6 | 2014-08-18 23:35:42 +0200 | [diff] [blame] | 25 | else |
Thomas De Schampheleire | aaffd20 | 2014-09-27 21:32:44 +0200 | [diff] [blame] | 26 | XMLSTARLET_CONF_OPTS += --disable-static-libs |
Romain Naour | b840bc6 | 2014-08-18 23:35:42 +0200 | [diff] [blame] | 27 | endif |
| 28 | |
Arnout Vandecappelle (Essensium/Mind) | e1502eb | 2012-07-03 00:07:32 +0200 | [diff] [blame] | 29 | $(eval $(autotools-package)) |