libtorrent-rasterbar: build with python3 bindings

This commit is contained in:
mobinmob 2019-06-30 21:23:50 +03:00 committed by Juan RP
parent 6ae66a2620
commit 2f8a9d9031
2 changed files with 10 additions and 10 deletions

View file

@ -1,11 +1,11 @@
# Template file for 'libtorrent-rasterbar'
pkgname=libtorrent-rasterbar
version=1.1.13
revision=2
revision=3
build_style=gnu-configure
configure_args="--enable-examples --enable-python-binding --with-boost=${XBPS_CROSS_BASE}/usr"
hostmakedepends="automake pkg-config intltool libtool python-devel"
makedepends="libressl-devel boost-devel geoip-devel python-devel"
configure_args="--enable-examples --enable-python-binding --with-boost=${XBPS_CROSS_BASE}/usr --with-boost-python=boost_python36"
hostmakedepends="automake pkg-config intltool libtool python3-devel"
makedepends="libressl-devel boost-devel geoip-devel python3-devel"
short_desc="C++ bittorrent library by Rasterbar Software"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="BSD-3-Clause"
@ -14,9 +14,9 @@ distfiles="https://github.com/arvidn/libtorrent/releases/download/libtorrent-${v
checksum=30040719858e3c06634764e0c1778738eb42ecd0b45e814afa746329a948ead7
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"
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python3.6m"
export PYTHON_CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python3.6m"
export PYTHON_EXTRA_LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib -lpython3.6m"
autoreconf -fi
}
@ -24,11 +24,11 @@ post_install() {
vlicense LICENSE
}
libtorrent-rasterbar-python_package() {
libtorrent-rasterbar-python3_package() {
lib32disabled=yes
short_desc+=" - Python2 bindings"
short_desc+=" - Python3 bindings"
pkg_install() {
vmove usr/lib/python2*
vmove usr/lib/python3*
}
}