summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-02-09 03:26:39 +0000
committerjlam <jlam@pkgsrc.org>2004-02-09 03:26:39 +0000
commitd420fe7358d37e777d120694013748ef719b277e (patch)
tree3a41265a10e67317ecbf8a2ac456dcab116e14f5 /math
parent46728682bfb9996d6b05cc48e269f47cd1390636 (diff)
downloadpkgsrc-d420fe7358d37e777d120694013748ef719b277e.tar.gz
CC_VERSION is "gcc-2.8.1" for egcs. Also fix up a few nits: not all
compilers understand "-O" to optimize, and if we only care about gcc, then wrap the block in an ifdef that is triggered only if we're using gcc.
Diffstat (limited to 'math')
-rw-r--r--math/octave/Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/math/octave/Makefile b/math/octave/Makefile
index 7f06127d607..72bf400ca98 100644
--- a/math/octave/Makefile
+++ b/math/octave/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.43 2004/01/27 00:53:11 heinz Exp $
+# $NetBSD: Makefile,v 1.44 2004/02/09 03:26:39 jlam Exp $
# FreeBSD Id: Makefile,v 1.18 1998/09/27 20:10:45 steve Exp
DISTNAME= octave-2.0.17
@@ -56,13 +56,13 @@ PKG_FAIL_REASON= "Octave does not build with ${CC_VERSION} - please use octave-c
.endif
post-patch:
-.if !empty(CC_VERSION:Megcs*)
- @EGCS_VERSION=`${CC} -v 2>&1 | ${AWK} '{print $$4}'`; \
- if [ $$EGCS_VERSION -lt 19981201 ]; then \
- cd ${WRKSRC}; \
- for FILE in ${PATCHDIR}/egcs-patch-*; do \
- ${PATCH} ${PATCH_ARGS} <$$FILE; \
- done; \
+.if !empty(CC_VERSION:Mgcc-2.8.1)
+ @EGCS_VERSION=`${CC} -v 2>&1 | ${AWK} '{print $$4}'`; \
+ if [ $$EGCS_VERSION -lt 19981201 ]; then \
+ cd ${WRKSRC}; \
+ for FILE in ${PATCHDIR}/egcs-patch-*; do \
+ ${PATCH} ${PATCH_ARGS} < $$FILE; \
+ done; \
fi
.endif