summaryrefslogtreecommitdiff
path: root/net/rtorrent
diff options
context:
space:
mode:
authorhans <hans>2011-11-07 13:10:31 +0000
committerhans <hans>2011-11-07 13:10:31 +0000
commit2d9d38382b87e2806e8ea4199918e14ef7fb21e2 (patch)
tree4038ced087e86405332b73e62dca4bd1657a551d /net/rtorrent
parent520e754ff274f8bee23a975a8ba2443cb50a8047 (diff)
downloadpkgsrc-2d9d38382b87e2806e8ea4199918e14ef7fb21e2.tar.gz
Libtorrent and rtorrent need gcc>=4.2.1, at least on some architectures.
Explicitly exclude architectures known to work with older gcc versions (alpha, i386 and x86_64 for now). Ok by tron.
Diffstat (limited to 'net/rtorrent')
-rw-r--r--net/rtorrent/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/net/rtorrent/Makefile b/net/rtorrent/Makefile
index a64ea6b6604..e4769089690 100644
--- a/net/rtorrent/Makefile
+++ b/net/rtorrent/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.45 2011/11/06 13:42:21 tron Exp $
+# $NetBSD: Makefile,v 1.46 2011/11/07 13:10:31 hans Exp $
DISTNAME= rtorrent-0.8.9
PKGREVISION= 2
@@ -18,6 +18,15 @@ USE_NCURSES= yes # chgat
USE_TOOLS+= gmake pkg-config
GNU_CONFIGURE= yes
+.include "../../mk/bsd.prefs.mk"
+.if ${MACHINE_ARCH} == "alpha" || \
+ ${MACHINE_ARCH} == "i386" || \
+ ${MACHINE_ARCH} == "x86_64"
+GCC_REQD+= 3.3
+.else
+GCC_REQD+= 4.2.1
+.endif
+
.include "../../mk/pthread.buildlink3.mk"
LDFLAGS+= ${PTHREAD_LDFLAGS}