Subject: pkg/33084: emulators/snes9x build for non-x86 and non-bsd systems
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <pancake@phreaker.net>
List: pkgsrc-bugs
Date: 03/15/2006 11:10:00
>Number:         33084
>Category:       pkg
>Synopsis:       emulators/snes9x only builds on x86 systems.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 15 11:10:00 +0000 2006
>Originator:     pancake@phreaker.net
>Release:        Linux 2.6.15bare
>Organization:
	
>Environment:
	
	
System: Linux bare 2.6.15bare #7 PREEMPT Tue Mar 14 14:34:34 CET 2006 i686 GNU/Linux
Architecture: i686
Machine: i686
>Description:
	I was noticed that snes9x only builds on x86 systems because of the nasm
	dependency that is only required on X86 systems.

	On non-BSD Systems we need the zlib.
	
>How-To-Repeat:
	Tested on GNU/Linux-powerpc but must work everywhere.
	
>Fix:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/emulators/snes9x/Makefile,v
retrieving revision 1.33
diff -u -r1.33 Makefile
--- Makefile	9 Mar 2006 21:04:43 -0000	1.33
+++ Makefile	15 Mar 2006 11:01:29 -0000
@@ -11,7 +11,6 @@
 HOMEPAGE=		http://www.snes9x.com/
 COMMENT=		Super Nintendo Entertainment System (SNES) emulator
 
-BUILD_DEPENDS+=		nasm>=0.98:../../devel/nasm
 
 WRKSRC=			${WRKDIR}/release
 USE_TOOLS+=		gmake
@@ -34,6 +33,7 @@
 
 PKG_OPTIONS_VAR=	PKG_OPTIONS.snes9x
 .if ${MACHINE_ARCH} == "i386"
+BUILD_DEPENDS+=		nasm>=0.98:../../devel/nasm
 PKG_SUPPORTED_OPTIONS=	mmx
 .endif
 
@@ -67,6 +67,7 @@
 .endif
 .endif
 
+.include "../../devel/zlib/buildlink3.mk"
 .include "../../mk/oss.buildlink3.mk"
 .include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/x11.buildlink3.mk"
	

>Unformatted: