Thu Jun 4 14:04:09 2009 UTC ()
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.


(tron)
diff -r1.31 -r1.32 pkgsrc/net/libtorrent/Makefile

cvs diff -r1.31 -r1.32 pkgsrc/net/libtorrent/Makefile (expand / switch to unified diff)

--- pkgsrc/net/libtorrent/Makefile 2009/05/19 08:59:27 1.31
+++ pkgsrc/net/libtorrent/Makefile 2009/06/04 14:04:08 1.32
@@ -1,33 +1,40 @@ @@ -1,33 +1,40 @@
1# $NetBSD: Makefile,v 1.31 2009/05/19 08:59:27 wiz Exp $ 1# $NetBSD: Makefile,v 1.32 2009/06/04 14:04:08 tron Exp $
2 2
3DISTNAME= libtorrent-0.12.2 3DISTNAME= libtorrent-0.12.2
 4PKGREVISION= 1
4CATEGORIES= net 5CATEGORIES= net
5MASTER_SITES= ${HOMEPAGE:=downloads/} 6MASTER_SITES= ${HOMEPAGE:=downloads/}
6 7
7OWNER= tron@NetBSD.org 8OWNER= tron@NetBSD.org
8HOMEPAGE= http://libtorrent.rakshasa.no/ 9HOMEPAGE= http://libtorrent.rakshasa.no/
9COMMENT= BitTorrent library written in C++ for *nix 10COMMENT= BitTorrent library written in C++ for *nix
10LICENSE= gnu-gpl-v2 11LICENSE= gnu-gpl-v2
11 12
12PKG_DESTDIR_SUPPORT= user-destdir 13PKG_DESTDIR_SUPPORT= user-destdir
13 14
14USE_LANGUAGES= c c++ 15USE_LANGUAGES= c c++
15USE_LIBTOOL= yes 16USE_LIBTOOL= yes
16USE_TOOLS+= gmake pkg-config 17USE_TOOLS+= gmake pkg-config
17GNU_CONFIGURE= yes 18GNU_CONFIGURE= yes
18CONFIGURE_ARGS+= --disable-debug 19CONFIGURE_ARGS+= --disable-debug
19GCC_REQD+= 3.3 20GCC_REQD+= 3.3
20 21
 22.include "../../mk/bsd.prefs.mk"
 23
 24.if ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD"
 25CONFIGURE_ARGS+= --with-kqueue
 26.endif
 27
21.include "../../mk/compiler.mk" 28.include "../../mk/compiler.mk"
22 29
23# See http://libtorrent.rakshasa.no/ticket/96 30# See http://libtorrent.rakshasa.no/ticket/96
24.if !empty(CC_VERSION:Mgcc-4.*) 31.if !empty(CC_VERSION:Mgcc-4.*)
25CXXFLAGS+= -fpermissive -fno-strength-reduce -fno-thread-jumps \ 32CXXFLAGS+= -fpermissive -fno-strength-reduce -fno-thread-jumps \
26 -fno-inline -fforce-addr 33 -fno-inline -fforce-addr
27.endif 34.endif
28 35
29.include "../../security/openssl/buildlink3.mk" 36.include "../../security/openssl/buildlink3.mk"
30.if !exists(${BUILDLINK_PREFIX.openssl}/lib/pkgconfig/openssl.pc) 37.if !exists(${BUILDLINK_PREFIX.openssl}/lib/pkgconfig/openssl.pc)
31OPENSSL_CFLAGS= -I${BUILDLINK_PREFIX.openssl}/include 38OPENSSL_CFLAGS= -I${BUILDLINK_PREFIX.openssl}/include
32OPENSSL_LIBS= -L${BUILDLINK_PREFIX.openssl}/lib \ 39OPENSSL_LIBS= -L${BUILDLINK_PREFIX.openssl}/lib \
33 -W,-lR${BUILDLINK_PREFIX.openssl}/lib 40 -W,-lR${BUILDLINK_PREFIX.openssl}/lib