| @@ -1,36 +1,41 @@ | | | @@ -1,36 +1,41 @@ |
1 | # $NetBSD: Makefile,v 1.37 2010/01/17 12:02:33 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.38 2010/06/16 13:07:03 jakllsch Exp $ |
2 | | | 2 | |
3 | DISTNAME= libtorrent-0.12.6 | | 3 | DISTNAME= libtorrent-0.12.6 |
4 | PKGREVISION= 1 | | 4 | PKGREVISION= 2 |
5 | CATEGORIES= net | | 5 | CATEGORIES= net |
6 | MASTER_SITES= ${HOMEPAGE:=downloads/} | | 6 | MASTER_SITES= ${HOMEPAGE:=downloads/} |
7 | | | 7 | |
8 | OWNER= tron@NetBSD.org | | 8 | OWNER= tron@NetBSD.org |
9 | HOMEPAGE= http://libtorrent.rakshasa.no/ | | 9 | HOMEPAGE= http://libtorrent.rakshasa.no/ |
10 | COMMENT= BitTorrent library written in C++ for *nix | | 10 | COMMENT= BitTorrent library written in C++ for *nix |
11 | LICENSE= gnu-gpl-v2 | | 11 | LICENSE= gnu-gpl-v2 |
12 | | | 12 | |
13 | PKG_DESTDIR_SUPPORT= user-destdir | | 13 | PKG_DESTDIR_SUPPORT= user-destdir |
14 | | | 14 | |
15 | USE_LANGUAGES= c c++ | | 15 | USE_LANGUAGES= c c++ |
16 | USE_LIBTOOL= yes | | 16 | USE_LIBTOOL= yes |
17 | USE_TOOLS+= gmake pkg-config | | 17 | USE_TOOLS+= gmake pkg-config |
18 | GNU_CONFIGURE= yes | | 18 | GNU_CONFIGURE= yes |
19 | CONFIGURE_ARGS+= --disable-debug | | 19 | CONFIGURE_ARGS+= --disable-debug |
20 | GCC_REQD+= 3.3 | | 20 | GCC_REQD+= 3.3 |
21 | | | 21 | |
22 | .include "../../mk/bsd.prefs.mk" | | 22 | .include "../../mk/bsd.prefs.mk" |
23 | | | 23 | |
| | | 24 | # configure check is fooled by trap & emulate of unaligned access on alpha |
| | | 25 | .if (${MACHINE_ARCH} == "alpha") |
| | | 26 | CONFIGURE_ARGS+= --enable-aligned |
| | | 27 | .endif |
| | | 28 | |
24 | .if !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly" || ${OPSYS} == "Darwin" | | 29 | .if !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly" || ${OPSYS} == "Darwin" |
25 | CONFIGURE_ARGS+= --with-kqueue | | 30 | CONFIGURE_ARGS+= --with-kqueue |
26 | .endif | | 31 | .endif |
27 | | | 32 | |
28 | .include "../../mk/compiler.mk" | | 33 | .include "../../mk/compiler.mk" |
29 | | | 34 | |
30 | # See http://libtorrent.rakshasa.no/ticket/96 | | 35 | # See http://libtorrent.rakshasa.no/ticket/96 |
31 | .if !empty(CC_VERSION:Mgcc-4.*) | | 36 | .if !empty(CC_VERSION:Mgcc-4.*) |
32 | CXXFLAGS+= -fpermissive -fno-strength-reduce -fno-thread-jumps \ | | 37 | CXXFLAGS+= -fpermissive -fno-strength-reduce -fno-thread-jumps \ |
33 | -fno-inline -fforce-addr | | 38 | -fno-inline -fforce-addr |
34 | .endif | | 39 | .endif |
35 | | | 40 | |
36 | .include "../../security/openssl/buildlink3.mk" | | 41 | .include "../../security/openssl/buildlink3.mk" |