Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Feb 2008 15:50:14 +0100 (CET)
From:      Olivier Smedts <olivier@gid0.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/120759: games/eduke32 : allow for all archs
Message-ID:  <20080217145014.67B5022820@z.gid0.org>
Resent-Message-ID: <200802171500.m1HF03de030301@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080217145014.67B5022820>