4 DISTVERSIONPREFIX= release-
7 MASTER_SITES= https://download.ip2location.com/lite/:ip2location
8 DISTFILES= IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP:ip2location
10 PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
11 PATCHFILES+= e13fd693c386.patch:-p1 # https://github.com/OpenRA/OpenRA/pull/17744
12 PATCHFILES+= 85096c4ba2fb.patch:-p1 # https://github.com/OpenRA/OpenRA/pull/17744
14 MAINTAINER= jbeich@FreeBSD.org
15 COMMENT= Multiplayer re-envisioning of early RTS games by Westwood Studios
19 BUILD_DEPENDS= msbuild:devel/msbuild
20 LIB_DEPENDS= libfreetype.so:print/freetype2 \
21 libgdiplus.so:x11-toolkits/libgdiplus
22 NUGET_DEPENDS= Microsoft.NETFramework.ReferenceAssemblies=1.0.0 \
23 Microsoft.NETFramework.ReferenceAssemblies.net472=1.0.0 \
25 NUnit.Console=3.11.1 \
26 NUnit.ConsoleRunner=3.11.1 \
27 NUnit.Extension.NUnitProjectLoader=3.6.0 \
28 NUnit.Extension.NUnitV2Driver=3.8.0 \
29 NUnit.Extension.NUnitV2ResultWriter=3.6.0 \
30 NUnit.Extension.TeamCityEventListener=1.0.7 \
31 NUnit.Extension.VSProjectLoader=3.8.0 \
32 NUnit3TestAdapter=3.16.1 \
33 NuGet.CommandLine=4.4.1 \
34 OpenRA-Eluant=1.0.17 \
35 OpenRA-Freetype6=1.0.4 \
36 OpenRA-FuzzyLogicLibrary=1.0.1 \
37 OpenRA-Open.NAT=1.0.0 \
38 OpenRA-OpenAL-CS=1.0.16 \
39 OpenRA-SDL2-CS=1.0.26 \
41 StyleCop.Analyzers=1.1.118 \
42 rix0rrr.BeaconLib=1.0.2
48 USES= desktop-file-utils gmake lua:51 mono:nuget openal:soft sdl \
51 MAKE_ENV= prefix="${PREFIX}" \
52 gameinstalldir="${DATADIR}"
54 INSTALL_TARGET= install install-man-page \
55 install-linux-mime install-linux-shortcuts
59 ${CP} ${_DISTDIR}/${DISTFILES:C/:.*//:MIP2LOCATION-*} ${WRKSRC}
63 -e 's/ -verbosity:m//' \
65 -e '/^VERSION/s/=.*/= ${GH_TAGNAME}/' \
66 -e '/^core:/s/$$/ version/' \
68 .if defined(PATCHFILES)
69 ${CHMOD} +x ${WRKSRC}/configure-system-libraries.sh
71 ${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},' \
72 -e '/target/s,$${DIR}/,,' \
73 ${WRKSRC}/configure-system-libraries.sh
76 @(cd ${TEST_WRKSRC} && mono \
77 ${NUGET_PACKAGEDIR}/NUnit.ConsoleRunner/tools/nunit3-console.exe \
78 --noresult OpenRA.Test.nunit)
80 .include <bsd.port.mk>