diff options
Diffstat (limited to 'libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild')
-rw-r--r-- | libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild b/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild index 3052415e27..06f1081ff2 100644 --- a/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild +++ b/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild @@ -4,7 +4,7 @@ # Written by Erik Hanson erik@slackbuilds.org PRGNAM=libtorrent-rasterbar -VERSION=0.13.1 +VERSION=0.14.3 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -18,6 +18,8 @@ if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" fi rm -rf $PKG @@ -29,9 +31,6 @@ cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . -# Patch lifted from Zenwalk -patch -p0 < $CWD/boost-1.36.0.patch - CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -39,6 +38,8 @@ CXXFLAGS="$SLKCFLAGS" \ --sysconfdir=/etc \ --localstatedir=/var/lib \ --disable-static \ + --enable-python-binding \ + --with-zlib=system \ --build=$ARCH-slackware-linux make @@ -47,6 +48,9 @@ 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/ \ $PKG/usr/doc/$PRGNAM-$VERSION |