pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc Convert to options framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0b16e9d1c047
branches:  trunk
changeset: 495044:0b16e9d1c047
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Jun 01 20:13:08 2005 +0000

description:
Convert to options framework.

diffstat:

 emulators/snes9x/Makefile |  13 ++++++++++---
 multimedia/xawtv/Makefile |  15 ++++++++++-----
 2 files changed, 20 insertions(+), 8 deletions(-)

diffs (70 lines):

diff -r eb8bb29209d3 -r 0b16e9d1c047 emulators/snes9x/Makefile
--- a/emulators/snes9x/Makefile Wed Jun 01 20:08:31 2005 +0000
+++ b/emulators/snes9x/Makefile Wed Jun 01 20:13:08 2005 +0000
@@ -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 @@
        ${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+=     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 -r eb8bb29209d3 -r 0b16e9d1c047 multimedia/xawtv/Makefile
--- a/multimedia/xawtv/Makefile Wed Jun 01 20:08:31 2005 +0000
+++ b/multimedia/xawtv/Makefile Wed Jun 01 20:13:08 2005 +0000
@@ -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/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"



Home | Main Index | Thread Index | Old Index