summaryrefslogtreecommitdiffstats
path: root/libraries/libtorrent-rasterbar
diff options
context:
space:
mode:
author dsomero2010-05-22 16:04:37 +0200
committer David Somero2010-05-24 06:15:45 +0200
commitf14f47974f95b18e0a313c85acf599911a8c96e5 (patch)
tree89ee206a246176862c216f84bcc18826747cb295 /libraries/libtorrent-rasterbar
parentbfbc8e8c6f321f926b56c03e71bed3e85f8a4364 (diff)
downloadslackbuilds-f14f47974f95b18e0a313c85acf599911a8c96e5.tar.gz
libraries/libtorrent-rasterbar: Miscellaneous cleanups.
Diffstat (limited to 'libraries/libtorrent-rasterbar')
-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