freebsd-ports/games/openra/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

87 lines
2.6 KiB
Makefile

PORTNAME= openra
DISTVERSIONPREFIX= release-
DISTVERSION= 20200503
PORTREVISION= 2
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
WWW= https://www.openra.net/
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>