summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild33
-rw-r--r--libraries/libtorrent-rasterbar/libtorrent-rasterbar.info8
2 files changed, 17 insertions, 24 deletions
diff --git a/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild b/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild
index 33cf0b9029..3fe201b4ec 100644
--- a/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild
+++ b/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild
@@ -23,25 +23,23 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libtorrent-rasterbar
-VERSION=0.14.8
+VERSION=0.15.0
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i486 ;;
- arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
- *) ARCH=$( uname -m ) ;;
- esac
-fi
-
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) export ARCH=i486 ;;
+ arm*) export ARCH=arm ;;
+ *) export ARCH=$( uname -m ) ;;
+ esac
+fi
+
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
@@ -51,6 +49,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -eu
@@ -76,24 +77,16 @@ LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
--enable-python-binding \
--with-zlib=system \
--with-boost-libdir=/usr/lib${LIBDIRSUFFIX} \
- --with-boost-system=boost_system \
- --with-boost-filesystem=boost_filesystem \
- --with-boost-thread=boost_thread \
- --with-boost-regex=boost_regex \
- --with-boost-program-options=boost_program_options \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
-# Install missing asio includes; thanks to Heinz Wiesinger.
-cp -a include/libtorrent/asio $PKG/usr/include/libtorrent/
-
# Remove empty directory; thanks to Larry Hajali.
rmdir $PKG/usr/bin
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README docs/ \
+cp -a AUTHORS COPYING ChangeLog NEWS README docs/ \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/libraries/libtorrent-rasterbar/libtorrent-rasterbar.info b/libraries/libtorrent-rasterbar/libtorrent-rasterbar.info
index 711201a568..d8cdaf3658 100644
--- a/libraries/libtorrent-rasterbar/libtorrent-rasterbar.info
+++ b/libraries/libtorrent-rasterbar/libtorrent-rasterbar.info
@@ -1,10 +1,10 @@
PRGNAM="libtorrent-rasterbar"
-VERSION="0.14.8"
+VERSION="0.15.0"
HOMEPAGE="http://www.rasterbar.com/products/libtorrent/"
-DOWNLOAD="http://libtorrent.googlecode.com/files/libtorrent-rasterbar-0.14.8.tar.gz"
-MD5SUM="3fae9934b74e2ddf2c50c1f0ec320d75"
+DOWNLOAD="http://libtorrent.googlecode.com/files/libtorrent-rasterbar-0.15.0.tar.gz"
+MD5SUM="3f8253457557a3f4778fa18fa076c5c9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Erik Hanson"
EMAIL="erik@slackbuilds.org"
-APPROVED="dsomero"
+APPROVED="rworkman"