blob: a4cf4d7dc87e2310a96281aadc33e1d4f8728bce (
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
|
# $NetBSD: Makefile,v 1.8 2021/06/06 16:59:51 nia Exp $
DISTNAME= gemrb-0.8.8
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GITHUB:=gemrb/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gemrb.org/
COMMENT= Reimplementation of the Infinity Engine used in 2D RPGs by Bioware
LICENSE= gnu-gpl-v2
USE_CMAKE= yes
USE_LANGUAGES= c c++
USE_TOOLS+= pkg-config
GCC_REQD+= 4.7 # -std=gnu++11
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/gemrb
LDFLAGS+= -lm # ldexpf
CMAKE_ARGS+= -DDISABLE_WERROR=ON
CMAKE_ARGS+= -DUSE_LIBVLC=OFF
CMAKE_ARGS+= -DMAN_DIR="${PREFIX}/${PKGMANDIR}/man6"
CMAKE_ARGS+= -DEXAMPLE_CONF_DIR="${PREFIX}/share/examples/gemrb"
CMAKE_ARGS+= -DSDL_BACKEND="SDL2"
CMAKE_ARG_PATH= ..
CONFIGURE_DIRS= build
REPLACE_PYTHON= admin/extend2da.py
# https://github.com/gemrb/gemrb/issues/101
PYTHON_VERSIONS_ACCEPTED= 27
pre-configure:
${MKDIR} ${WRKSRC}/build
.include "../../audio/openal-soft/buildlink3.mk"
.include "../../audio/SDL2_mixer/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/SDL2/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"
|