summaryrefslogtreecommitdiff
path: root/emulators/xmess
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2005-09-03 18:16:07 +0000
committerxtraeme <xtraeme>2005-09-03 18:16:07 +0000
commit1561fbfbb1209a624df9faa4145ceb15f58bbc82 (patch)
tree520e30a95a905e2eeb962715d419ef6208442ccb /emulators/xmess
parent900f6aa506311a8c456fa235ba8d9424e1b271cf (diff)
downloadpkgsrc-1561fbfbb1209a624df9faa4145ceb15f58bbc82.tar.gz
* Remove compile warnings with gcc3.
* Use PKG_OPTIONS_OPTIONAL_GROUPS for sdl and opengl options.
Diffstat (limited to 'emulators/xmess')
-rw-r--r--emulators/xmess/Makefile9
-rw-r--r--emulators/xmess/options.mk12
2 files changed, 13 insertions, 8 deletions
diff --git a/emulators/xmess/Makefile b/emulators/xmess/Makefile
index e3728e0f910..577af853672 100644
--- a/emulators/xmess/Makefile
+++ b/emulators/xmess/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.73 2005/08/25 19:54:49 kristerw Exp $
+# $NetBSD: Makefile,v 1.74 2005/09/03 18:16:07 xtraeme Exp $
#
DISTNAME= xmame-0.99
@@ -108,6 +108,13 @@ do-install:
${INSTALL_DATA_DIR} ${ROMPATH}
${INSTALL_DATA} ${WRKSRC}/doc/${TARGET}rc ${ROMPATH}/${TARGET}rc
+.if !empty(CC_VERSION:Mgcc-3*)
+SUBST_CLASSES= pragma
+SUBST_STAGE.pragma= pre-configure
+SUBST_FILES.pragma= src/*.h
+SUBST_SED.pragma= -e "s|\#pragma once||g"
+.endif
+
.include "../../devel/zlib/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../mk/x11.buildlink3.mk"
diff --git a/emulators/xmess/options.mk b/emulators/xmess/options.mk
index 6c2c7aa300b..e3d734e7378 100644
--- a/emulators/xmess/options.mk
+++ b/emulators/xmess/options.mk
@@ -1,8 +1,10 @@
-# $NetBSD: options.mk,v 1.2 2004/11/08 14:55:23 wiz Exp $
+# $NetBSD: options.mk,v 1.3 2005/09/03 18:16:07 xtraeme Exp $
#
-PKG_OPTIONS_VAR= PKG_OPTIONS.xmess
-PKG_SUPPORTED_OPTIONS= sdl opengl esound
+PKG_OPTIONS_VAR= PKG_OPTIONS.xmess
+PKG_OPTIONS_OPTIONAL_GROUPS= video
+PKG_OPTIONS_GROUP.video= sdl opengl
+PKG_SUPPORTED_OPTIONS= esound
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Msdl)
@@ -15,10 +17,6 @@ MAME_DISP_METHOD?= xgl
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"