diff options
Diffstat (limited to 'emulators/xmame/options.mk')
-rw-r--r-- | emulators/xmame/options.mk | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/emulators/xmame/options.mk b/emulators/xmame/options.mk new file mode 100644 index 00000000000..0f9f4787fd8 --- /dev/null +++ b/emulators/xmame/options.mk @@ -0,0 +1,25 @@ +# $NetBSD: options.mk,v 1.1 2004/11/08 10:03:41 xtraeme Exp $ +# + +PKG_OPTIONS_VAR= PKG_OPTIONS.xmame +PKG_SUPPORTED_OPTIONS= sdl opengl esound +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Msdl) +MAME_DISP_METHOD?= SDL +.include "../../devel/SDL/buildlink3.mk" +.elif !empty(PKG_OPTIONS:Mopengl) +MAME_DISP_METHOD?= xgl +.include "../../graphics/Mesa/buildlink3.mk" +.else +MAME_DISP_METHOD?= x11 +.endif + +.if !empty(PKG_OPTIONS:Msdl) && !empty(PKG_OPTIONS:Mopengl) +PKG_SKIP_REASON+= "Only one display method is allowed." +.endif + +.if !empty(PKG_OPTIONS:Mesound) +MAKE_FLAGS+= SOUND_ESOUND=1 +.inclUde "../../audio/esound/buildlink3.mk" +.endif |