blob: 98df7aebc9cb0dbe01c7e8ac6c19af51c5f712fa (
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
|
PORTNAME= openage
DISTVERSIONPREFIX= v
DISTVERSION= 0.4.1
CATEGORIES= games
MAINTAINER= freebsd@sysctl.cz
COMMENT= Free engine clone of the Genie Engine
WWW= https://openage.sft.mx/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/legal/GPLv3
BUILD_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
${PY_PILLOW} \
${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments@${PY_FLAVOR}
LIB_DEPENDS= libepoxy.so:graphics/libepoxy \
libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libharfbuzz.so:print/harfbuzz \
libogg.so:audio/libogg \
libopus.so:audio/opus \
libopusfile.so:audio/opusfile \
libpng.so:graphics/png \
libnyan.so:lang/nyan
RUN_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
${PY_PILLOW} \
${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments@${PY_FLAVOR}
USES= cmake compiler:c++17-lang eigen:3 gl ncurses:base python:3.7-3.9 qt:5 sdl shebangfix
SHEBANG_FILES= configure run.py.in buildsystem/cythonize.py
USE_GITHUB= yes
GH_ACCOUNT= SFTtech
USE_SDL= image2 sdl2
USE_GL= gl glu
USE_QT= core declarative gui network buildtools_build qmake_build
USE_PYTHON= cython
USE_LDCONFIG= yes
CMAKE_OFF= WANT_BACKTRACE WANT_GPERFTOOLS_PROFILER WANT_INOTIFY
CMAKE_ARGS= -DGLOBAL_CONFIG_DIR:STRING=${ETCDIR}
BINARY_ALIAS= python3=${PYTHON_CMD}
pre-configure:
${REINPLACE_CMD} -e 's|python3|${PYTHON_CMD}|' ${WRKSRC}/openage/codegen/main.py
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/openage
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/xdg
.include <bsd.port.mk>
|