Thu Sep 29 16:53:14 2011 UTC ()
Build this package with "-march=i486" on IA32 systems if GCC is used as
the compiler. This is necessary to get supported for atomatic operations.

This should fix PR pkg/45406 by Greg Oster.


(tron)
diff -r1.42 -r1.43 pkgsrc/net/rtorrent/Makefile

cvs diff -r1.42 -r1.43 pkgsrc/net/rtorrent/Makefile (expand / switch to unified diff)

--- pkgsrc/net/rtorrent/Makefile 2011/08/01 21:51:37 1.42
+++ pkgsrc/net/rtorrent/Makefile 2011/09/29 16:53:14 1.43
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.42 2011/08/01 21:51:37 tron Exp $ 1# $NetBSD: Makefile,v 1.43 2011/09/29 16:53:14 tron Exp $
2 2
3DISTNAME= rtorrent-0.8.9 3DISTNAME= rtorrent-0.8.9
4PKGREVISION= 2 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= Ncurses based torrent client with support for sessions 10COMMENT= Ncurses based torrent client with support for sessions
11LICENSE= gnu-gpl-v2 11LICENSE= gnu-gpl-v2
12 12
13PKG_DESTDIR_SUPPORT= user-destdir 13PKG_DESTDIR_SUPPORT= user-destdir
14 14
@@ -25,23 +25,27 @@ LDFLAGS+= ${PTHREAD_LDFLAGS} @@ -25,23 +25,27 @@ LDFLAGS+= ${PTHREAD_LDFLAGS}
25.include "options.mk" 25.include "options.mk"
26 26
27.if !empty(OPSYS:M*BSD) || ${OPSYS} == "Darwin" || ${OPSYS} == "DragonFly" 27.if !empty(OPSYS:M*BSD) || ${OPSYS} == "Darwin" || ${OPSYS} == "DragonFly"
28MESSAGE_SRC= ${PKGDIR}/MESSAGE.BSD 28MESSAGE_SRC= ${PKGDIR}/MESSAGE.BSD
29.endif 29.endif
30 30
31# See http://libtorrent.rakshasa.no/ticket/77 31# See http://libtorrent.rakshasa.no/ticket/77
32.include "../../mk/compiler.mk" 32.include "../../mk/compiler.mk"
33.if !empty(CC_VERSION:Mgcc-4.0.*) 33.if !empty(CC_VERSION:Mgcc-4.0.*)
34CXXFLAGS+= -fpermissive -fno-strength-reduce -fno-thread-jumps \ 34CXXFLAGS+= -fpermissive -fno-strength-reduce -fno-thread-jumps \
35 -fno-inline -fforce-addr 35 -fno-inline -fforce-addr
36.endif 36.endif
37 37
 38.if !empty(CC_VERSION:Mgcc-*) && !empty(MACHINE_ARCH:Mi?86)
 39CXXFLAGS+= -march=i486
 40.endif
 41
38INSTALLATION_DIRS= share/examples/rtorrent 42INSTALLATION_DIRS= share/examples/rtorrent
39 43
40post-install: 44post-install:
41 ${INSTALL_DATA} ${WRKSRC}/doc/rtorrent.rc \ 45 ${INSTALL_DATA} ${WRKSRC}/doc/rtorrent.rc \
42 ${DESTDIR}${PREFIX}/share/examples/rtorrent 46 ${DESTDIR}${PREFIX}/share/examples/rtorrent
43 47
44.include "../../devel/ncurses/buildlink3.mk" 48.include "../../devel/ncurses/buildlink3.mk"
45.include "../../net/libtorrent/buildlink3.mk" 49.include "../../net/libtorrent/buildlink3.mk"
46.include "../../www/curl/buildlink3.mk" 50.include "../../www/curl/buildlink3.mk"
47.include "../../mk/bsd.pkg.mk" 51.include "../../mk/bsd.pkg.mk"