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
commitca01bacf4f368e43ed8b2c50bf587ff65ead36f5 (patch)
tree9fc2b7cbbcddf1e99aa142731d878b8b785e0c79 /emulators/xmess/options.mk
parent66c364eca183f8e1ed5fb56852275d5344e3d02a (diff)
downloadpkgsrc-ca01bacf4f368e43ed8b2c50bf587ff65ead36f5.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