diff options
-rw-r--r-- | libraries/libtorrent-rasterbar/README | 5 | ||||
-rw-r--r-- | libraries/libtorrent-rasterbar/boost-1.36.0.patch | 40 | ||||
-rw-r--r-- | libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild | 59 | ||||
-rw-r--r-- | libraries/libtorrent-rasterbar/libtorrent-rasterbar.info | 8 | ||||
-rw-r--r-- | libraries/libtorrent-rasterbar/slack-desc | 19 |
5 files changed, 131 insertions, 0 deletions
diff --git a/libraries/libtorrent-rasterbar/README b/libraries/libtorrent-rasterbar/README new file mode 100644 index 0000000000..36bca045b5 --- /dev/null +++ b/libraries/libtorrent-rasterbar/README @@ -0,0 +1,5 @@ +libtorrent is a C++ library that aims to be a good alternative to all the +other bittorrent implementations around. It is a library and not a full +featured client, although it comes with a working example client. + +Requires boost, available at SlackBuilds.org diff --git a/libraries/libtorrent-rasterbar/boost-1.36.0.patch b/libraries/libtorrent-rasterbar/boost-1.36.0.patch new file mode 100644 index 0000000000..cffebba940 --- /dev/null +++ b/libraries/libtorrent-rasterbar/boost-1.36.0.patch @@ -0,0 +1,40 @@ +diff -uNr src/torrent_info.cpp src/torrent_info.cpp2 +--- src/torrent_info.cpp 2008-08-24 18:13:52.000000000 +0200 ++++ src/torrent_info.cpp 2008-08-24 18:15:28.000000000 +0200 +@@ -354,7 +354,11 @@ + { + m_name = tmp.leaf(); + } ++#if BOOST_VERSION < 103600 + else if (tmp.has_branch_path()) ++#else ++ else if (tmp.has_parent_path()) ++#endif + { + fs::path p; + for (fs::path::iterator i = tmp.begin() +@@ -572,7 +576,11 @@ + { + // TORRENT_ASSERT(file.begin() != file.end()); + ++#if BOOST_VERSION < 103600 + if (!file.has_branch_path()) ++#else ++ if (!file.has_parent_path()) ++#endif + { + // you have already added at least one file with a + // path to the file (branch_path), which means that + +====================================================================================== +diff -uNr include/libtorrent/disk_io_thread.hpp include/libtorrent/disk_io_thread.hpp2 +--- include/libtorrent/disk_io_thread.hpp 2008-04-09 10:48:02.000000000 +0200 ++++ include/libtorrent/disk_io_thread.hpp 2008-08-24 20:38:01.000000000 +0200 +@@ -39,6 +39,7 @@ + + #include "libtorrent/storage.hpp" + #include <boost/thread/thread.hpp> ++#include <boost/thread/condition.hpp> + #include <boost/function.hpp> + #include <boost/thread/mutex.hpp> + #include <boost/bind.hpp> diff --git a/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild b/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild new file mode 100644 index 0000000000..3052415e27 --- /dev/null +++ b/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild @@ -0,0 +1,59 @@ +#!/bin/sh -eu + +# Slackware build script for libtorrent (rasterbar) +# Written by Erik Hanson erik@slackbuilds.org + +PRGNAM=libtorrent-rasterbar +VERSION=0.13.1 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +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 \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var/lib \ + --disable-static \ + --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/ + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README docs/ \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/libraries/libtorrent-rasterbar/libtorrent-rasterbar.info b/libraries/libtorrent-rasterbar/libtorrent-rasterbar.info new file mode 100644 index 0000000000..d7143d9507 --- /dev/null +++ b/libraries/libtorrent-rasterbar/libtorrent-rasterbar.info @@ -0,0 +1,8 @@ +PRGNAM="libtorrent-rasterbar" +VERSION="0.13.1" +HOMEPAGE="http://www.rasterbar.com/products/libtorrent/" +DOWNLOAD="http://downloads.sourceforge.net/libtorrent/libtorrent-rasterbar-0.13.1.tar.gz" +MD5SUM="9d6b112fedc5861402647ff72e95dba0" +MAINTAINER="Erik Hanson" +EMAIL="erik@slackbuilds.org" +APPROVED="rworkman" diff --git a/libraries/libtorrent-rasterbar/slack-desc b/libraries/libtorrent-rasterbar/slack-desc new file mode 100644 index 0000000000..663695b194 --- /dev/null +++ b/libraries/libtorrent-rasterbar/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler----------------------------------------| +libtorrent-rasterbar: libtorrent-rasterbar (a bittorrent C++ library) +libtorrent-rasterbar: +libtorrent-rasterbar: libtorrent is a C++ library that aims to be a good +libtorrent-rasterbar: alternative to all the other bittorrent implementations +libtorrent-rasterbar: around. It is a library and not a full featured client, +libtorrent-rasterbar: although it comes with a working example client. +libtorrent-rasterbar: +libtorrent-rasterbar: Homepage: http://www.rasterbar.com/products/libtorrent/ +libtorrent-rasterbar: +libtorrent-rasterbar: +libtorrent-rasterbar: |