ports/120759: games/eduke32 : allow for all archs
Olivier Smedts
olivier at gid0.org
Sun Feb 17 15:00:03 UTC 2008
>Number: 120759
>Category: ports
>Synopsis: games/eduke32 : allow for all archs
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sun Feb 17 15:00:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Olivier Smedts
>Release: FreeBSD 7.0-RC2 i386
>Organization:
gid0.org
>Environment:
System: FreeBSD z.gid0.org 7.0-RC2 FreeBSD 7.0-RC2 #0: Sun Feb 10 17:50:35 CET 2008 root at z.gid0.org:/work/obj/work/src/sys/XPC i386
>Description:
Remove IGNORE for non-i386 by disabling ASM code when building on other archs.
>How-To-Repeat:
>Fix:
--- games-eduke32.diff begins here ---
--- Makefile.old 2008-02-17 15:45:32.000000000 +0100
+++ Makefile 2008-02-17 15:45:55.000000000 +0100
@@ -13,11 +13,6 @@
MAINTAINER= olivier at 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 @@
.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}|; \
--- games-eduke32.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list