pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/xmess Erm, cannot use a shared options.mk fi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9d19976b2546
branches:  trunk
changeset: 483118:9d19976b2546
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Mon Nov 08 10:07:02 2004 +0000

description:
Erm, cannot use a shared options.mk file for xmame/xmess...

diffstat:

 emulators/xmess/Makefile   |   4 ++--
 emulators/xmess/options.mk |  25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 2 deletions(-)

diffs (47 lines):

diff -r ce3c71e683bc -r 9d19976b2546 emulators/xmess/Makefile
--- a/emulators/xmess/Makefile  Mon Nov 08 10:03:41 2004 +0000
+++ b/emulators/xmess/Makefile  Mon Nov 08 10:07:02 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.61 2004/11/08 10:03:41 xtraeme Exp $
+# $NetBSD: Makefile,v 1.62 2004/11/08 10:07:02 xtraeme Exp $
 #
 
 DISTNAME=              xmame-0.87
@@ -24,7 +24,7 @@
 UNLIMIT_RESOURCES=     datasize
 
 .include "../../mk/bsd.prefs.mk"
-.include "${.CURDIR}/../../emulators/xmame/options.mk"
+.include "options.mk"
 
 ROMPATH=               ${PREFIX}/share/${TARGET}
 SPOOLDIR=              ${VARBASE}/games/${TARGET}
diff -r ce3c71e683bc -r 9d19976b2546 emulators/xmess/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/xmess/options.mk        Mon Nov 08 10:07:02 2004 +0000
@@ -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



Home | Main Index | Thread Index | Old Index