summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authortron <tron>2009-06-04 14:04:08 +0000
committertron <tron>2009-06-04 14:04:08 +0000
commitcbc5708804a386dbbd0178b6dd1cb7be72985151 (patch)
tree95c07a9df0f64d0f9ec7a5da50dde33c0056d369 /net
parent500ae91b437c4d82b1512394b1ffd11a4492eef5 (diff)
downloadpkgsrc-cbc5708804a386dbbd0178b6dd1cb7be72985151.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')
-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