Permalink
Browse files

Convert to options framework.

  • Loading branch information...
1 parent 4ddf237 commit 0eaf9b87356742138b2e574a649c34685e744ec8 wiz committed Jun 1, 2005
Showing with 20 additions and 8 deletions.
  1. +10 −3 emulators/snes9x/Makefile
  2. +10 −5 multimedia/xawtv/Makefile
View
@@ -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)
View
@@ -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"

0 comments on commit 0eaf9b8

Please sign in to comment.