Libtorrent-Rasterbar: bump, cleanup, debuginfo (#2340)

* Libtorrent-Rasterbar: bump, cleanup, debuginfo

* Cleanup

* Cleanup
This commit is contained in:
miqlas
2018-03-24 07:06:54 +01:00
committed by GitHub
parent 7e98fcd1e8
commit 03b3a054d3
2 changed files with 31 additions and 13 deletions

View File

@@ -11,20 +11,38 @@ The main goals of libtorrent are:
* to be memory efficient
* to be very easy to use"
HOMEPAGE="http://www.libtorrent.org/"
COPYRIGHT="2003-2017 Arvid Norberg"
COPYRIGHT="2003-2017 Arvid Norberg
Andrei Kurushin
Steven Siloti
Thomas Fischer
Massaroddel
Tianhao Qiu.
Shyam
Magnus Jonsson
Daniel Wallin
Cory Nelson
Stas Khirman
Ryan Norton
Andrew Resch
Michael Wojciechowski
Peter Koeleman
Reimond Retz"
LICENSE="BSD (2-clause)"
REVISION="4"
REVISION="1"
SOURCE_URI="https://github.com/arvidn/libtorrent/releases/download/libtorrent-${portVersion//./_}/libtorrent-rasterbar-$portVersion.tar.gz"
CHECKSUM_SHA256="103134068389155a0f2bccaca72a57765460eb8188495089dcad280dcf426930"
CHECKSUM_SHA256="b7c74d004bd121bd6e9f8975ee1fec3c95c74044c6a6250f6b07f259f55121ef"
SOURCE_DIR="libtorrent-rasterbar-$portVersion"
PATCHES="libtorrent_rasterbar-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
libVersion="9.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libtorrent_rasterbar${secondaryArchSuffix} = $portVersion
lib:libtorrent_rasterbar$secondaryArchSuffix = 9 compat >= 9
libtorrent_rasterbar$secondaryArchSuffix = $portVersion
lib:libtorrent_rasterbar$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
@@ -38,7 +56,7 @@ REQUIRES="
PROVIDES_devel="
libtorrent_rasterbar${secondaryArchSuffix}_devel = $portVersion
devel:libtorrent_rasterbar$secondaryArchSuffix = 9 compat >= 9
devel:libtorrent_rasterbar$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libtorrent_rasterbar$secondaryArchSuffix == $portVersion base
@@ -53,9 +71,6 @@ BUILD_REQUIRES="
devel:libssl$secondaryArchSuffix >= 1.0.0
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
@@ -63,12 +78,15 @@ BUILD_PREREQUIRES="
cmd:pkg_config$secondaryArchSuffix
"
defineDebugInfoPackage libtorrent_rasterbar$secondaryArchSuffix \
$libDir/libtorrent-rasterbar.so.$libVersion
BUILD()
{
sed -i 's/-msse4.2//' configure.ac
autoreconf -fi
export CXXFLAGS="$CXXFLAGS -std=c++11 -DBOOST_NO_CXX11_CONSTEXPR"
runConfigure ./configure --disable-static --with-libiconv \
runConfigure ./configure \
--disable-static \
--with-libiconv \
--with-boost-system=boost_system \
--with-boost-chrono=boost_chrono \
--with-boost-random=boost_random
@@ -77,7 +95,7 @@ BUILD()
INSTALL()
{
make install-strip
make install
rm $libDir/libtorrent-rasterbar.la