summaryrefslogtreecommitdiff
path: root/net/libtorrent
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2011-11-07 13:10:31 +0000
committerhans <hans@pkgsrc.org>2011-11-07 13:10:31 +0000
commitd84c9dd3316e81192b55297189ccc4230d6452d9 (patch)
tree4038ced087e86405332b73e62dca4bd1657a551d /net/libtorrent
parent742961f7ec224719fdd760eae64be268a10dc11e (diff)
downloadpkgsrc-d84c9dd3316e81192b55297189ccc4230d6452d9.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/libtorrent')
-rw-r--r--net/libtorrent/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/libtorrent/Makefile b/net/libtorrent/Makefile
index 6f8620459b9..bafcaeab3a0 100644
--- a/net/libtorrent/Makefile
+++ b/net/libtorrent/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.41 2011/11/06 13:42:21 tron Exp $
+# $NetBSD: Makefile,v 1.42 2011/11/07 13:10:31 hans Exp $
DISTNAME= libtorrent-0.12.9
CATEGORIES= net
@@ -18,6 +18,13 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-debug
.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
# configure check is fooled by trap & emulate of unaligned access on alpha
.if (${MACHINE_ARCH} == "alpha")