2020-01-05 20:24:33 -05:00
PORTNAME = regoth
DISTVERSIONPREFIX = nightly-
DISTVERSION = 0.4.189
2021-06-19 16:16:08 -04:00
PORTREVISION = 2
2020-01-05 20:24:33 -05:00
CATEGORIES = games
2022-10-07 02:02:44 -04:00
MAINTAINER = ports@FreeBSD.org
2020-01-05 20:24:33 -05:00
COMMENT = Reimplementation of zEngine, the Gothic and Gothic II engine
2022-09-07 17:06:12 -04:00
WWW = https://github.com/REGoth-project/REGoth
2020-01-05 20:24:33 -05:00
LICENSE = GPLv3
2020-05-17 20:30:01 -04:00
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' ?
2021-01-18 22:13:09 -05:00
BROKEN_riscv64 = fails to build: mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms' ; did you mean '__builtin_isless' ?
2020-05-17 20:30:01 -04:00
2020-01-05 20:24:33 -05:00
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
2020-03-19 19:02:30 -04:00
LDFLAGS_i386 = -Wl,-znotext
2020-01-05 20:24:33 -05:00
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
. i n c l u d e < b s d . p o r t . m k >