aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2008-02-22 10:21:53 +0000
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2008-02-22 10:21:53 +0000
commit146e0f29f57c8eab6e569c634f2af366634d92ff (patch)
tree7717c1d5a10e2c9d81878941e66fa43ff3540e8f /games
parentc613ac067d4b38a87148eddfe6c1c76fba637e72 (diff)
downloadports-146e0f29f57c8eab6e569c634f2af366634d92ff.tar.gz
ports-146e0f29f57c8eab6e569c634f2af366634d92ff.zip
Notes
Diffstat (limited to 'games')
-rw-r--r--games/eduke32/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/games/eduke32/Makefile b/games/eduke32/Makefile
index a792ab41b3f6..48252eb49211 100644
--- a/games/eduke32/Makefile
+++ b/games/eduke32/Makefile
@@ -13,11 +13,6 @@ DISTFILES= ${PORTNAME}_src_${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= olivier@gid0.org
COMMENT= Duke Nukem 3D Port based on JFDuke and EDuke
-BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
-
-ONLY_FOR_ARCHS= i386
-ONLY_FOR_ARCHS_REASON= uses i386 assembly code
-REINPLACE_ARGS= -i ''
USE_ZIP= yes
USE_GMAKE= yes
USE_GL= yes
@@ -31,11 +26,18 @@ OPTIONS= MIDI "Enable MIDI support" on
.include <bsd.port.pre.mk>
+.if ${ARCH} == "i386"
+BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
+.endif
+
.if !defined(WITHOUT_MIDI)
RUN_DEPENDS+= timidity:${PORTSDIR}/audio/timidity
.endif
post-patch:
+.if ${ARCH} != "i386"
+ @${REINPLACE_CMD} -Ee 's|^(NOASM =).*|\1 1|' ${WRKSRC}/Makefile
+.endif
@${REINPLACE_CMD} -Ee \
's|^(CC=).*|\1${CC}|; \
s|^(CXX=).*|\1${CXX}|; \