pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/libtorrent Turn on kqueue(2) support under DragonF...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e3fc1007346a
branches:  trunk
changeset: 394074:e3fc1007346a
user:      tron <tron%pkgsrc.org@localhost>
date:      Thu Jun 04 14:04:08 2009 +0000

description:
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:

 net/libtorrent/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 36f8a353e9c9 -r e3fc1007346a net/libtorrent/Makefile
--- a/net/libtorrent/Makefile   Thu Jun 04 13:50:59 2009 +0000
+++ b/net/libtorrent/Makefile   Thu Jun 04 14:04:08 2009 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index