| @@ -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 | |
3 | DISTNAME= libtorrent-0.12.2 | | 3 | DISTNAME= libtorrent-0.12.2 |
| | | 4 | PKGREVISION= 1 |
4 | CATEGORIES= net | | 5 | CATEGORIES= net |
5 | MASTER_SITES= ${HOMEPAGE:=downloads/} | | 6 | MASTER_SITES= ${HOMEPAGE:=downloads/} |
6 | | | 7 | |
7 | OWNER= tron@NetBSD.org | | 8 | OWNER= tron@NetBSD.org |
8 | HOMEPAGE= http://libtorrent.rakshasa.no/ | | 9 | HOMEPAGE= http://libtorrent.rakshasa.no/ |
9 | COMMENT= BitTorrent library written in C++ for *nix | | 10 | COMMENT= BitTorrent library written in C++ for *nix |
10 | LICENSE= gnu-gpl-v2 | | 11 | LICENSE= gnu-gpl-v2 |
11 | | | 12 | |
12 | PKG_DESTDIR_SUPPORT= user-destdir | | 13 | PKG_DESTDIR_SUPPORT= user-destdir |
13 | | | 14 | |
14 | USE_LANGUAGES= c c++ | | 15 | USE_LANGUAGES= c c++ |
15 | USE_LIBTOOL= yes | | 16 | USE_LIBTOOL= yes |
16 | USE_TOOLS+= gmake pkg-config | | 17 | USE_TOOLS+= gmake pkg-config |
17 | GNU_CONFIGURE= yes | | 18 | GNU_CONFIGURE= yes |
18 | CONFIGURE_ARGS+= --disable-debug | | 19 | CONFIGURE_ARGS+= --disable-debug |
19 | GCC_REQD+= 3.3 | | 20 | GCC_REQD+= 3.3 |
20 | | | 21 | |
| | | 22 | .include "../../mk/bsd.prefs.mk" |
| | | 23 | |
| | | 24 | .if ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD" |
| | | 25 | CONFIGURE_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.*) |
25 | CXXFLAGS+= -fpermissive -fno-strength-reduce -fno-thread-jumps \ | | 32 | CXXFLAGS+= -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) |
31 | OPENSSL_CFLAGS= -I${BUILDLINK_PREFIX.openssl}/include | | 38 | OPENSSL_CFLAGS= -I${BUILDLINK_PREFIX.openssl}/include |
32 | OPENSSL_LIBS= -L${BUILDLINK_PREFIX.openssl}/lib \ | | 39 | OPENSSL_LIBS= -L${BUILDLINK_PREFIX.openssl}/lib \ |
33 | -W,-lR${BUILDLINK_PREFIX.openssl}/lib | | 40 | -W,-lR${BUILDLINK_PREFIX.openssl}/lib |