summaryrefslogtreecommitdiff
path: root/math/octave
diff options
context:
space:
mode:
authorjlam <jlam>2004-02-18 13:33:40 +0000
committerjlam <jlam>2004-02-18 13:33:40 +0000
commitc8a2fd90b73c914420e9b31021f269ee79cbfae1 (patch)
treee6391a0a29cee2898ed380fe3328cb0b69890ce3 /math/octave
parent920811ba4244705fdca01b1f2e99c9104cf6ec5f (diff)
downloadpkgsrc-c8a2fd90b73c914420e9b31021f269ee79cbfae1.tar.gz
Include "../../mk/compiler.mk" to get the value of CC_VERSION before
testing it.
Diffstat (limited to 'math/octave')
-rw-r--r--math/octave/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/math/octave/Makefile b/math/octave/Makefile
index 72bf400ca98..fb307feb42d 100644
--- a/math/octave/Makefile
+++ b/math/octave/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.44 2004/02/09 03:26:39 jlam Exp $
+# $NetBSD: Makefile,v 1.45 2004/02/18 13:33:41 jlam Exp $
# FreeBSD Id: Makefile,v 1.18 1998/09/27 20:10:45 steve Exp
DISTNAME= octave-2.0.17
@@ -49,14 +49,14 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/doc/refcard/refcard-a4.ps ${PREFIX}/share/octave/2.0.17/doc
${INSTALL_DATA} ${WRKSRC}/doc/faq/Octave-FAQ.ps ${PREFIX}/share/octave/2.0.17/doc
-.include "../../mk/bsd.prefs.mk"
+.include "../../mk/compiler.mk"
.if !empty(CC_VERSION:Mgcc-3*)
PKG_FAIL_REASON= "Octave does not build with ${CC_VERSION} - please use octave-current."
.endif
-post-patch:
.if !empty(CC_VERSION:Mgcc-2.8.1)
+post-patch:
@EGCS_VERSION=`${CC} -v 2>&1 | ${AWK} '{print $$4}'`; \
if [ $$EGCS_VERSION -lt 19981201 ]; then \
cd ${WRKSRC}; \