Update games/hexalate to version 1.1.6
[dports.git] / games / openra / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       openra
4 DISTVERSIONPREFIX=      release-
5 DISTVERSION=    20200503
6 CATEGORIES=     games
7 MASTER_SITES=   https://download.ip2location.com/lite/:ip2location
8 DISTFILES=      IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP:ip2location
9
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
13
14 MAINTAINER=     jbeich@FreeBSD.org
15 COMMENT=        Multiplayer re-envisioning of early RTS games by Westwood Studios
16
17 LICENSE=        GPLv3
18
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 \
24                 NUnit=3.12.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 \
40                 SharpZipLib=1.2.0 \
41                 StyleCop.Analyzers=1.1.118 \
42                 rix0rrr.BeaconLib=1.0.2
43
44 USE_GITHUB=     yes
45 GH_PROJECT=     OpenRA
46
47 NO_ARCH=        yes
48 USES=           desktop-file-utils gmake lua:51 mono:nuget openal:soft sdl \
49                 shared-mime-info
50 USE_SDL=        sdl2
51 MAKE_ENV=       prefix="${PREFIX}" \
52                 gameinstalldir="${DATADIR}"
53 ALL_TARGET=     all
54 INSTALL_TARGET= install install-man-page \
55                 install-linux-mime install-linux-shortcuts
56 PORTDATA=       *
57
58 post-extract:
59         ${CP} ${_DISTDIR}/${DISTFILES:C/:.*//:MIP2LOCATION-*} ${WRKSRC}
60
61 post-patch:
62         ${REINPLACE_CMD} \
63                 -e 's/ -verbosity:m//' \
64                 -e '/echo/!s/   @/      /' \
65                 -e '/^VERSION/s/=.*/=   ${GH_TAGNAME}/' \
66                 -e '/^core:/s/$$/ version/' \
67                 ${WRKSRC}/Makefile
68 .if defined(PATCHFILES)
69         ${CHMOD} +x ${WRKSRC}/configure-system-libraries.sh
70 .endif
71         ${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},' \
72                 -e '/target/s,$${DIR}/,,' \
73                 ${WRKSRC}/configure-system-libraries.sh
74
75 do-test:
76         @(cd ${TEST_WRKSRC} && mono \
77                 ${NUGET_PACKAGEDIR}/NUnit.ConsoleRunner/tools/nunit3-console.exe \
78                 --noresult OpenRA.Test.nunit)
79
80 .include <bsd.port.mk>