diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2004-11-08 10:07:02 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2004-11-08 10:07:02 +0000 |
commit | fd716ea678041af436efbdabc78f4141c673837d (patch) | |
tree | 9fc2b7cbbcddf1e99aa142731d878b8b785e0c79 /emulators/xmess | |
parent | ee3b0d9c7d04401a8b4f8520dbb2a487bde260e1 (diff) | |
download | pkgsrc-fd716ea678041af436efbdabc78f4141c673837d.tar.gz |
Erm, cannot use a shared options.mk file for xmame/xmess...
Diffstat (limited to 'emulators/xmess')
-rw-r--r-- | emulators/xmess/Makefile | 4 | ||||
-rw-r--r-- | emulators/xmess/options.mk | 25 |
2 files changed, 27 insertions, 2 deletions
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 |