| @@ -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 | |
6 | CATEGORIES= emulators | | 6 | CATEGORIES= emulators |
7 | EXTRACT_SUFX= .zip | | 7 | EXTRACT_SUFX= .zip |
8 | | | 8 | |
9 | MAINTAINER= wiz@NetBSD.org | | 9 | MAINTAINER= wiz@NetBSD.org |
10 | HOMEPAGE= http://www.mamedev.org/ | | 10 | HOMEPAGE= http://www.mamedev.org/ |
11 | LICENSE= mame-license | | 11 | LICENSE= mame-license |
12 | | | 12 | |
13 | RESTRICTED= selling is not allowed | | 13 | RESTRICTED= selling is not allowed |
14 | NO_SRC_ON_CDROM= ${RESTRICTED} | | 14 | NO_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 | |
25 | USE_LANGUAGES= c c++ | | 25 | USE_LANGUAGES= c c++ |
26 | USE_TOOLS+= gmake pkg-config | | 26 | USE_TOOLS+= gmake pkg-config |
27 | UNLIMIT_RESOURCES+= datasize | | 27 | UNLIMIT_RESOURCES+= datasize |
28 | MAKE_FILE= makefile | | 28 | MAKE_FILE= makefile |
29 | # 0.141 has too many conversion warnings | | 29 | # 0.141 has too many conversion warnings |
30 | MAKE_ENV= NOWERROR=1 | | 30 | MAKE_ENV= NOWERROR=1 |
31 | # we don't want to pull in qt4 | | 31 | # we don't want to pull in qt4 |
32 | MAKE_ENV= NO_USE_QTDEBUG=1 | | 32 | MAKE_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} |
36 | MAKE_FLAGS+= BIGENDIAN=true | | 48 | MAKE_FLAGS+= BIGENDIAN=true |
37 | .endif | | 49 | .endif |
38 | | | 50 | |
39 | SUBST_CLASSES+= exe | | 51 | SUBST_CLASSES+= exe |
40 | SUBST_SED.exe= -e 's,$$(PREFIX)$$(PREFIXSDL)$$(NAME)$$(SUFFIX)$$(SUFFIX64)$$(SUFFIXDEBUG)$$(SUFFIXPROFILE),$$(PREFIXSDL)$$(NAME)$$(SUFFIX)$$(SUFFIXDEBUG)$$(SUFFIXPROFILE),' | | 52 | SUBST_SED.exe= -e 's,$$(PREFIX)$$(PREFIXSDL)$$(NAME)$$(SUFFIX)$$(SUFFIX64)$$(SUFFIXDEBUG)$$(SUFFIXPROFILE),$$(PREFIXSDL)$$(NAME)$$(SUFFIX)$$(SUFFIXDEBUG)$$(SUFFIXPROFILE),' |
41 | SUBST_SED.exe+= -e 's,PYTHON = .python,PYTHON = ${PYTHONBIN},' | | 53 | SUBST_SED.exe+= -e 's,PYTHON = .python,PYTHON = ${PYTHONBIN},' |
42 | SUBST_FILES.exe= makefile | | 54 | SUBST_FILES.exe= makefile |
43 | SUBST_STAGE.exe= post-patch | | 55 | SUBST_STAGE.exe= post-patch |
44 | SUBST_MESSAGE.exe= Fixing executable name. | | 56 | SUBST_MESSAGE.exe= Fixing executable name. |
45 | | | 57 | |
46 | PYTHON_FOR_BUILD_ONLY= yes | | 58 | PYTHON_FOR_BUILD_ONLY= yes |