300f9c9c9d
Thanks to the pkgparentdir and pkgname functions, we can rewrite the AUTOTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
22 lines
700 B
Makefile
22 lines
700 B
Makefile
#############################################################
|
|
#
|
|
# XMLstarlet
|
|
#
|
|
#############################################################
|
|
|
|
XMLSTARLET_VERSION:=1.0.4
|
|
XMLSTARLET_SOURCE:=xmlstarlet-$(XMLSTARLET_VERSION).tar.gz
|
|
XMLSTARLET_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/project/xmlstar/xmlstarlet/$(XMLSTARLET_VERSION)
|
|
XMLSTARLET_INSTALL_STAGING:=NO
|
|
XMLSTARLET_INSTALL_TARGET:=YES
|
|
|
|
XMLSTARLET_DEPENDENCIES += libxml2 libxslt \
|
|
$(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
|
|
|
XMLSTARLET_CONF_OPT += --disable-static-libs \
|
|
--with-libxml-prefix=${STAGING_DIR}/usr \
|
|
--with-libxslt-prefix=${STAGING_DIR}/usr \
|
|
--with-libiconv-prefix=${STAGING_DIR}/usr
|
|
|
|
$(eval $(call AUTOTARGETS))
|