blob: 561cfb93aed01f13a078fc8dbad1947e2d42245c (
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
|
PORTNAME= regoth
DISTVERSIONPREFIX= nightly-
DISTVERSION= 0.4.189
PORTREVISION= 1
CATEGORIES= games
MAINTAINER= greg@unrelenting.technology
COMMENT= Reimplementation of zEngine, the Gothic and Gothic II engine
LICENSE= GPLv3
BROKEN_FreeBSD_12_powerpc64= fails to build: /usr/include/math.h:251:8: error: conflicting declaration of C function 'double pow(double, double)'
BROKEN_FreeBSD_13_powerpc64= fails to build: mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
BROKEN_riscv64= fails to build: mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
LIB_DEPENDS= libsndfile.so:audio/libsndfile
USES= cmake compiler:c++11-lib gl openal xorg
USE_GITHUB= yes
GH_ACCOUNT= REGoth-project
GH_PROJECT= REGoth
GH_TUPLE= ataulien:bgfx-cmake:9a9b596:bgfxcmake/lib/bgfx-cmake \
bkaradzic:bgfx:c0cf484:bgfx \
bkaradzic:bimg:224aa80:bimg \
bkaradzic:bx:4b4b3e7:bx \
ataulien:ZenLib:3a8e919:zenlib/lib/ZenLib \
tito:libsquish:f5e44a3:libsquish \
REGoth-project:physfs:4174d6a:physfs \
g-truc:glm:06f0840:glm/lib/glm \
glfw:glfw:0f488ac:glfw/lib/glfw \
cxong:tinydir:0862ba9:tinydir/lib/tinydir \
bulletphysics:bullet3:fb51c3f:bullet3/lib/bullet3 \
frabert:libdmusic:e193ef4:libdmusic/lib/libdmusic \
erikd:libsndfile:cf7a818:libsndfile \
gocha:sf2cute:fcaf333:sf2cute \
REGoth-project:CAB-Installer-Extractor:a311fea:cab/lib/CAB-Installer-Extractor
USE_XORG= ice sm x11 xcursor xext xinerama xrandr
USE_GL= gl glu
CMAKE_ARGS+= -DREGOTH_BUILD_WITH_SYSTEM_OPENAL:BOOL=YES
LDFLAGS_i386= -Wl,-znotext
post-extract:
${MV} ${WRKSRC_bgfx}/* ${WRKSRC}/lib/bgfx-cmake/bgfx
${MV} ${WRKSRC_bimg}/* ${WRKSRC}/lib/bgfx-cmake/bimg
${MV} ${WRKSRC_bx}/* ${WRKSRC}/lib/bgfx-cmake/bx
${MV} ${WRKSRC_libsquish}/* ${WRKSRC}/lib/ZenLib/lib/libsquish
${MV} ${WRKSRC_physfs}/* ${WRKSRC}/lib/ZenLib/lib/physfs
${MV} ${WRKSRC_libsndfile}/* ${WRKSRC}/lib/libdmusic/utils/dls2sf/lib/libsndfile
${MV} ${WRKSRC_sf2cute}/* ${WRKSRC}/lib/libdmusic/utils/dls2sf/lib/sf2cute
post-patch:
${RM} ${WRKSRC}/lib/bgfx-cmake/bx/include/compat/freebsd/dirent.h # the real one is needed by tinydir
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}/shaders/
${INSTALL_SCRIPT} ${BUILD_WRKSRC}/bin/REGoth ${STAGEDIR}${DATADIR}
(cd ${BUILD_WRKSRC}/bin/shaders/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/shaders/)
${STRIP_CMD} ${STAGEDIR}${DATADIR}/REGoth
${CAT} ${FILESDIR}/launcher.sh | ${SED} -e "s|%%DATADIR%%|${DATADIR}|" > \
${STAGEDIR}${PREFIX}/bin/REGoth
.include <bsd.port.mk>
|