libplist: fix crosbuild

This commit is contained in:
Enno Boland 2017-05-21 17:14:47 +02:00
parent 160599519b
commit d1c59884df

View file

@ -1,7 +1,7 @@
# Template file for 'libplist'
pkgname=libplist
version=2.0.0
revision=1
revision=2
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="automake libtool pkg-config python-devel python-Cython"
@ -12,13 +12,11 @@ license="GPL-2, LGPL-2.1"
homepage="http://libimobiledevice.org/"
distfiles="http://www.libimobiledevice.org/downloads/${pkgname}-${version}.tar.bz2"
checksum=3a7e9694c2d9a85174ba1fa92417cfabaea7f6d19631e544948dc7e17e82f602
nocross="investigate why this works with aarch64 but not arm[67]"
CPPFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/python2.7"
LDFLAGS+=" -L${XBPS_CROSS_BASE}/usr/lib -lpython2.7"
pre_configure() {
sed -i 's,-L$(libdir),,g' cython/Makefile.am
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python2.7"
export PYTHON_LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib -lpython2.7"
autoreconf -fi
}