blob: 091028d5fc3c36fc06558a8ffbfbc2fd37831a5d (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
PORTNAME= openra
DISTVERSIONPREFIX= release-
DISTVERSION= 20200503
CATEGORIES= games
MASTER_SITES= https://download.ip2location.com/lite/:ip2location
DISTFILES= IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP:ip2location
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= e13fd693c386.patch:-p1 # https://github.com/OpenRA/OpenRA/pull/17744
PATCHFILES+= 85096c4ba2fb.patch:-p1 # https://github.com/OpenRA/OpenRA/pull/17744
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Multiplayer re-envisioning of early RTS games by Westwood Studios
LICENSE= GPLv3
BUILD_DEPENDS= msbuild:devel/msbuild
LIB_DEPENDS= libfreetype.so:print/freetype2 \
libgdiplus.so:x11-toolkits/libgdiplus
NUGET_DEPENDS= Microsoft.NETFramework.ReferenceAssemblies=1.0.0 \
Microsoft.NETFramework.ReferenceAssemblies.net472=1.0.0 \
NUnit=3.12.0 \
NUnit.Console=3.11.1 \
NUnit.ConsoleRunner=3.11.1 \
NUnit.Extension.NUnitProjectLoader=3.6.0 \
NUnit.Extension.NUnitV2Driver=3.8.0 \
NUnit.Extension.NUnitV2ResultWriter=3.6.0 \
NUnit.Extension.TeamCityEventListener=1.0.7 \
NUnit.Extension.VSProjectLoader=3.8.0 \
NUnit3TestAdapter=3.16.1 \
NuGet.CommandLine=4.4.1 \
OpenRA-Eluant=1.0.17 \
OpenRA-Freetype6=1.0.4 \
OpenRA-FuzzyLogicLibrary=1.0.1 \
OpenRA-Open.NAT=1.0.0 \
OpenRA-OpenAL-CS=1.0.16 \
OpenRA-SDL2-CS=1.0.26 \
SharpZipLib=1.2.0 \
StyleCop.Analyzers=1.1.118 \
rix0rrr.BeaconLib=1.0.2
USE_GITHUB= yes
GH_PROJECT= OpenRA
NO_ARCH= yes
USES= desktop-file-utils gmake lua:51 mono:nuget openal:soft sdl \
shared-mime-info
USE_SDL= sdl2
MAKE_ENV= prefix="${PREFIX}" \
gameinstalldir="${DATADIR}"
ALL_TARGET= all
INSTALL_TARGET= install install-man-page \
install-linux-mime install-linux-shortcuts
PORTDATA= *
.include <bsd.port.pre.mk>
.if defined(MONO_DEFAULT) && ${MONO_DEFAULT} > 5.10
BROKEN= fails to build with Mono version ${MONO_DEFAULT}: The imported project "/usr/local/lib/mono/msbuild/15.0/bin/Roslyn/Microsoft.CSharp.Core.targets" was not found
.endif
post-extract:
${CP} ${_DISTDIR}/${DISTFILES:C/:.*//:MIP2LOCATION-*} ${WRKSRC}
post-patch:
${REINPLACE_CMD} \
-e 's/ -verbosity:m//' \
-e '/echo/!s/ @/ /' \
-e '/^VERSION/s/=.*/= ${GH_TAGNAME}/' \
-e '/^core:/s/$$/ version/' \
${WRKSRC}/Makefile
.if defined(PATCHFILES)
${CHMOD} +x ${WRKSRC}/configure-system-libraries.sh
.endif
${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},' \
-e '/target/s,$${DIR}/,,' \
${WRKSRC}/configure-system-libraries.sh
do-test:
@(cd ${TEST_WRKSRC} && mono \
${NUGET_PACKAGEDIR}/NUnit.ConsoleRunner/tools/nunit3-console.exe \
--noresult OpenRA.Test.nunit)
.include <bsd.port.post.mk>
|