2008-02-10 20:19:24 +01:00
|
|
|
PORTNAME= spring
|
2022-03-17 20:48:20 +01:00
|
|
|
PORTVERSION= 106.0.1
|
2008-10-11 15:01:21 +02:00
|
|
|
CATEGORIES= games
|
2008-02-10 20:19:24 +01:00
|
|
|
|
2008-06-19 19:28:24 +02:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2014-06-13 09:36:27 +02:00
|
|
|
COMMENT= Project aiming to create a new and versatile RTS Engine
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://springrts.com/
|
2008-02-10 20:19:24 +01:00
|
|
|
|
2021-04-22 14:05:40 +02:00
|
|
|
LICENSE= GPLv2+ BSD3CLAUSE BSD2CLAUSE
|
|
|
|
LICENSE_COMB= multi
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2020-11-01 15:16:20 +01:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libfreetype.so:print/freetype2 \
|
|
|
|
libIL.so:graphics/devil \
|
|
|
|
libogg.so:audio/libogg \
|
2021-04-22 14:05:40 +02:00
|
|
|
libvorbis.so:audio/libvorbis \
|
|
|
|
libminizip.so:archivers/minizip \
|
|
|
|
libfontconfig.so:x11-fonts/fontconfig \
|
|
|
|
libcurl.so:ftp/curl \
|
|
|
|
libunwind.so:devel/libunwind \
|
|
|
|
libjsoncpp.so:devel/jsoncpp
|
2022-03-17 19:13:20 +01:00
|
|
|
BUILD_DEPENDS= 7zz:archivers/7-zip
|
2008-02-10 20:19:24 +01:00
|
|
|
|
2023-07-01 10:13:15 +02:00
|
|
|
BROKEN_FreeBSD_13= ld: error: undefined symbol: streflop_libm::__inline_isnanf(float)
|
2023-04-29 22:44:33 +02:00
|
|
|
BROKEN_FreeBSD_14= ld: error: undefined symbol: streflop_libm::__inline_isnanf(float)
|
2015-05-13 22:59:07 +02:00
|
|
|
ONLY_FOR_ARCHS= amd64
|
|
|
|
ONLY_FOR_ARCHS_REASON= relies on x86 floating-point math and amd64 atomic ops
|
|
|
|
|
2021-04-22 14:05:40 +02:00
|
|
|
USE_GITHUB= yes
|
2022-03-17 20:48:20 +01:00
|
|
|
GH_TUPLE= spring:Python:b69a4ea:Python/AI/Interfaces/Python \
|
|
|
|
spring:AAI:fba6d98:AAI/AI/Skirmish/AAI \
|
|
|
|
spring:CircuitAI:307daf7:CircuitAI/AI/Skirmish/CircuitAI \
|
|
|
|
spring:HughAI:2866476:HughAI/AI/Skirmish/HughAI \
|
|
|
|
spring:KAIK:2d9333e:KAIK/AI/Skirmish/KAIK \
|
|
|
|
spring:Shard:c551e5e:Shard/AI/Skirmish/Shard \
|
|
|
|
spring:SpringMapConvNG:0ddd86e:SprintMapConvNG/tools/mapcompile \
|
|
|
|
spring:pr-downloader:68b7dae:pr_downloader/tools/pr-downloader \
|
|
|
|
spring:pyunitsync:8dfe0bc:pyunitsync/tools/unitsync/python
|
2021-04-22 14:05:40 +02:00
|
|
|
|
2022-03-17 20:48:20 +01:00
|
|
|
USES= cmake compiler:c++17-lang desktop-file-utils gl localbase:ldflags \
|
2021-04-22 14:05:40 +02:00
|
|
|
openal:al pkgconfig sdl shared-mime-info xorg
|
2013-12-16 12:22:24 +01:00
|
|
|
USE_GL= gl glu glew
|
2021-04-22 14:05:40 +02:00
|
|
|
USE_SDL= sdl2
|
2008-10-11 15:01:21 +02:00
|
|
|
USE_XORG= x11 xcursor
|
|
|
|
CMAKE_ARGS= -DDATADIR:STRING="share/${PORTNAME}" \
|
2013-12-16 12:22:24 +01:00
|
|
|
-DDOCDIR:STRING="share/doc/${PORTNAME}" \
|
2021-04-22 14:05:40 +02:00
|
|
|
-DAI_TYPES:STRING="NATIVE" \
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Git=TRUE \
|
|
|
|
-Wno-dev
|
2008-02-10 20:19:24 +01:00
|
|
|
|
2021-04-22 14:05:40 +02:00
|
|
|
.if defined(WITH_SYNC_DEBUG)
|
|
|
|
CFLAGS= # empty
|
|
|
|
CXXFLAGS= # empty
|
|
|
|
CMAKE_ARGS+= -DTRACE_SYNC=true -DSYNCDEBUG=true -DSYNCCHECK=true
|
|
|
|
CMAKE_BUILD_TYPE=DEBUG
|
|
|
|
.endif
|
2015-04-25 00:39:01 +02:00
|
|
|
|
Implemented complete support for test target.
You can now `make test' on any port to run test sequence, no-op by default.
If a port defines TEST_TARGET, it'll run sub-make with specified target,
usually `check' or `test', useful if upstream supports that. The port may
instead define custom do-test target, as well as usual satellite targets:
{pre,do,post}-test, {pre,do,post}-test-OPT, {pre,do,post}-test-OPT-off
`make test' builds and stages port first, so test may use both WRKDIR and
STAGEDIR, and both BUILD and RUN depends are available for test target.
Additionally, TEST_DEPENDS is now properly supported and may be used to
define additional depends specifically for testing.
Framework may define default tests for specific cases. For instance,
perl5.mk and cran.mk already provide default test target on their own.
This commit also converts my ports which have tests to this new framework.
Approved by: portmgr (bapt)
Differential Revision: D3680
2015-09-28 19:20:42 +02:00
|
|
|
# The check-target fails right now: https://springrts.com/mantis/view.php?id=4736
|
|
|
|
TEST_TARGET= check
|
|
|
|
|
2013-12-16 12:22:24 +01:00
|
|
|
PORTDATA= *
|
|
|
|
|
2021-04-22 14:05:40 +02:00
|
|
|
OPTIONS_DEFINE= MANPAGES
|
|
|
|
OPTIONS_DEFAULT=MANPAGES
|
2017-11-21 09:36:26 +01:00
|
|
|
OPTIONS_SUB= yes
|
2013-12-16 12:22:24 +01:00
|
|
|
|
2021-04-22 14:05:40 +02:00
|
|
|
MANPAGES_CMAKE_BOOL= ENABLE_MANPAGES
|
|
|
|
MANPAGES_BUILD_DEPENDS= asciidoc:textproc/asciidoc \
|
2016-04-01 16:00:51 +02:00
|
|
|
xsltproc:textproc/libxslt \
|
|
|
|
${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl \
|
|
|
|
bash:shells/bash
|
2009-12-31 12:16:17 +01:00
|
|
|
|
2022-03-17 20:48:20 +01:00
|
|
|
post-extract:
|
|
|
|
# build system expects 2 digit version
|
|
|
|
@${ECHO_CMD} ${PORTVERSION:R} > ${WRKSRC}/VERSION
|
|
|
|
|
2008-02-10 20:19:24 +01:00
|
|
|
post-patch:
|
2022-03-17 20:48:20 +01:00
|
|
|
@${REINPLACE_CMD} -i '' -e 's|LEGACY|OPENGL4|' ${WRKSRC}/doc/manpages/spring.6.txt
|
2021-04-22 14:05:40 +02:00
|
|
|
.if defined(WITH_OPTIONAL_GS4)
|
|
|
|
# allows minimal runtest with older hardware
|
|
|
|
@${REINPLACE_CMD} -e '/GLEW_ARB_geometry_shader4/ s|CHECK_REQ_EXT|CHECK_OPT_EXT|' ${WRKSRC}/rts/Rendering/GlobalRendering.cpp
|
|
|
|
.endif
|
2013-12-16 12:22:24 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|/etc/\(spring/datadir\)|${PREFIX}/\1|g' \
|
2009-05-31 23:42:47 +02:00
|
|
|
${WRKSRC}/rts/System/FileSystem/DataDirLocater.cpp
|
2009-09-02 01:58:54 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
|
|
|
|
${WRKSRC}/rts/build/cmake/*.cmake
|
2021-04-22 14:05:40 +02:00
|
|
|
# XXX: recheck if this is still needed
|
|
|
|
@${REINPLACE_CMD} -e 's|x1F3F|x0F3F|g' \
|
|
|
|
${WRKSRC}/rts/System/Sync/FPUCheck.cpp
|
2013-12-16 12:22:24 +01:00
|
|
|
|
2021-04-22 14:05:40 +02:00
|
|
|
.include <bsd.port.mk>
|