ports

morpheus ports
git clone git://git.2f30.org/ports
Log | Files | Refs | LICENSE

commit 7880bf42420a8f267f3ba5b46ef67a31f61161ca
parent 8b91ad7bf985c91553cede85a7db265bcc98659e
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu,  5 Jun 2014 16:23:32 +0200

add libtorrent

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
Alibtorrent/checksums | 1+
Alibtorrent/depsinc.mk | 6++++++
Alibtorrent/libtorrent.mk | 23+++++++++++++++++++++++
Alibtorrent/mkfile | 6++++++
Alibtorrent/v.mk | 1+
5 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/libtorrent/checksums b/libtorrent/checksums @@ -0,0 +1 @@ +03528531141c2e0a82c5371b619850bb54be2fc702ca676093f742795284e396fa664ea38302c7c8466bb33ca2ec51039e7c942d7bd681b1a2e9ae5ec69c4c20 libtorrent-0.13.2.tar.gz diff --git a/libtorrent/depsinc.mk b/libtorrent/depsinc.mk @@ -0,0 +1,6 @@ +<$libtorrent_DEPDIR/v.mk + +libtorrent_libdir = $libtorrent_DEPDIR/libtorrent-$v/lib/lib +libtorrent_includedir = $libtorrent_DEPDIR/libtorrent-$v/lib/include +DEPS_CFLAGS = $DEPS_CFLAGS -I${libtorrent_includedir} +DEPS_LDFLAGS = $DEPS_LDFLAGS -L${libtorrent_libdir} -ltorrent diff --git a/libtorrent/libtorrent.mk b/libtorrent/libtorrent.mk @@ -0,0 +1,23 @@ +TARG = libtorrent +DEPS = openssl libsigcpp + +<$mkbuild/mk.common-noinst + +libtorrent:QV: + export CFLAGS="$CFLAGS $DEPS_CFLAGS" + export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS" + export OPENSSL_CFLAGS="-I${openssl_includedir}" + export OPENSSL_LIBS="-L${openssl_libdir} -lssl -lcrypto -lz" + export STUFF_CFLAGS="-I${libsigcpp_includedir} -I${libsigcpp_libdir}/sigc++-2.0/include" + export STUFF_LIBS="-L${libsigcpp_libdir} -lsigc-2.0" + # + CC="$CC" ./configure \ + --prefix="$PREFIX" \ + --mandir="$ROOT/share/man" \ + --disable-shared \ + --enable-static \ + --enable-ipv6 + # make install for use as a dependency. + make -j$nprocs DESTDIR=`pwd`/lib install + # remove .la files for now ? + find `pwd`/lib -iname "*.la" -exec rm {} \; diff --git a/libtorrent/mkfile b/libtorrent/mkfile @@ -0,0 +1,6 @@ +<$mkbuild/mk.3rdparty + +<v.mk +src = libtorrent-$v +url = http://libtorrent.rakshasa.no/downloads/libtorrent-$v.tar.gz +mkfile = ../libtorrent.mk diff --git a/libtorrent/v.mk b/libtorrent/v.mk @@ -0,0 +1 @@ +v = 0.13.2