diff options
author | bapt <bapt@FreeBSD.org> | 2013-04-29 05:20:28 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-04-29 05:20:28 +0800 |
commit | 0a21cb686357d0c6c0c66b1980acd9c7c9bc7949 (patch) | |
tree | 17f3405d36f74dd57d11bda9e7ecc80c2929914c /emulators/snes9x-gtk | |
parent | 394c57853a58fa1d046fd083ec8bb59d504821e6 (diff) | |
download | freebsd-ports-gnome-0a21cb686357d0c6c0c66b1980acd9c7c9bc7949.tar.gz freebsd-ports-gnome-0a21cb686357d0c6c0c66b1980acd9c7c9bc7949.tar.zst freebsd-ports-gnome-0a21cb686357d0c6c0c66b1980acd9c7c9bc7949.zip |
Convert emulators to new options framework
Diffstat (limited to 'emulators/snes9x-gtk')
-rw-r--r-- | emulators/snes9x-gtk/Makefile | 40 |
1 files changed, 17 insertions, 23 deletions
diff --git a/emulators/snes9x-gtk/Makefile b/emulators/snes9x-gtk/Makefile index 69d8746915da..d3e793e56c7a 100644 --- a/emulators/snes9x-gtk/Makefile +++ b/emulators/snes9x-gtk/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: snes9x-gtk -# Date created: 2009-12-12 -# Whom: okeeblow <root@cooltrainer.org> -# +# Created by: okeeblow <root@cooltrainer.org> # $FreeBSD$ -# PORTNAME= snes9x PORTVERSION= 1.52r79 @@ -32,65 +28,63 @@ CONFIGURE_ARGS+= --without-alsa WRKSRC= ${WRKDIR}/${DISTNAME}/gtk -OPTIONS= DEBUG "Enable debug information" off \ - OPENGL "Enable OpenGL support" off \ - X86_ASM "Use i386 optimization (only for i386)" on \ - MMX "Enable MMX (only for i386)" off \ - JMA "Enable JMA archive decompression support" on \ - NETPLAY "Enable network support" on \ - XV "Enable XVideo output on GTK" on \ - XRANDR "Enable XRandR support on GTK" on +OPTIONS_DEFINE= DEBUG OPENGL JMA NETPLAY XV XRANDR +OPTIONS_DEFAULT= JMA NETPLAY XV XRANDR +OPTIONS_DEFINE_i386= ASM MMX +OPTIONS_DEFAULT_i386= ASM +JMA_DESC= Enable JMA archive decompression support +NETPLAY_DESC= Enable network support +XV_DESC= Enable XVideo output on GTK +XRANDR_DESC= Enable XRandR support on GTK .include <bsd.port.pre.mk> -.if defined(WITH_DEBUG) +.if ${PORT_OPTIONS:MDEBUG} CONFIGURE_ARGS+= --with-debug .else CONFIGURE_ARGS+= --without-debug .endif -.if ${ARCH} == "i386" -.if !defined(WITHOUT_X86_ASM) +.if ${PORT_OPTIONS:MASM} BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm CONFIGURE_ARGS+= --with-assembler .else CONFIGURE_ARGS+= --without-assembler .endif -.if defined(WITH_MMX) && !defined(PACKAGE_BUILDING) +.if ${PORT_OPTIONS:MMMX} && !defined(PACKAGE_BUILDING) CONFIGURE_ARGS+= --with-mmx .else CONFIGURE_ARGS+= --without-mmx .endif -.endif -.if !defined(WITHOUT_OPENGL) +.if ${PORT_OPTIONS:MOPENGL} CONFIGURE_ARGS+= --with-opengl USE_GL= glu .else CONFIGURE_ARGS+= --without-opengl .endif -.if !defined(WITHOUT_JMA) +.if ${PORT_OPTIONS:MJMA} CONFIGURE_ARGS+= --with-jma-decomp .else CONFIGURE_ARGS+= --without-jma-decomp .endif -.if !defined(WITHOUT_NETPLAY) +.if ${PORT_OPTIONS:MNETPLAY} CONFIGURE_ARGS+= --with-netplay .else CONFIGURE_ARGS+= --without-netplay .endif -.if !defined(WITHOUT_XV) +.if ${PORT_OPTIONS:MXV} CONFIGURE_ARGS+= --with-xv USE_XORG+= xv .else CONFIGURE_ARGS+= --without-xv .endif -.if !defined(WITHOUT_XRANDR) +.if ${PORT_OPTIONS:MXRANDR} CONFIGURE_ARGS+= --with-xrandr USE_XORG+= xrandr .else |