diff options
author | wiz <wiz@pkgsrc.org> | 2005-06-01 20:13:08 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-06-01 20:13:08 +0000 |
commit | 362be97679cfcd03b9e7d774333deb9fd2877eab (patch) | |
tree | 59d286d2c3b22df2d40fe31e6c1820abf7997f4f /emulators/snes9x | |
parent | d3c825bcb9a3dedfc7741b879c2a064951fb6599 (diff) | |
download | pkgsrc-362be97679cfcd03b9e7d774333deb9fd2877eab.tar.gz |
Convert to options framework.
Diffstat (limited to 'emulators/snes9x')
-rw-r--r-- | emulators/snes9x/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/emulators/snes9x/Makefile b/emulators/snes9x/Makefile index d9356155faf..219325d0d42 100644 --- a/emulators/snes9x/Makefile +++ b/emulators/snes9x/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.24 2005/06/01 18:02:48 jlam Exp $ +# $NetBSD: Makefile,v 1.25 2005/06/01 20:13:08 wiz Exp $ DISTNAME= s9xs139 PKGNAME= snes9x-1.39 @@ -29,8 +29,16 @@ do-install: ${INSTALL_MAN} ${WRKSRC}/README.TXT ${PREFIX}/share/doc/snes9x ${INSTALL_MAN} ${WRKSRC}/TODO.TXT ${PREFIX}/share/doc/snes9x +PKG_OPTIONS_VAR= PKG_OPTIONS.snes9x + .include "../../mk/bsd.prefs.mk" +.if ${MACHINE_ARCH} == "i386" +PKG_SUPPORTED_OPTIONS= mmx +.endif + +.include "../../mk/bsd.options.mk" + MAKE_ENV+= THREAD_SOUND=1 .if ( ${MACHINE_ARCH} == "i386" ) MAKE_ENV+= USING_I386=1 @@ -43,10 +51,9 @@ MAKE_ENV+= FILEFORMAT=elf MAKE_ENV+= ZSNESFX=1 MAKE_ENV+= ZSNESC4=1 MAKE_ENV+= ASMCPU=1 -.if !empty(USE_MMX:M[Yy][Ee][Ss]) +.if !empty(PKG_OPTIONS:Mmmx) MAKE_ENV+= ASMKREED=1 .endif -BUILD_DEFS+= USE_MMX .endif .if exists(${X11BASE}/lib/libXxf86dga.a) |