1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/games/regoth/Makefile
Muhammad Moinur Rahman bbab7f59e9 */*: Sunset 12.4-RELEASE/12-STABLE from ports tree
- Remove all references to defunct ARCH arm
- Remove all references to defunct ARCH sparc64
- Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64
  ARCH
- Remove sysutils/afbinit requires defunct sparc64 ARCH
- Remove all references to bktr driver
- Remove all references to defunct FreeBSD_12
- Remove all references to OSVERSION/OSREL corresponding to 12
- Remove conditionals in Mk/Uses/cabal.mk
- Remove sparc reference from Mk/Uses/qt-dist.mk
- Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64
- Remove BROKEN_FreeBSD_12* from:
- Remove OpenSSL patches from:
- Remove conditional flags for OSVERSION >= 1300000 to fixed flags.
  Also move conditional flags for non sparc64/arm ARCH to fixed flags.

Reviewed by:	brooks, jbeich, rene, salvadore
Differential Revision: https://reviews.freebsd.org/D42068
2023-12-31 01:37:05 +01:00

66 lines
2.5 KiB
Makefile

PORTNAME= regoth
DISTVERSIONPREFIX= nightly-
DISTVERSION= 0.4.189
PORTREVISION= 3
CATEGORIES= games
MAINTAINER= ports@FreeBSD.org
COMMENT= Reimplementation of zEngine, the Gothic and Gothic II engine
WWW= https://github.com/REGoth-project/REGoth
LICENSE= GPLv3
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
CXXFLAGS_powerpc64le= -DNO_WARN_X86_INTRINSICS
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>