1 ################################################################################
5 ################################################################################
7 XMLSTARLET_VERSION
= 1.6.1
8 XMLSTARLET_SITE
= http
://downloads.sourceforge.net
/project
/xmlstar
/xmlstarlet
/$(XMLSTARLET_VERSION
)
9 XMLSTARLET_LICENSE
= MIT
10 XMLSTARLET_LICENSE_FILES
= COPYING
11 # We're patching configure.ac
12 XMLSTARLET_AUTORECONF
= YES
14 XMLSTARLET_DEPENDENCIES
+= libxml2 libxslt \
15 $(if
$(BR2_PACKAGE_LIBICONV
),libiconv
)
17 XMLSTARLET_CONF_OPTS
+= \
18 --with-libxml-prefix
=$(STAGING_DIR
)/usr \
19 --with-libxslt-prefix
=$(STAGING_DIR
)/usr \
20 --with-libiconv-prefix
=$(STAGING_DIR
)/usr
22 ifeq ($(BR2_STATIC_LIBS
),y
)
23 XMLSTARLET_CONF_OPTS
+= --enable-static-libs
24 XMLSTARLET_CONF_ENV
= LIBS
="`$(PKG_CONFIG_HOST_BINARY) --libs libxml-2.0`"
26 XMLSTARLET_CONF_OPTS
+= --disable-static-libs
29 $(eval
$(autotools-package
))