xref: /OK3568_Linux_fs/buildroot/package/xmlstarlet/xmlstarlet.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# xmlstarlet
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunXMLSTARLET_VERSION = 1.6.1
8*4882a593SmuzhiyunXMLSTARLET_SITE = http://downloads.sourceforge.net/project/xmlstar/xmlstarlet/$(XMLSTARLET_VERSION)
9*4882a593SmuzhiyunXMLSTARLET_LICENSE = MIT
10*4882a593SmuzhiyunXMLSTARLET_LICENSE_FILES = COPYING
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunXMLSTARLET_DEPENDENCIES += libxml2 libxslt \
13*4882a593Smuzhiyun	$(if $(BR2_PACKAGE_LIBICONV),libiconv)
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunXMLSTARLET_CONF_OPTS += \
16*4882a593Smuzhiyun	--with-libxml-prefix=$(STAGING_DIR)/usr \
17*4882a593Smuzhiyun	--with-libxslt-prefix=$(STAGING_DIR)/usr \
18*4882a593Smuzhiyun	--with-libiconv-prefix=$(STAGING_DIR)/usr
19*4882a593Smuzhiyun
20*4882a593Smuzhiyunifeq ($(BR2_STATIC_LIBS),y)
21*4882a593SmuzhiyunXMLSTARLET_CONF_OPTS += --enable-static-libs
22*4882a593SmuzhiyunXMLSTARLET_CONF_ENV = LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libxml-2.0 libexslt`"
23*4882a593Smuzhiyunelse
24*4882a593SmuzhiyunXMLSTARLET_CONF_OPTS += --disable-static-libs
25*4882a593Smuzhiyunendif
26*4882a593Smuzhiyun
27*4882a593SmuzhiyunHOST_XMLSTARLET_DEPENDENCIES += host-libxml2 host-libxslt
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunHOST_XMLSTARLET_CONF_OPTS += \
30*4882a593Smuzhiyun	--with-libxml-prefix=$(HOST_DIR) \
31*4882a593Smuzhiyun	--with-libxslt-prefix=$(HOST_DIR)
32*4882a593Smuzhiyun
33*4882a593Smuzhiyun$(eval $(autotools-package))
34*4882a593Smuzhiyun$(eval $(host-autotools-package))
35