diff options
author | John Marino <marino@FreeBSD.org> | 2014-10-31 12:54:17 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2014-10-31 12:54:17 +0000 |
commit | d6ccfa1296b7c1e378c18506d801b3ba746d2f1c (patch) | |
tree | e931f9a864009299f3e90562589f4f50e7e782cf /games/openra/Makefile | |
parent | abaef20b78a6d6d169e4e6ca3e998feae6d0c2b2 (diff) | |
download | ports-d6ccfa1296b7c1e378c18506d801b3ba746d2f1c.tar.gz ports-d6ccfa1296b7c1e378c18506d801b3ba746d2f1c.zip |
Add new port games/openra
PR: 193422
Submitted by: Jan Beich
A reimplementation of the Command & Conquer: Red Alert game engine
using .NET/Mono, OpenGL, OpenAL and SDL. It includes reimagninations
of Command & Conquer: Red Alert, Command & Conquer: Tiberian Dawn as
well as Dune 2000. These combine the classic gameplay of the originals
with modern improvements such as unit veterancy and the fog of war.
Notes
Notes:
svn path=/head/; revision=371809
Diffstat (limited to 'games/openra/Makefile')
-rw-r--r-- | games/openra/Makefile | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/games/openra/Makefile b/games/openra/Makefile new file mode 100644 index 000000000000..079276afacf0 --- /dev/null +++ b/games/openra/Makefile @@ -0,0 +1,77 @@ +# $FreeBSD$ + +PORTNAME= openra +PORTVERSION= 20141029 +CATEGORIES= games + +MAINTAINER= jbeich@vfemail.net +COMMENT= Multiplayer re-envisioning of early RTS games by Westwood Studios + +LICENSE= GPLv3 + +LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 \ + libgdiplus.so:${PORTSDIR}/x11-toolkits/libgdiplus + +USE_GITHUB= yes +GH_ACCOUNT= ${GH_PROJECT} +GH_PROJECT= OpenRA +GH_TAGNAME= release-${PORTVERSION} +GH_COMMIT= e5948ba + +NO_ARCH= yes +USES= gmake lua:51,run mono openal:soft +USE_SDL= sdl2 +INSTALLS_ICONS= yes +MAKE_ENV= prefix="${PREFIX}" +MAKE_ARGS= VERSION="${GH_TAGNAME}" +INSTALL_TARGET= install-all install-linux-shortcuts +DATADIR= ${PREFIX}/lib/${PORTNAME} +PORTDATA= * +PORTDOCS= * + +OPTIONS_DEFINE= DOCS TEST ZENITY +OPTIONS_DEFAULT=ZENITY + +DOCS_BUILD_DEPENDS=markdown:${PORTSDIR}/textproc/markdown +DOCS_ALL_TARGET=docs + +TEST_MAKE_ENV= HOME="${WRKDIR}" +TEST_ALL_TARGET=test + +ZENITY_RUN_DEPENDS=xdg-open:${PORTSDIR}/devel/xdg-utils \ + zenity:${PORTSDIR}/x11/zenity +ZENITY_DESC= Use native crash dialog + +.include <bsd.port.options.mk> + +post-patch: + ${REINPLACE_CMD} -e 's/Linux/${OPSYS}/' \ + -e 's/crashdialog/gamemonitor/' \ + -e '/^mods:/s/$$/ version/' \ + -e '/^docs:/s/$$/ all/' \ + -e '/^test:/s/$$/ all/' \ + ${WRKSRC}/Makefile + ${REINPLACE_CMD} -e '/linux/{ p; s//${OPSYS:tl}/; }' \ + ${WRKSRC}/thirdparty/*.config* + ${SED} 's/@LIBLUA51@/liblua-${LUA_VER}.so/' \ + ${WRKSRC}/thirdparty/Eluant.dll.config.in \ + >${WRKSRC}/Eluant.dll.config +# DragonFly lacks BSD suffix + ${REINPLACE_CMD} -e 's/"BSD"/"${OPSYS}"/' \ + ${WRKSRC}/OpenRA.Game/Platform.cs + +post-build: +.if ${PORT_OPTIONS:MDOCS} + @${ECHO_MSG} Generating HTML documentation... + @for f in ${WRKSRC}/*.md; do \ + markdown $$f >$${f%.md}.html; \ + done +.endif + +post-install: +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/*.html ${STAGEDIR}${DOCSDIR} +.endif + +.include <bsd.port.mk> |