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
12 XMLSTARLET_DEPENDENCIES
+= libxml2 libxslt \
13 $(if
$(BR2_PACKAGE_LIBICONV
),libiconv
)
15 XMLSTARLET_CONF_OPTS
+= \
16 --with-libxml-prefix
=$(STAGING_DIR
)/usr \
17 --with-libxslt-prefix
=$(STAGING_DIR
)/usr \
18 --with-libiconv-prefix
=$(STAGING_DIR
)/usr
20 ifeq ($(BR2_STATIC_LIBS
),y
)
21 XMLSTARLET_CONF_OPTS
+= --enable-static-libs
22 XMLSTARLET_CONF_ENV
= LIBS
="`$(PKG_CONFIG_HOST_BINARY) --libs libxml-2.0 libexslt` $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),-lintl)"
24 XMLSTARLET_CONF_OPTS
+= --disable-static-libs
27 $(eval
$(autotools-package
))