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.SlackBuild22
1 files changed, 16 insertions, 6 deletions
diff --git a/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild b/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild
index 766d813cd3..bcadcbd679 100644
--- a/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild
+++ b/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild
@@ -24,10 +24,19 @@
PRGNAM=libtorrent-rasterbar
VERSION=0.14.8
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) export ARCH=i486 ;;
+ arm*) export ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) export ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -66,11 +75,12 @@ LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
--disable-static \
--enable-python-binding \
--with-zlib=system \
- --with-boost-system=mt \
- --with-boost-filesystem=mt \
- --with-boost-thread=mt \
- --with-boost-regex=mt \
- --with-boost-program-options=mt \
+ --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