libtorrent-rasterbar-python: cross compilation support

This commit is contained in:
Alessio Sergi 2017-03-18 00:43:32 +01:00
parent 4b15e10e6c
commit 4c1fdcde1c

View file

@ -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 <eivind@uggedal.com>"
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
}