summaryrefslogtreecommitdiff
path: root/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2010-06-12 04:11:27 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-06-12 07:47:26 -0500
commit279e77c532450677fc5fd50d1f3063946f03adc8 (patch)
treed823c3c83aa076e9f62ef4fa56ddcf7b67dc8ec5 /libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild
parent8865baedef5c6492905fe0465fc83a82204168a6 (diff)
downloadslackbuilds-279e77c532450677fc5fd50d1f3063946f03adc8.tar.gz
libraries/libtorrent-rasterbar: Updated for version 0.15.0.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
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