4edc0f1cdd
If libxml2 depends on xz (liblzma) static linking is broken. Fixes http://autobuild.buildroot.net/results/df3/df3f5fa770833c8c4344ee0bc67f45aa578ce542/ http://autobuild.buildroot.net/results/070/07021c8bd6e2031c2717fc58e2d3ff30c412fa90/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
30 lines
904 B
Makefile
30 lines
904 B
Makefile
################################################################################
|
|
#
|
|
# xmlstarlet
|
|
#
|
|
################################################################################
|
|
|
|
XMLSTARLET_VERSION = 1.5.0
|
|
XMLSTARLET_SITE = http://downloads.sourceforge.net/project/xmlstar/xmlstarlet/$(XMLSTARLET_VERSION)
|
|
XMLSTARLET_LICENSE = MIT
|
|
XMLSTARLET_LICENSE_FILES = COPYING
|
|
# We're patching configure.ac
|
|
XMLSTARLET_AUTORECONF = YES
|
|
|
|
XMLSTARLET_DEPENDENCIES += libxml2 libxslt \
|
|
$(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
|
|
|
XMLSTARLET_CONF_OPTS += \
|
|
--with-libxml-prefix=${STAGING_DIR}/usr \
|
|
--with-libxslt-prefix=${STAGING_DIR}/usr \
|
|
--with-libiconv-prefix=${STAGING_DIR}/usr
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
XMLSTARLET_CONF_OPTS += --enable-static-libs
|
|
XMLSTARLET_CONF_ENV = LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libxml-2.0`"
|
|
else
|
|
XMLSTARLET_CONF_OPTS += --disable-static-libs
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|