summaryrefslogtreecommitdiff
path: root/math/octave
diff options
context:
space:
mode:
authorsketch <sketch>2003-12-23 10:37:56 +0000
committersketch <sketch>2003-12-23 10:37:56 +0000
commit4a9f25cdb4d86a2f65689f54e605937157613a9a (patch)
tree74595757301c8f3d90b395577013d6ca1a69349e /math/octave
parent6d84404a265ce63addc3306e54f57c05fa21c95e (diff)
downloadpkgsrc-4a9f25cdb4d86a2f65689f54e605937157613a9a.tar.gz
Use compiler.mk logic, fixing systems with a non-GCC compiler.
Diffstat (limited to 'math/octave')
-rw-r--r--math/octave/Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/math/octave/Makefile b/math/octave/Makefile
index d4f7ec504a6..15899fad1a5 100644
--- a/math/octave/Makefile
+++ b/math/octave/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2003/11/10 04:25:08 grant Exp $
+# $NetBSD: Makefile,v 1.40 2003/12/23 10:39:30 sketch Exp $
# FreeBSD Id: Makefile,v 1.18 1998/09/27 20:10:45 steve Exp
DISTNAME= octave-2.0.17
@@ -50,14 +50,12 @@ post-install:
.include "../../mk/bsd.prefs.mk"
-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
+.if !empty(CC_VERSION:Megcs*)
@EGCS_VERSION=`${CC} -v 2>&1 | ${AWK} '{print $$4}'`; \
if [ $$EGCS_VERSION -lt 19981201 ]; then \
cd ${WRKSRC}; \