summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2003-11-10 01:04:05 +0000
committerjschauma <jschauma@pkgsrc.org>2003-11-10 01:04:05 +0000
commit25076b366031b0a4c79a11c7c9a9a918fdd1900c (patch)
tree2218c9487d17c94096fe2987e4586862c84edce6 /math
parentf76f537b89c412f927d898058f507e7aaebbeed5 (diff)
downloadpkgsrc-25076b366031b0a4c79a11c7c9a9a918fdd1900c.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}'`; \