summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorjschauma <jschauma>2003-11-10 01:04:05 +0000
committerjschauma <jschauma>2003-11-10 01:04:05 +0000
commit27f01d1beac200898b35dd945df594c28582f70d (patch)
tree2218c9487d17c94096fe2987e4586862c84edce6 /math
parent563e5e9dcb30cbfc71fe886b3c124789d559cb8e (diff)
downloadpkgsrc-27f01d1beac200898b35dd945df594c28582f70d.tar.gz
Unfortunately, octave will not build with gcc>=3.0 (and we really do not
want to patch all this), so bail out if we detect a gcc-3 compiler. Suggest octave-current instead. Closes my own PR pkg/21874. While here, allow dependecy on either ghostscript or ghostscript-nox11.
Diffstat (limited to 'math')
-rw-r--r--math/octave/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/math/octave/Makefile b/math/octave/Makefile
index 017f1b41d35..b309ba7349f 100644
--- a/math/octave/Makefile
+++ b/math/octave/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.37 2003/09/28 18:02:16 kristerw Exp $
+# $NetBSD: Makefile,v 1.38 2003/11/10 01:04:05 jschauma Exp $
# FreeBSD Id: Makefile,v 1.18 1998/09/27 20:10:45 steve Exp
DISTNAME= octave-2.0.17
@@ -15,7 +15,7 @@ HOMEPAGE= http://www.che.wisc.edu/octave/
COMMENT= High-level language, primarily intended for numerical computations
BUILD_DEPENDS+= teTeX{,2}>=1.0.7:../../print/teTeX
-DEPENDS+= gnuplot>=3.7:../../graphics/gnuplot
+DEPENDS+= gnuplot{,-nox11}>=3.7:../../graphics/gnuplot
CONFLICTS+= octave-2.1.*
@@ -52,6 +52,10 @@ post-install:
GCC_VERSION!= ${CC} --version
+.if empty(${CC_VERSION:Mgcc-3*})
+PKG_FAIL_REASON= "Octave does not build with ${CC_VERSION} - please use octave-current."
+.endif
+
post-patch:
.if ${GCC_VERSION:C/-.*$$//} == egcs
@EGCS_VERSION=`${CC} -v 2>&1 | ${AWK} '{print $$4}'`; \