Wed Jun 16 13:07:03 2010 UTC ()
libtorrent strict alignment configure check is fooled by trap & emulate
of unaligned access on alpha, enable strict alignment explicitly on alpha.
bump rev.


(jakllsch)
diff -r1.37 -r1.38 pkgsrc/net/libtorrent/Makefile

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

--- pkgsrc/net/libtorrent/Makefile 2010/01/17 12:02:33 1.37
+++ pkgsrc/net/libtorrent/Makefile 2010/06/16 13:07:03 1.38
@@ -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
3DISTNAME= libtorrent-0.12.6 3DISTNAME= libtorrent-0.12.6
4PKGREVISION= 1 4PKGREVISION= 2
5CATEGORIES= net 5CATEGORIES= net
6MASTER_SITES= ${HOMEPAGE:=downloads/} 6MASTER_SITES= ${HOMEPAGE:=downloads/}
7 7
8OWNER= tron@NetBSD.org 8OWNER= tron@NetBSD.org
9HOMEPAGE= http://libtorrent.rakshasa.no/ 9HOMEPAGE= http://libtorrent.rakshasa.no/
10COMMENT= BitTorrent library written in C++ for *nix 10COMMENT= BitTorrent library written in C++ for *nix
11LICENSE= gnu-gpl-v2 11LICENSE= gnu-gpl-v2
12 12
13PKG_DESTDIR_SUPPORT= user-destdir 13PKG_DESTDIR_SUPPORT= user-destdir
14 14
15USE_LANGUAGES= c c++ 15USE_LANGUAGES= c c++
16USE_LIBTOOL= yes 16USE_LIBTOOL= yes
17USE_TOOLS+= gmake pkg-config 17USE_TOOLS+= gmake pkg-config
18GNU_CONFIGURE= yes 18GNU_CONFIGURE= yes
19CONFIGURE_ARGS+= --disable-debug 19CONFIGURE_ARGS+= --disable-debug
20GCC_REQD+= 3.3 20GCC_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")
 26CONFIGURE_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"
25CONFIGURE_ARGS+= --with-kqueue 30CONFIGURE_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.*)
32CXXFLAGS+= -fpermissive -fno-strength-reduce -fno-thread-jumps \ 37CXXFLAGS+= -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"