| @@ -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 | |
3 | DISTNAME= rtorrent-0.8.9 | | 3 | DISTNAME= rtorrent-0.8.9 |
4 | PKGREVISION= 2 | | 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= Ncurses based torrent client with support for sessions | | 10 | COMMENT= Ncurses based torrent client with support for sessions |
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 | |
| @@ -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" |
28 | MESSAGE_SRC= ${PKGDIR}/MESSAGE.BSD | | 28 | MESSAGE_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.*) |
34 | CXXFLAGS+= -fpermissive -fno-strength-reduce -fno-thread-jumps \ | | 34 | CXXFLAGS+= -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) |
| | | 39 | CXXFLAGS+= -march=i486 |
| | | 40 | .endif |
| | | 41 | |
38 | INSTALLATION_DIRS= share/examples/rtorrent | | 42 | INSTALLATION_DIRS= share/examples/rtorrent |
39 | | | 43 | |
40 | post-install: | | 44 | post-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" |