1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/games/nxengine/Makefile
Gerald Pfeifer 09f9633cb6 Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.

This includes ports
 - featuring USE_GCC=yes or USE_GCC=any,
 - featuring USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and those
 - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
   c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.

PR:		222542
2018-07-29 22:18:44 +00:00

53 lines
1.9 KiB
Makefile

# $FreeBSD$
PORTNAME= nxengine
PORTVERSION= 2.6.3
PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= games
MASTER_SITES+= https://www.cavestory.org/downloads/:data \
SF/lifanov-ports-distfiles/games/${PORTNAME}/:icons
DISTFILES+= ${PORTNAME}.png:icons \
cavestoryen.zip:data
EXTRACT_ONLY= ${DISTFILES:[2..3]:S/:data//}
MAINTAINER= lifanov@FreeBSD.org
COMMENT= Engine-rewrite of the classic platformer Cave Story
LICENSE= GPLv3 FREEWARE
LICENSE_COMB= multi
LICENSE_NAME_FREEWARE= Cave Story freeware license
LICENSE_FILE_GPLv3= ${WRKSRC}/LICENSE
LICENSE_FILE_FREEWARE= ${WRKDIR}/CaveStory/Readme.txt
LICENSE_PERMS_FREEWARE= dist-mirror pkg-mirror auto-accept
LICENSE_DISTFILES_GPLv3= ${DISTFILES:[3]}
LICENSE_DISTFILES_FREEWARE= ${DISTFILES:[2]:S/:data//}
BROKEN_aarch64= fails to compile: player.cpp:763:50: constant expression evaluates to -1 which cannot be narrowed to type 'char' [-Wc++11-narrowing]
BROKEN_armv6= fails to compile: player.cpp:763:50: constant expression evaluates to -1 which cannot be narrowed to type 'char' [-Wc++11-narrowing]
BROKEN_armv7= fails to compile: player.cpp:763:50: constant expression evaluates to -1 which cannot be narrowed to type 'char' [-Wc++11-narrowing]
LIB_DEPENDS= libpng.so:graphics/png
DESKTOP_ENTRIES="NXEngine" "" "${PORTNAME}" \
"${PORTNAME}" "Game;AdventureGame;" ""
USES= cmake:outsource compiler:c++11-lang
USE_SDL= mixer2 sdl2
SUB_FILES= ${PORTNAME}
USE_GITHUB= yes
GH_PROJECT= ${PORTNAME}-evo
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_PROGRAM} ${WRKSRC}/bin/nx ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKDIR}/nxengine ${STAGEDIR}${PREFIX}/bin
(cd ${WRKSRC}/data; ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/data)
(cd ${WRKDIR}/CaveStory; ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps
(cd ${STAGEDIR}${DATADIR}; ${WRKSRC}/bin/extract)
.include <bsd.port.mk>