summaryrefslogtreecommitdiff
path: root/net/libtorrent
diff options
context:
space:
mode:
authortron <tron>2009-04-10 09:06:20 +0000
committertron <tron>2009-04-10 09:06:20 +0000
commitab50a3fe9872b01eb8c14a3cbd8cf7ba042f6d8f (patch)
tree73b26b0a252e484ef89b4f1dc2447ca2991048db /net/libtorrent
parent36e22e1494fb08515aef13fb655883fe20ea3076 (diff)
downloadpkgsrc-ab50a3fe9872b01eb8c14a3cbd8cf7ba042f6d8f.tar.gz
Add two patches taken from "xnet.fi" to fix the build under SunOS 5.11
(and eventually older versions). Problem reported by Tom Hensel in private e-mail.
Diffstat (limited to 'net/libtorrent')
-rw-r--r--net/libtorrent/Makefile4
-rw-r--r--net/libtorrent/distinfo3
-rw-r--r--net/libtorrent/patches/patch-aa15
3 files changed, 20 insertions, 2 deletions
diff --git a/net/libtorrent/Makefile b/net/libtorrent/Makefile
index 4d20919aafe..65b91749d72 100644
--- a/net/libtorrent/Makefile
+++ b/net/libtorrent/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2008/12/03 12:57:40 tron Exp $
+# $NetBSD: Makefile,v 1.30 2009/04/10 09:06:20 tron Exp $
DISTNAME= libtorrent-0.12.2
CATEGORIES= net
@@ -8,6 +8,8 @@ OWNER= tron@NetBSD.org
HOMEPAGE= http://libtorrent.rakshasa.no/
COMMENT= BitTorrent library written in C++ for *nix
+LICENSE= gnu-gpl-v2
+
PKG_DESTDIR_SUPPORT= user-destdir
USE_LANGUAGES= c c++
diff --git a/net/libtorrent/distinfo b/net/libtorrent/distinfo
index 6de783f1f7f..82bbf401f32 100644
--- a/net/libtorrent/distinfo
+++ b/net/libtorrent/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.21 2008/12/03 12:57:40 tron Exp $
+$NetBSD: distinfo,v 1.22 2009/04/10 09:06:20 tron Exp $
SHA1 (libtorrent-0.12.2.tar.gz) = a53d2c671e9f2dd971d0622d5b3672da91c46ef9
RMD160 (libtorrent-0.12.2.tar.gz) = 88cdc415f98afd8b87fa6d7330906737c3e434fa
Size (libtorrent-0.12.2.tar.gz) = 585374 bytes
+SHA1 (patch-aa) = d864808b9e9524b3a7f72bcc1b465d4e6b2d4f4a
diff --git a/net/libtorrent/patches/patch-aa b/net/libtorrent/patches/patch-aa
new file mode 100644
index 00000000000..7985bc05e38
--- /dev/null
+++ b/net/libtorrent/patches/patch-aa
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.8 2009/04/10 09:06:20 tron Exp $
+
+--- src/data/memory_chunk.cc.orig 2008-05-07 13:19:13.000000000 +0100
++++ src/data/memory_chunk.cc 2009-04-10 09:37:20.000000000 +0100
+@@ -46,6 +46,10 @@
+ #include "torrent/exceptions.h"
+ #include "memory_chunk.h"
+
++#if defined(sun) || defined(__sun)
++extern "C" int madvise(void *addr, size_t len, int behav);
++#endif /* sun || __sun */
++
+ namespace torrent {
+
+ uint32_t MemoryChunk::m_pagesize = getpagesize();