diff options
author | wiz <wiz> | 2005-06-01 20:13:08 +0000 |
---|---|---|
committer | wiz <wiz> | 2005-06-01 20:13:08 +0000 |
commit | f7e18c063e7c6d0ff2aacb6580f4880d3ecf48f5 (patch) | |
tree | 59d286d2c3b22df2d40fe31e6c1820abf7997f4f | |
parent | 7fa6e866bd01bc2170f8fb62077b62cc46c38714 (diff) | |
download | pkgsrc-f7e18c063e7c6d0ff2aacb6580f4880d3ecf48f5.tar.gz |
Convert to options framework.
-rw-r--r-- | emulators/snes9x/Makefile | 13 | ||||
-rw-r--r-- | multimedia/xawtv/Makefile | 15 |
2 files changed, 20 insertions, 8 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) diff --git a/multimedia/xawtv/Makefile b/multimedia/xawtv/Makefile index 4ab8f2ebe3c..a30f326dac9 100644 --- a/multimedia/xawtv/Makefile +++ b/multimedia/xawtv/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2005/06/01 18:03:07 jlam Exp $ +# $NetBSD: Makefile,v 1.9 2005/06/01 20:14:28 wiz Exp $ # DISTNAME= xawtv_3.90 @@ -29,13 +29,18 @@ SUBST_FILES.devoss+= man/motv.1 man/record.1 man/streamer.1 man/xawtv.1 SUBST_FILES.devoss+= man/es/streamer.1 man/es/xawtv.1 man/fr/xawtv.1 SUBST_SED.devoss= -e 's|/dev/dsp|${DEVOSSAUDIO}|g' +PKG_OPTIONS_VAR= PKG_OPTIONS.xawtv + .include "../../mk/bsd.prefs.mk" -.if !empty(MACHINE_ARCH:Mi386) -BUILD_DEFS+= USE_MMX -. if defined(USE_MMX) && !empty(USE_MMX:M[Yy][Ee][Ss]) +.if ${MACHINE_ARCH} == "i386" +PKG_SUPPORTED_OPTIONS= mmx +.endif + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mmmx) CONFIGURE_ARGS+= --enable-mmx -. endif .endif .include "../../devel/ncurses/buildlink3.mk" |