blob: 3847f06a2c16654ed06b40094feb08d69ff2fed8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# $NetBSD: Makefile.common,v 1.12 2013/10/10 00:06:19 joerg Exp $
#
# used by emulators/mame/Makefile
# used by emulators/mess/Makefile
CATEGORIES= emulators
EXTRACT_SUFX= .zip
MAINTAINER= wiz@NetBSD.org
HOMEPAGE= http://www.mamedev.org/
LICENSE= mame-license
RESTRICTED= selling is not allowed
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
DEPENDS+= liberation-ttf-[0-9]*:../../fonts/liberation-ttf
WRKSRC= ${WRKDIR}
# separate distinfos though, so don't forget 'make mdi' when
# adding or changing patches
#PATCHDIR= ${.CURDIR}/../../emulators/mame/patches
USE_LANGUAGES= c c++
USE_TOOLS+= gmake pkg-config
UNLIMIT_RESOURCES+= datasize
MAKE_FILE= makefile
# 0.141 has too many conversion warnings
MAKE_ENV= NOWERROR=1
# we don't want to pull in qt4
MAKE_ENV= NO_USE_QTDEBUG=1
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
_WRAP_EXTRA_ARGS.CC+= -Wno-error=cast-align \
-Wno-error=constant-logical-operand \
-Wno-error=sometimes-uninitialized \
-Wno-error=shift-count-overflow \
-Wno-error=unused-private-field \
-Wno-error=tautological-constant-out-of-range-compare \
-Wno-error=tautological-compare \
-Wno-error=self-assign-field \
-Wno-error=unused-const-variable \
-Wno-error=unused-function
MAKE_ENV+= OPTIMIZE=2
.endif
. include "../../mk/endian.mk"
.if ${MACHINE_ENDIAN:Mbig}
MAKE_FLAGS+= BIGENDIAN=true
.endif
SUBST_CLASSES+= exe
SUBST_SED.exe= -e 's,$$(PREFIX)$$(PREFIXSDL)$$(NAME)$$(SUFFIX)$$(SUFFIX64)$$(SUFFIXDEBUG)$$(SUFFIXPROFILE),$$(PREFIXSDL)$$(NAME)$$(SUFFIX)$$(SUFFIXDEBUG)$$(SUFFIXPROFILE),'
SUBST_SED.exe+= -e 's,PYTHON = .python,PYTHON = ${PYTHONBIN},'
SUBST_FILES.exe= makefile
SUBST_STAGE.exe= post-patch
SUBST_MESSAGE.exe= Fixing executable name.
PYTHON_FOR_BUILD_ONLY= yes
.include "../../lang/python/application.mk"
.include "../../devel/GConf/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../devel/SDL_ttf/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../x11/libXinerama/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|