From 4c1fdcde1ccbcab8dd72425439890b4b179a18b8 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sat, 18 Mar 2017 00:43:32 +0100 Subject: [PATCH] libtorrent-rasterbar-python: cross compilation support --- srcpkgs/libtorrent-rasterbar/template | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/srcpkgs/libtorrent-rasterbar/template b/srcpkgs/libtorrent-rasterbar/template index 6b7450ed1d4..0ee732af9ba 100644 --- a/srcpkgs/libtorrent-rasterbar/template +++ b/srcpkgs/libtorrent-rasterbar/template @@ -3,9 +3,9 @@ pkgname=libtorrent-rasterbar version=1.1.2 revision=1 build_style=gnu-configure -configure_args="--with-libgeoip --with-boost-libdir=${XBPS_CROSS_BASE}/usr/lib" -hostmakedepends="pkg-config intltool" -makedepends="libressl-devel boost-devel geoip-devel" +configure_args="--enable-python-binding --with-boost=${XBPS_CROSS_BASE}/usr" +hostmakedepends="automake pkg-config intltool libtool python-devel" +makedepends="libressl-devel boost-devel boost-python geoip-devel python-devel" short_desc="C++ bittorrent library by Rasterbar Software" maintainer="Eivind Uggedal " homepage="http://www.rasterbar.com/products/libtorrent/" @@ -13,13 +13,12 @@ license="3-clause-BSD" distfiles="https://github.com/arvidn/libtorrent/releases/download/libtorrent-${version//./_}/libtorrent-rasterbar-${version}.tar.gz" checksum=45e55f2374507bb67a9b9125f6b8d1c45e6cd33849c62b1d9cb56657354e359a -subpackages="libtorrent-rasterbar-devel" -if [ -z "$CROSS_BUILD" ]; then - configure_args+=" --enable-python-binding" - makedepends+=" boost-python python-devel" - subpackages+=" libtorrent-rasterbar-python" -fi - +pre_configure() { + export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python2.7" + export PYTHON_CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python2.7" + export PYTHON_LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib -lpython2.7" + autoreconf -fi +} post_install() { vlicense LICENSE }