From fd716ea678041af436efbdabc78f4141c673837d Mon Sep 17 00:00:00 2001 From: xtraeme Date: Mon, 8 Nov 2004 10:07:02 +0000 Subject: Erm, cannot use a shared options.mk file for xmame/xmess... --- emulators/xmess/Makefile | 4 ++-- emulators/xmess/options.mk | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 emulators/xmess/options.mk diff --git a/emulators/xmess/Makefile b/emulators/xmess/Makefile index 3ebb98aa753..b76f07ac7fc 100644 --- a/emulators/xmess/Makefile +++ b/emulators/xmess/Makefile @@ -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 @@ TARGET= ${PKGBASE} 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 --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 -- cgit v1.2.3