From owner-svn-ports-head@freebsd.org Tue Oct 8 14:19:46 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F30ED12A250; Tue, 8 Oct 2019 14:19:45 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46nfcd6D4Jz40d3; Tue, 8 Oct 2019 14:19:45 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B5C891280; Tue, 8 Oct 2019 14:19:45 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x98EJjn8025028; Tue, 8 Oct 2019 14:19:45 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x98EJiiA025024; Tue, 8 Oct 2019 14:19:44 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201910081419.x98EJiiA025024@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Tue, 8 Oct 2019 14:19:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r514077 - in head/games: . openfodder openfodder/files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head/games: . openfodder openfodder/files X-SVN-Commit-Revision: 514077 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Oct 2019 14:19:46 -0000 Author: jbeich Date: Tue Oct 8 14:19:44 2019 New Revision: 514077 URL: https://svnweb.freebsd.org/changeset/ports/514077 Log: games/openfodder: add new port Cannon Fodder is an action-strategy shoot 'em up game developed by Sensible Software and published by Virgin Interactive. Open Fodder is a modern open source engine for it. The game is military-themed and based on shooting action but with a strategy game-style control system. The player directs troops through numerous missions, battling enemy infantry, vehicles and installations. http://openfodder.com/ Added: head/games/openfodder/ head/games/openfodder/Makefile (contents, props changed) head/games/openfodder/distinfo (contents, props changed) head/games/openfodder/files/ head/games/openfodder/files/patch-Source_stdafx.cpp (contents, props changed) head/games/openfodder/pkg-descr (contents, props changed) Modified: head/games/Makefile (contents, props changed) Modified: head/games/Makefile ============================================================================== --- head/games/Makefile Tue Oct 8 13:57:15 2019 (r514076) +++ head/games/Makefile Tue Oct 8 14:19:44 2019 (r514077) @@ -670,6 +670,7 @@ SUBDIR += openclaw SUBDIR += openclonk SUBDIR += opendungeons + SUBDIR += openfodder SUBDIR += opengfx SUBDIR += openglad SUBDIR += openjazz Added: head/games/openfodder/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/openfodder/Makefile Tue Oct 8 14:19:44 2019 (r514077) @@ -0,0 +1,73 @@ +# $FreeBSD$ + +PORTNAME= OpenFodder +DISTVERSION= 1.5.3 +CATEGORIES= games + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Open source port of Cannon Fodder + +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/gpl-3.0.txt + +USES= compiler:c++14-lang sdl +USE_GITHUB= yes +USE_SDL= mixer2 +GH_TUPLE= ${PORTNAME}:data:1.6.0:data +GH_PROJECT= ${PORTNAME:tl} +PLIST_FILES= bin/${PORTNAME} +PORTDATA= * +PORTDOCS= *.md + +DESKTOP_ENTRIES="${PORTNAME}" \ + "" \ + "${PORTNAME:tl}" \ + "${PORTNAME}" \ + "Game;ArcadeGame;" \ + "" + +OPTIONS_DEFINE= DOCS ICONS +OPTIONS_DEFAULT=ICONS + +ICONS_BUILD_DEPENDS= mogrify:graphics/ImageMagick6 + +post-patch: + @${REINPLACE_CMD} -e 's,clang++,${CXX},' \ + -e 's/ -ferror-limit=100//' \ + -e 's, -I/usr/include[^[:space:]]*,,g' \ + -e 's,git log -n 1 --pretty=,${ECHO_CMD} ,' \ + -e 's,%%h,${DISTVERSIONFULL},' \ + ${WRKSRC}/Makefile + @${REINPLACE_CMD} 's,/usr/local,${PREFIX},' \ + ${WRKSRC}/Source/stdafx.cpp + +post-build-ICONS-on: + @for size in 16x16 24x24 32x32 48x48 57x57; do \ + ${MKDIR} ${WRKDIR}/icons/hicolor/$$size/apps; \ + done + @mogrify -verbose -set filename:size %wx%h -format png \ + -path ${WRKDIR}/icons/hicolor/%\[filename:size]/apps \ + ${WRKSRC}/Projects/openfodder.ico + +do-test: + @(cd ${WRKSRC_data} && ${SETENV} ${TEST_ENV} \ + ${WRKSRC}/Run/${PORTNAME} --unit-test-headless) + +pre-install: do-test + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/Run/${PORTNAME} \ + ${STAGEDIR}${PREFIX}/bin + (cd ${WRKSRC_data} && ${COPYTREE_SHARE} "${PORTDATA}" \ + ${STAGEDIR}${DATADIR}) + +do-install-DOCS-on: + (cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" \ + ${STAGEDIR}${DOCSDIR}) + +do-install-ICONS-on: + (cd ${WRKDIR}/icons && ${COPYTREE_SHARE} . \ + ${STAGEDIR}${PREFIX}/share/icons) + (cd ${STAGEDIR}${PREFIX} && ${FIND} share/icons -type f >>${TMPPLIST}) + +.include Added: head/games/openfodder/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/openfodder/distinfo Tue Oct 8 14:19:44 2019 (r514077) @@ -0,0 +1,5 @@ +TIMESTAMP = 1544863677 +SHA256 (OpenFodder-openfodder-1.5.3_GH0.tar.gz) = d9f40c4f85d38624a32f59450ee710825d82ee19ec5948faf67abc764c3f6799 +SIZE (OpenFodder-openfodder-1.5.3_GH0.tar.gz) = 424997 +SHA256 (OpenFodder-data-1.6.0_GH0.tar.gz) = 04368eea546de1ec17e875a9535d7d44b8e9cf587beba9fa7c5c06a750e10f45 +SIZE (OpenFodder-data-1.6.0_GH0.tar.gz) = 3385617 Added: head/games/openfodder/files/patch-Source_stdafx.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/openfodder/files/patch-Source_stdafx.cpp Tue Oct 8 14:19:44 2019 (r514077) @@ -0,0 +1,14 @@ +Check DATADIR if ~/.local/share/ exists but lacks OpenFodder subdirectory. +Allows to run demo on first launch on a common desktop. + +--- Source/stdafx.cpp.orig 2018-12-15 08:47:57 UTC ++++ Source/stdafx.cpp +@@ -249,7 +249,7 @@ void local_BasePathGenerate() { + } + + // Fall back just incase +- if (!FinalPath.size()) ++ if (!local_FileExists(FinalPath + "OpenFodder/")) + FinalPath = "/usr/local/share/"; + + filePathFinal << FinalPath << "OpenFodder/"; Added: head/games/openfodder/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/openfodder/pkg-descr Tue Oct 8 14:19:44 2019 (r514077) @@ -0,0 +1,10 @@ +Cannon Fodder is an action-strategy shoot 'em up game developed by +Sensible Software and published by Virgin Interactive. Open Fodder is +a modern open source engine for it. + +The game is military-themed and based on shooting action but with a +strategy game-style control system. The player directs troops through +numerous missions, battling enemy infantry, vehicles and +installations. + +WWW: http://openfodder.com/