libtorrent-rasterbar: update to 1.2.11
Enforce using -std=c++11 for compatibility with dependencies
This commit is contained in:
parent
e4fdfd52f0
commit
bd4242e0ae
1 changed files with 25 additions and 30 deletions
|
@ -1,50 +1,43 @@
|
||||||
# Template file for 'libtorrent-rasterbar'
|
# Template file for 'libtorrent-rasterbar'
|
||||||
# Breaks ABI/API without changing soname, revbump all dependants
|
# Breaks ABI/API without changing soname, revbump all dependants
|
||||||
pkgname=libtorrent-rasterbar
|
pkgname=libtorrent-rasterbar
|
||||||
reverts="1.2.9_1"
|
version=1.2.11
|
||||||
version=1.2.7
|
revision=1
|
||||||
revision=4
|
build_style=cmake
|
||||||
build_style=gnu-configure
|
configure_args="-DCMAKE_CXX_STANDARD=11 -Dbuild_examples=ON -Dbuild_tools=ON
|
||||||
configure_args="--enable-examples --enable-python-binding
|
-Dpython-bindings=ON"
|
||||||
--with-boost=${XBPS_CROSS_BASE}/usr
|
hostmakedepends="pkg-config intltool libtool python3-devel"
|
||||||
--with-boost-python=boost_python${py3_ver//./}"
|
|
||||||
hostmakedepends="automake pkg-config intltool libtool python3-devel"
|
|
||||||
makedepends="libressl-devel boost-devel geoip-devel python3-devel"
|
makedepends="libressl-devel boost-devel geoip-devel python3-devel"
|
||||||
short_desc="C++ bittorrent library by Rasterbar Software"
|
short_desc="C++ bittorrent library by Rasterbar Software"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
||||||
license="BSD-3-Clause"
|
license="BSD-3-Clause"
|
||||||
homepage="https://libtorrent.org/"
|
homepage="https://libtorrent.org/"
|
||||||
distfiles="https://github.com/arvidn/libtorrent/releases/download/libtorrent_${version//./_}/libtorrent-rasterbar-${version}.tar.gz"
|
distfiles="https://github.com/arvidn/libtorrent/releases/download/v${version}/${pkgname}-${version}.tar.gz"
|
||||||
checksum=bc00069e65c0825cbe1eee5cdd26f94fcd9a621c4e7f791810b12fab64192f00
|
checksum=cb6a9cc3c9a9e485174394baa82744cef8415d23a357f5721dcc9ee7622c4efb
|
||||||
|
|
||||||
|
if [ "$XBPS_CHECK_PKGS" ]; then
|
||||||
|
configure_args+=" -Dbuild_tests=ON"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||||
makedepends+=" libatomic-devel"
|
makedepends+=" libatomic-devel"
|
||||||
LDFLAGS+=" -latomic"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
local _py3_ver=${py3_ver}${py3_abiver}
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||||
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python${_py3_ver}"
|
vsed -i CMakeLists.txt -e "s;Threads::Threads;& atomic;"
|
||||||
export PYTHON_CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python${_py3_ver}"
|
|
||||||
export PYTHON_EXTRA_LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib -lpython${_py3_ver}"
|
|
||||||
autoreconf -fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pre_build() {
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
|
||||||
for f in ${XBPS_CROSS_BASE}/${py3_lib}/_sysconfigdata_*; do
|
|
||||||
f=${f##*/}
|
|
||||||
export _PYTHON_SYSCONFIGDATA_NAME=${f%.py}
|
|
||||||
done
|
|
||||||
export PYTHONPATH=${XBPS_CROSS_BASE}/${py3_lib}
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_install() {
|
|
||||||
pre_build
|
|
||||||
}
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
local f
|
||||||
|
|
||||||
|
# Install examples. They are not installed with make install :P
|
||||||
|
for f in client_test connection_tester dump_torrent simple_client upnp_test \
|
||||||
|
custom_storage make_torrent stats_counters; do
|
||||||
|
vbin ${wrksrc}/build/examples/${f}
|
||||||
|
done
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,13 +51,15 @@ libtorrent-rasterbar-python3_package() {
|
||||||
|
|
||||||
libtorrent-rasterbar-devel_package() {
|
libtorrent-rasterbar-devel_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision} libressl-devel boost-devel geoip-devel"
|
depends="${sourcepkg}>=${version}_${revision} libressl-devel boost-devel geoip-devel"
|
||||||
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||||
|
depends+=" libatomic-devel"
|
||||||
|
fi
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/share/cmake
|
vmove usr/share/cmake
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
vmove "usr/lib/*.so"
|
vmove "usr/lib/*.so"
|
||||||
vmove "usr/lib/*.a"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue