diff options
author | itetcu <itetcu@FreeBSD.org> | 2008-02-22 18:21:53 +0800 |
---|---|---|
committer | itetcu <itetcu@FreeBSD.org> | 2008-02-22 18:21:53 +0800 |
commit | 075bca5fd52110d2fd489dda0dd300b0059b826e (patch) | |
tree | fa1f70067a6862c39ae553808d5d497d83f30d68 /games | |
parent | fb3589d58070a85588cf831441427fcbc7e0704a (diff) | |
download | freebsd-ports-gnome-075bca5fd52110d2fd489dda0dd300b0059b826e.tar.gz freebsd-ports-gnome-075bca5fd52110d2fd489dda0dd300b0059b826e.tar.zst freebsd-ports-gnome-075bca5fd52110d2fd489dda0dd300b0059b826e.zip |
Remove IGNORE for non-i386 by disabling ASM code when building on other archs.
PR: ports/120759
Submitted by: maintainer (Olivier Smedts)
Diffstat (limited to 'games')
-rw-r--r-- | games/eduke32/Makefile | 12 |
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}|; \ |