summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rw-r--r--devel/nasm/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/devel/nasm/Makefile b/devel/nasm/Makefile
index c4d10270edc..f6edac25bab 100644
--- a/devel/nasm/Makefile
+++ b/devel/nasm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2005/03/05 09:28:14 grant Exp $
+# $NetBSD: Makefile,v 1.18 2005/03/08 18:51:06 xtraeme Exp $
DISTNAME= nasm-0.98.39
CATEGORIES= devel lang
@@ -27,4 +27,14 @@ MAKE_ENV+= PERL5="${PERL5}" \
INSTALLATION_DIRS= bin info man/man1 share/doc/html
+.include "../../mk/compiler.mk"
+
+.if !empty(CC_VERSION:Mgcc-2*)
+SUBST_CLASSES+= c99
+SUBST_STAGE.c99= pre-configure
+SUBST_FILES.c99= configure
+SUBST_SED.c99= -e "s,\-std=c99,,g"
+SUBST_MESSAGE.c99= "Fixing configure script."
+.endif
+
.include "../../mk/bsd.pkg.mk"