Mon Jun 17 11:45:27 2013 UTC ()
Override various fatal warnings for clang, even if some are genuine
bugs.


(joerg)
diff -r1.9 -r1.10 pkgsrc/emulators/mame/Makefile.common

cvs diff -r1.9 -r1.10 pkgsrc/emulators/mame/Attic/Makefile.common (expand / switch to unified diff)

--- pkgsrc/emulators/mame/Attic/Makefile.common 2013/06/13 14:27:59 1.9
+++ pkgsrc/emulators/mame/Attic/Makefile.common 2013/06/17 11:45:27 1.10
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile.common,v 1.9 2013/06/13 14:27:59 wiz Exp $ 1# $NetBSD: Makefile.common,v 1.10 2013/06/17 11:45:27 joerg Exp $
2# 2#
3# used by emulators/mame/Makefile 3# used by emulators/mame/Makefile
4# used by emulators/mess/Makefile 4# used by emulators/mess/Makefile
5 5
6CATEGORIES= emulators 6CATEGORIES= emulators
7EXTRACT_SUFX= .zip 7EXTRACT_SUFX= .zip
8 8
9MAINTAINER= wiz@NetBSD.org 9MAINTAINER= wiz@NetBSD.org
10HOMEPAGE= http://www.mamedev.org/ 10HOMEPAGE= http://www.mamedev.org/
11LICENSE= mame-license 11LICENSE= mame-license
12 12
13RESTRICTED= selling is not allowed 13RESTRICTED= selling is not allowed
14NO_SRC_ON_CDROM= ${RESTRICTED} 14NO_SRC_ON_CDROM= ${RESTRICTED}
@@ -21,26 +21,38 @@ WRKSRC= ${WRKDIR} @@ -21,26 +21,38 @@ WRKSRC= ${WRKDIR}
21# separate distinfos though, so don't forget 'make mdi' when 21# separate distinfos though, so don't forget 'make mdi' when
22# adding or changing patches 22# adding or changing patches
23#PATCHDIR= ${.CURDIR}/../../emulators/mame/patches 23#PATCHDIR= ${.CURDIR}/../../emulators/mame/patches
24 24
25USE_LANGUAGES= c c++ 25USE_LANGUAGES= c c++
26USE_TOOLS+= gmake pkg-config 26USE_TOOLS+= gmake pkg-config
27UNLIMIT_RESOURCES+= datasize 27UNLIMIT_RESOURCES+= datasize
28MAKE_FILE= makefile 28MAKE_FILE= makefile
29# 0.141 has too many conversion warnings 29# 0.141 has too many conversion warnings
30MAKE_ENV= NOWERROR=1 30MAKE_ENV= NOWERROR=1
31# we don't want to pull in qt4 31# we don't want to pull in qt4
32MAKE_ENV= NO_USE_QTDEBUG=1 32MAKE_ENV= NO_USE_QTDEBUG=1
33 33
 34.include "../../mk/compiler.mk"
 35.if !empty(PKGSRC_COMPILER:Mclang)
 36_WRAP_EXTRA_ARGS.CC+= -Wno-error=cast-align \
 37 -Wno-error=constant-logical-operand \
 38 -Wno-error=sometimes-uninitialized \
 39 -Wno-error=shift-count-overflow \
 40 -Wno-error=unused-private-field \
 41 -Wno-error=tautological-constant-out-of-range-compare \
 42 -Wno-error=tautological-compare \
 43 -Wno-error=self-assign-field
 44.endif
 45
34. include "../../mk/endian.mk" 46. include "../../mk/endian.mk"
35.if ${MACHINE_ENDIAN:Mbig} 47.if ${MACHINE_ENDIAN:Mbig}
36MAKE_FLAGS+= BIGENDIAN=true 48MAKE_FLAGS+= BIGENDIAN=true
37.endif 49.endif
38 50
39SUBST_CLASSES+= exe 51SUBST_CLASSES+= exe
40SUBST_SED.exe= -e 's,$$(PREFIX)$$(PREFIXSDL)$$(NAME)$$(SUFFIX)$$(SUFFIX64)$$(SUFFIXDEBUG)$$(SUFFIXPROFILE),$$(PREFIXSDL)$$(NAME)$$(SUFFIX)$$(SUFFIXDEBUG)$$(SUFFIXPROFILE),' 52SUBST_SED.exe= -e 's,$$(PREFIX)$$(PREFIXSDL)$$(NAME)$$(SUFFIX)$$(SUFFIX64)$$(SUFFIXDEBUG)$$(SUFFIXPROFILE),$$(PREFIXSDL)$$(NAME)$$(SUFFIX)$$(SUFFIXDEBUG)$$(SUFFIXPROFILE),'
41SUBST_SED.exe+= -e 's,PYTHON = .python,PYTHON = ${PYTHONBIN},' 53SUBST_SED.exe+= -e 's,PYTHON = .python,PYTHON = ${PYTHONBIN},'
42SUBST_FILES.exe= makefile 54SUBST_FILES.exe= makefile
43SUBST_STAGE.exe= post-patch 55SUBST_STAGE.exe= post-patch
44SUBST_MESSAGE.exe= Fixing executable name. 56SUBST_MESSAGE.exe= Fixing executable name.
45 57
46PYTHON_FOR_BUILD_ONLY= yes 58PYTHON_FOR_BUILD_ONLY= yes