| @@ -1,53 +1,54 @@ | | | @@ -1,53 +1,54 @@ |
1 | # $NetBSD: Makefile,v 1.70 2018/06/24 16:59:52 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.70.2.1 2018/09/15 12:25:47 bsiegert Exp $ |
2 | | | 2 | |
3 | DISTNAME= rtorrent-0.9.7 | | 3 | DISTNAME= rtorrent-0.9.7 |
| | | 4 | PKGREVISION= 2 |
4 | CATEGORIES= net | | 5 | CATEGORIES= net |
5 | MASTER_SITES= http://rtorrent.net/downloads/ | | 6 | MASTER_SITES= http://rtorrent.net/downloads/ |
6 | | | 7 | |
7 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
8 | HOMEPAGE= https://github.com/rakshasa/rtorrent | | 9 | HOMEPAGE= https://github.com/rakshasa/rtorrent |
9 | COMMENT= Ncurses based torrent client with support for sessions | | 10 | COMMENT= Ncurses based torrent client with support for sessions |
10 | LICENSE= gnu-gpl-v2 | | 11 | LICENSE= gnu-gpl-v2 |
11 | | | 12 | |
12 | USE_LANGUAGES= c c++11 | | 13 | USE_LANGUAGES= c c++11 |
13 | USE_LIBTOOL= yes | | 14 | USE_LIBTOOL= yes |
14 | USE_NCURSES= yes # chgat | | 15 | USE_NCURSES= yes # chgat |
15 | USE_TOOLS+= gmake pkg-config | | 16 | USE_TOOLS+= gmake pkg-config |
16 | GNU_CONFIGURE= yes | | 17 | GNU_CONFIGURE= yes |
17 | | | 18 | |
18 | .include "../../mk/bsd.prefs.mk" | | 19 | .include "../../mk/bsd.prefs.mk" |
19 | .if ${MACHINE_ARCH} == "alpha" || \ | | 20 | .if ${MACHINE_ARCH} == "alpha" || \ |
20 | ${MACHINE_ARCH} == "i386" || \ | | 21 | ${MACHINE_ARCH} == "i386" || \ |
21 | ${MACHINE_ARCH} == "powerpc" || \ | | 22 | ${MACHINE_ARCH} == "powerpc" || \ |
22 | ${MACHINE_ARCH} == "x86_64" | | 23 | ${MACHINE_ARCH} == "x86_64" |
23 | GCC_REQD+= 4.1.3 | | 24 | GCC_REQD+= 4.1.3 |
24 | .else | | 25 | .else |
25 | GCC_REQD+= 4.2.1 | | 26 | GCC_REQD+= 4.2.1 |
26 | .endif | | 27 | .endif |
27 | | | 28 | |
28 | .include "../../mk/pthread.buildlink3.mk" | | 29 | .include "../../mk/pthread.buildlink3.mk" |
29 | LDFLAGS+= ${PTHREAD_LDFLAGS} | | 30 | LDFLAGS+= ${PTHREAD_LDFLAGS} |
30 | | | 31 | |
31 | .include "options.mk" | | 32 | .include "options.mk" |
32 | | | 33 | |
33 | # See http://libtorrent.rakshasa.no/ticket/77 | | 34 | # See http://libtorrent.rakshasa.no/ticket/77 |
34 | .include "../../mk/compiler.mk" | | 35 | .include "../../mk/compiler.mk" |
35 | .if !empty(CC_VERSION:Mgcc-4.0.*) | | 36 | .if !empty(CC_VERSION:Mgcc-4.0.*) |
36 | CXXFLAGS+= -fpermissive -fno-strength-reduce -fno-thread-jumps \ | | 37 | CXXFLAGS+= -fpermissive -fno-strength-reduce -fno-thread-jumps \ |
37 | -fno-inline -fforce-addr | | 38 | -fno-inline -fforce-addr |
38 | .endif | | 39 | .endif |
39 | | | 40 | |
40 | .if !empty(CC_VERSION:Mgcc-*) && !empty(MACHINE_ARCH:Mi?86) | | 41 | .if !empty(CC_VERSION:Mgcc-*) && !empty(MACHINE_ARCH:Mi?86) |
41 | CXXFLAGS+= -march=i486 | | 42 | CXXFLAGS+= -march=i486 |
42 | .endif | | 43 | .endif |
43 | | | 44 | |
44 | INSTALLATION_DIRS= share/examples/rtorrent | | 45 | INSTALLATION_DIRS= share/examples/rtorrent |
45 | | | 46 | |
46 | post-install: | | 47 | post-install: |
47 | ${INSTALL_DATA} ${WRKSRC}/doc/rtorrent.rc \ | | 48 | ${INSTALL_DATA} ${WRKSRC}/doc/rtorrent.rc \ |
48 | ${DESTDIR}${PREFIX}/share/examples/rtorrent | | 49 | ${DESTDIR}${PREFIX}/share/examples/rtorrent |
49 | | | 50 | |
50 | .include "../../devel/ncurses/buildlink3.mk" | | 51 | .include "../../devel/ncurses/buildlink3.mk" |
51 | .include "../../net/libtorrent/buildlink3.mk" | | 52 | .include "../../net/libtorrent/buildlink3.mk" |
52 | .include "../../www/curl/buildlink3.mk" | | 53 | .include "../../www/curl/buildlink3.mk" |
53 | .include "../../mk/bsd.pkg.mk" | | 54 | .include "../../mk/bsd.pkg.mk" |