libtorrent-rasterbar-python: cross compilation support
This commit is contained in:
parent
4b15e10e6c
commit
4c1fdcde1c
1 changed files with 9 additions and 10 deletions
|
@ -3,9 +3,9 @@ pkgname=libtorrent-rasterbar
|
||||||
version=1.1.2
|
version=1.1.2
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-libgeoip --with-boost-libdir=${XBPS_CROSS_BASE}/usr/lib"
|
configure_args="--enable-python-binding --with-boost=${XBPS_CROSS_BASE}/usr"
|
||||||
hostmakedepends="pkg-config intltool"
|
hostmakedepends="automake pkg-config intltool libtool python-devel"
|
||||||
makedepends="libressl-devel boost-devel geoip-devel"
|
makedepends="libressl-devel boost-devel boost-python geoip-devel python-devel"
|
||||||
short_desc="C++ bittorrent library by Rasterbar Software"
|
short_desc="C++ bittorrent library by Rasterbar Software"
|
||||||
maintainer="Eivind Uggedal <eivind@uggedal.com>"
|
maintainer="Eivind Uggedal <eivind@uggedal.com>"
|
||||||
homepage="http://www.rasterbar.com/products/libtorrent/"
|
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"
|
distfiles="https://github.com/arvidn/libtorrent/releases/download/libtorrent-${version//./_}/libtorrent-rasterbar-${version}.tar.gz"
|
||||||
checksum=45e55f2374507bb67a9b9125f6b8d1c45e6cd33849c62b1d9cb56657354e359a
|
checksum=45e55f2374507bb67a9b9125f6b8d1c45e6cd33849c62b1d9cb56657354e359a
|
||||||
|
|
||||||
subpackages="libtorrent-rasterbar-devel"
|
pre_configure() {
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python2.7"
|
||||||
configure_args+=" --enable-python-binding"
|
export PYTHON_CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python2.7"
|
||||||
makedepends+=" boost-python python-devel"
|
export PYTHON_LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib -lpython2.7"
|
||||||
subpackages+=" libtorrent-rasterbar-python"
|
autoreconf -fi
|
||||||
fi
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue