summaryrefslogtreecommitdiff
path: root/emulators/xmess/options.mk
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-11-08 10:07:02 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-11-08 10:07:02 +0000
commitfd716ea678041af436efbdabc78f4141c673837d (patch)
tree9fc2b7cbbcddf1e99aa142731d878b8b785e0c79 /emulators/xmess/options.mk
parentee3b0d9c7d04401a8b4f8520dbb2a487bde260e1 (diff)
downloadpkgsrc-fd716ea678041af436efbdabc78f4141c673837d.tar.gz
Erm, cannot use a shared options.mk file for xmame/xmess...
Diffstat (limited to 'emulators/xmess/options.mk')
-rw-r--r--emulators/xmess/options.mk25
1 files changed, 25 insertions, 0 deletions
diff --git a/emulators/xmess/options.mk b/emulators/xmess/options.mk
new file mode 100644
index 00000000000..e8e4f28a1c1
--- /dev/null
+++ b/emulators/xmess/options.mk
@@ -0,0 +1,25 @@
+# $NetBSD: options.mk,v 1.1 2004/11/08 10:07:02 xtraeme Exp $
+#
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.xmess
+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