libimobiledevice: cross build support.

This commit is contained in:
Juan RP 2014-11-14 11:50:15 +01:00
parent d4fa24d9cd
commit 12aece275f

View file

@ -1,10 +1,10 @@
# Template file for 'libimobiledevice' # Template file for 'libimobiledevice'
pkgname=libimobiledevice pkgname=libimobiledevice
version=1.1.7 version=1.1.7
revision=1 revision=2
build_style=gnu-configure build_style=gnu-configure
hostmakedepends="pkg-config python-devel" hostmakedepends="automake libtool pkg-config python-devel"
makedepends="libglib-devel libressl-devel libusb-devel libplist-devel libusbmuxd-devel" makedepends="python-devel libglib-devel libressl-devel libusb-devel libplist-devel libusbmuxd-devel"
short_desc="A library to communicate with Apple devices" short_desc="A library to communicate with Apple devices"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2,LGPL-2.1" license="GPL-2,LGPL-2.1"
@ -12,6 +12,13 @@ homepage="http://www.libimobiledevice.org/"
distfiles="http://www.libimobiledevice.org/downloads/${pkgname}-${version}.tar.bz2" distfiles="http://www.libimobiledevice.org/downloads/${pkgname}-${version}.tar.bz2"
checksum=e6afaad739f8deeb5b9c5c99fac7d01c818fa944b18ef3d3ae0456453d2eb2b0 checksum=e6afaad739f8deeb5b9c5c99fac7d01c818fa944b18ef3d3ae0456453d2eb2b0
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
}
libimobiledevice-devel_package() { libimobiledevice-devel_package() {
short_desc+=" - development files" short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}" depends="${makedepends} ${sourcepkg}>=${version}_${revision}"