From 1c413e169d2aba8f7b5f2bf6411d375d25734160 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sun, 21 May 2017 17:28:28 +0200 Subject: [PATCH] libplist: fix crossbuild --- srcpkgs/libplist/template | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/srcpkgs/libplist/template b/srcpkgs/libplist/template index 66f6b772204..ad6275bdf88 100644 --- a/srcpkgs/libplist/template +++ b/srcpkgs/libplist/template @@ -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() {