summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2007-11-07 01:03:16 +0000
committerPav Lucistnik <pav@FreeBSD.org>2007-11-07 01:03:16 +0000
commit9e6b25f9c6482b52a8734384e7b2647fcc48c546 (patch)
tree0955df90c5848e7dcc2f1ee9ff9590293296a5c1 /lang
parent- Fix fetch, update WWW (diff)
- This port seems to need yasm on amd64 and nasm on i386
Reported by: pointyhat Approved by: portmgr (hat)
Notes
Notes: svn path=/head/; revision=202557
Diffstat (limited to 'lang')
-rw-r--r--lang/nwcc/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/lang/nwcc/Makefile b/lang/nwcc/Makefile
index 7e2fc2c21e24..d51c4efbc287 100644
--- a/lang/nwcc/Makefile
+++ b/lang/nwcc/Makefile
@@ -17,15 +17,21 @@ DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= obrien@FreeBSD.org
COMMENT= Nils Weller's C compiler for Unix systems
-BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm
-
ONLY_FOR_ARCHS= i386 amd64
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --installprefix=${PREFIX}
ALL_TARGET=
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == amd64
+BUILD_DEPENDS+= yasm:${PORTSDIR}/devel/yasm
+.else
+BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
+.endif
+
post-build:
cd ${WRKSRC} ; ${MAKE} test
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>