libplist: fix crossbuild
This commit is contained in:
parent
652d1c9ef0
commit
1c413e169d
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'libplist'
|
||||
pkgname=libplist
|
||||
version=2.0.0
|
||||
revision=2
|
||||
revision=3
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-static"
|
||||
hostmakedepends="automake libtool pkg-config python-devel python-Cython"
|
||||
|
@ -12,12 +12,13 @@ license="GPL-2, LGPL-2.1"
|
|||
homepage="http://libimobiledevice.org/"
|
||||
distfiles="http://www.libimobiledevice.org/downloads/${pkgname}-${version}.tar.bz2"
|
||||
checksum=3a7e9694c2d9a85174ba1fa92417cfabaea7f6d19631e544948dc7e17e82f602
|
||||
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
|
||||
sed -i "s#\$PYTHON-config#__DOES_NOT_EXIST__#" configure
|
||||
}
|
||||
|
||||
libplist++_package() {
|
||||
|
|
Loading…
Reference in New Issue