libxslt: unbreak cross compilation.

This commit is contained in:
Juan RP 2017-09-11 15:16:00 +02:00
parent 7791ad5751
commit 7838ad7297
1 changed files with 2 additions and 6 deletions

View File

@ -1,10 +1,10 @@
# Template build file for 'libxslt'.
pkgname=libxslt
version=1.1.30
revision=1
revision=2
build_style=gnu-configure
configure_args="--disable-static"
makedepends="python-devel libxml2-devel libgcrypt-devel"
makedepends="python-devel libxml2-devel libxml2-python libgcrypt-devel"
short_desc="XSLT parser library from the GNOME project"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://xmlsoft.org/XSLT/"
@ -14,10 +14,6 @@ checksum=ba65236116de8326d83378b2bd929879fa185195bc530b9d1aba72107910b6b3
if [ "$CROSS_BUILD" ]; then
hostmakedepends="libtool automake gettext-devel ${makedepends}"
pre_configure() {
sed -e "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g" -i configure.in
autoreconf -fi
}
pre_build() {
sed -e "s|/usr/\(include/python2.7\)|$XBPS_CROSS_BASE/\1|g" \
-e "s|/usr/\(lib/python2.7/site-packages\)|$XBPS_CROSS_BASE/\1|g" \