aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2010-05-29 15:30:31 +0800
committerkwm <kwm@FreeBSD.org>2010-05-29 15:30:31 +0800
commit27fcfdb776bd0bb23fb01c83b1539375b19bf57e (patch)
treea8e03db7bfbf1e403fa97e39f63172970b35e169 /math
parent56174b9580022fd8df38b2fe58b872f453f886aa (diff)
downloadfreebsd-ports-gnome-27fcfdb776bd0bb23fb01c83b1539375b19bf57e.tar.gz
freebsd-ports-gnome-27fcfdb776bd0bb23fb01c83b1539375b19bf57e.tar.zst
freebsd-ports-gnome-27fcfdb776bd0bb23fb01c83b1539375b19bf57e.zip
Get rid of USE_GCC=3.4
PR: ports/144669 Submitted by: Andrius Morkunas <hinokind@gmail.com> Approved by: maintainer timeout (6 weeks)
Diffstat (limited to 'math')
-rw-r--r--math/polymake/Makefile8
-rw-r--r--math/polymake/files/patch-support_build.make13
2 files changed, 18 insertions, 3 deletions
diff --git a/math/polymake/Makefile b/math/polymake/Makefile
index 56688d42e858..4bac642d221b 100644
--- a/math/polymake/Makefile
+++ b/math/polymake/Makefile
@@ -7,7 +7,7 @@
PORTNAME= polymake
PORTVERSION= 2.3
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= math
MASTER_SITES= ftp://ftp.math.tu-berlin.de/pub/combi/polymake/
@@ -22,7 +22,6 @@ LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
USE_GMAKE= yes
USE_BZIP2= yes
USE_PERL5= 5.8.1+
-USE_GCC= 3.4
HAS_CONFIGURE= yes
INSTALL_TARGET= install install-devel
@@ -36,6 +35,9 @@ PLIST= ${WRKDIR}/pkg-plist
BROKEN= Does not build with perl >= 5.10
.endif
+pre-configure:
+ @${REINPLACE_CMD} -e 's|return "$$CXX seems not to be any|\#|' ${WRKSRC}/support/configure.pl
+
do-configure:
cd ${WRKSRC}; \
${RM} -f build*/conf.make; \
@@ -52,7 +54,7 @@ do-configure:
${ECHO_CMD} PerlExe='${PERL}'; \
${ECHO_CMD} Arch=; \
${ECHO_CMD} ProcessDep=none; \
- } | ${GMAKE} configure
+ } | ${GMAKE} ${MAKE_ENV} LD=${LD} configure
pre-install:
${RM} -f `find ${WRKSRC} -name '*.orig'`
diff --git a/math/polymake/files/patch-support_build.make b/math/polymake/files/patch-support_build.make
new file mode 100644
index 000000000000..0278aedb2632
--- /dev/null
+++ b/math/polymake/files/patch-support_build.make
@@ -0,0 +1,13 @@
+--- support/build.make 2007-01-17 16:25:44.000000000 +0000
++++ support/build.make 2010-01-28 22:51:05.116780927 +0000
+@@ -134,10 +134,6 @@
+ endif
+ endif # !SourceDir
+
+-ifeq "$(COMOversion)$(ICCversion)$(GCCversion)" ""
+- $(error unknown C++ compiler)
+-endif
+-
+ ifdef COMOversion
+ addinclude = -I$(patsubst $/,%,$(dir $(1))) --preinclude $(notdir $(1))
+ make_dep_opt := -MD --no_preproc_only