aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/higan
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2015-09-12 06:28:03 +0800
committerjbeich <jbeich@FreeBSD.org>2015-09-12 06:28:03 +0800
commit61f489dfb5ce7693faa1baeee71c022de739c269 (patch)
tree14e142d098d697f702dae5b8b6602f8412043b6e /emulators/higan
parent006b0adc3afd2f3bc16e916fd907212ab640d767 (diff)
downloadfreebsd-ports-gnome-61f489dfb5ce7693faa1baeee71c022de739c269.tar.gz
freebsd-ports-gnome-61f489dfb5ce7693faa1baeee71c022de739c269.tar.zst
freebsd-ports-gnome-61f489dfb5ce7693faa1baeee71c022de739c269.zip
emulators/higan: convert to _VARS option helper
PR: 202778 Submitted by: Naram Qashat <cyberbotx@cyberbotx.com> (maintainer)
Diffstat (limited to 'emulators/higan')
-rw-r--r--emulators/higan/Makefile57
1 files changed, 16 insertions, 41 deletions
diff --git a/emulators/higan/Makefile b/emulators/higan/Makefile
index b95cd35dd7b3..909685ab9fa7 100644
--- a/emulators/higan/Makefile
+++ b/emulators/higan/Makefile
@@ -57,57 +57,32 @@ QT4_USE= QT4=gui,moc_build
QT4_MAKE_ENV= phoenix="qt"
GLX_USE= GL=gl
+GLX_VARS= VIDEO_DRIVER+=video.glx
+
SDL_USE= XORG=xv SDL=sdl
+SDL_VARS= VIDEO_DRIVER+=video.sdl
+
XSHM_USE= XORG=xext
+XSHM_VARS= VIDEO_DRIVER+=video.xshm
+
XV_USE= XORG=xv
+XV_VARS= VIDEO_DRIVER+=video.xv
AO_LIB_DEPENDS= libao.so:${PORTSDIR}/audio/libao
-OPENAL_USES= openal:al
-PULSEAUDIO_LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio
-
-INPUT_SDL_USE= SDL=sdl
-
-.include <bsd.port.options.mk>
+AO_VARS= AUDIO_DRIVER+=audio.ao
-.if ${PORT_OPTIONS:MGLX}
-VIDEO_DRIVER+= video.glx
-.endif
-
-.if ${PORT_OPTIONS:MSDL}
-VIDEO_DRIVER+= video.sdl
-.endif
-
-.if ${PORT_OPTIONS:MXSHM}
-VIDEO_DRIVER+= video.xshm
-.endif
-
-.if ${PORT_OPTIONS:MXV}
-VIDEO_DRIVER+= video.xv
-.endif
-
-.if ${PORT_OPTIONS:MAO}
-AUDIO_DRIVER+= audio.ao
-.endif
-
-.if ${PORT_OPTIONS:MOPENAL}
-AUDIO_DRIVER+= audio.openal
-.endif
+OPENAL_USES= openal:al
+OPENAL_VARS= AUDIO_DRIVER+=audio.openal
-.if ${PORT_OPTIONS:MOSS}
-AUDIO_DRIVER+= audio.oss
-.endif
+OSS_VARS= AUDIO_DRIVER+=audio.oss
-.if ${PORT_OPTIONS:MPULSEAUDIO}
-AUDIO_DRIVER+= audio.pulseaudio
-.endif
+PULSEAUDIO_LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio
+PULSEAUDIO_VARS= AUDIO_DRIVER+=audio.pulseaudio
-.if ${PORT_OPTIONS:MINPUT_SDL}
-INPUT_DRIVER+= input.sdl
-.endif
+INPUT_SDL_USE= SDL=sdl
+INPUT_SDL_VARS= INPUT_DRIVER+=input.sdl
-.if ${PORT_OPTIONS:MINPUT_X}
-INPUT_DRIVER+= input.xlib
-.endif
+INPUT_X_VARS= INPUT_DRIVER+=input.xlib
post-patch:
${REINPLACE_CMD} \