[Midnightbsd-cvs] mports: Makefile: Fix AMD64 case.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Tue Aug 21 16:12:15 EDT 2007


Log Message:
-----------
Fix AMD64 case.

Modified Files:
--------------
    mports/lang/nwcc:
        Makefile (r1.3 -> r1.4)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/lang/nwcc/Makefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -Llang/nwcc/Makefile -Llang/nwcc/Makefile -u -r1.3 -r1.4
--- lang/nwcc/Makefile
+++ lang/nwcc/Makefile
@@ -7,7 +7,7 @@
 
 PORTNAME=	nwcc
 PORTVERSION=	0.7.3
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	lang
 DISTFILES=	nwcc_0.7.3.tar.gz
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
@@ -16,11 +16,17 @@
 MAINTAINER=	stevan_tiefert_midnight at yahoo.de
 COMMENT=	A BSD-licensed C-compiler.
 
-BUILD_DEPENDS=	${LOCALBASE}/bin/nasm:${PORTSDIR}/devel/nasm
-RUN_DEPENDS=	${BUILD_DEPENDS}
-
 WRKSRC=		work/nwcc_0.7.3
 HAS_CONFIGURE=	yes
 ALL_TARGET=	nwcc
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} != i386
+BUILD_DEPENDS= ${LOCALBASE}/bin/yasm:${PORTSDIR}/devel/yasm
+.else
+BUILD_DEPENDS=  ${LOCALBASE}/bin/nasm:${PORTSDIR}/devel/nasm
+.endif
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+.include <bsd.port.post.mk>


More information about the Midnightbsd-cvs mailing list