summaryrefslogtreecommitdiff
path: root/net/libtorrent
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2009-06-04 14:04:08 +0000
committertron <tron@pkgsrc.org>2009-06-04 14:04:08 +0000
commit895bc0db47101d980e12948a74eaed11007acb95 (patch)
tree95c07a9df0f64d0f9ec7a5da50dde33c0056d369 /net/libtorrent
parentf16bc756f54d2d2652938656705cae16c8882f6c (diff)
downloadpkgsrc-895bc0db47101d980e12948a74eaed11007acb95.tar.gz
Turn on kqueue(2) support under DragonFly, FreeBSD and OpenBSD.
It is not turned on under NetBSD because the kqueue(2) API is incompatible. It is not turned on under Darwin because kevent(2) fails with ENODEV. This fixes PR pkg/41529 by Mikko Kortelainen.
Diffstat (limited to 'net/libtorrent')
-rw-r--r--net/libtorrent/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/libtorrent/Makefile b/net/libtorrent/Makefile
index a3a63eb5f3f..e7863143a32 100644
--- a/net/libtorrent/Makefile
+++ b/net/libtorrent/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.31 2009/05/19 08:59:27 wiz Exp $
+# $NetBSD: Makefile,v 1.32 2009/06/04 14:04:08 tron Exp $
DISTNAME= libtorrent-0.12.2
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ${HOMEPAGE:=downloads/}
@@ -18,6 +19,12 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-debug
GCC_REQD+= 3.3
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD"
+CONFIGURE_ARGS+= --with-kqueue
+.endif
+
.include "../../mk/compiler.mk"
# See http://libtorrent.rakshasa.no/ticket/96