summaryrefslogtreecommitdiff
path: root/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild')
-rw-r--r--libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild33
1 files changed, 13 insertions, 20 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