2017-09-15 00:20:37 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= nxengine
|
2018-04-12 18:30:31 +00:00
|
|
|
PORTVERSION= 2.6.3
|
2018-03-29 23:49:12 +00:00
|
|
|
DISTVERSIONPREFIX= v
|
Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.
PR: 231590
2018-12-12 01:35:33 +00:00
|
|
|
PORTREVISION= 2
|
2017-09-15 00:20:37 +00:00
|
|
|
CATEGORIES= games
|
2018-03-29 23:49:12 +00:00
|
|
|
MASTER_SITES+= https://www.cavestory.org/downloads/:data \
|
2017-09-15 00:20:37 +00:00
|
|
|
SF/lifanov-ports-distfiles/games/${PORTNAME}/:icons
|
2018-03-29 23:49:12 +00:00
|
|
|
DISTFILES+= ${PORTNAME}.png:icons \
|
|
|
|
cavestoryen.zip:data
|
|
|
|
EXTRACT_ONLY= ${DISTFILES:[2..3]:S/:data//}
|
2017-09-15 00:20:37 +00:00
|
|
|
|
|
|
|
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
|
2018-03-29 23:49:12 +00:00
|
|
|
LICENSE_DISTFILES_GPLv3= ${DISTFILES:[3]}
|
2017-09-15 00:20:37 +00:00
|
|
|
LICENSE_DISTFILES_FREEWARE= ${DISTFILES:[2]:S/:data//}
|
|
|
|
|
2018-06-03 12:44:04 +00:00
|
|
|
LIB_DEPENDS= libpng.so:graphics/png
|
2018-03-29 23:49:12 +00:00
|
|
|
|
|
|
|
USES= cmake:outsource compiler:c++11-lang
|
2018-10-15 00:13:06 +00:00
|
|
|
|
2018-03-29 23:49:12 +00:00
|
|
|
USE_SDL= mixer2 sdl2
|
2017-09-15 00:20:37 +00:00
|
|
|
SUB_FILES= ${PORTNAME}
|
2018-10-15 00:13:06 +00:00
|
|
|
CXXFLAGS+= -Wno-error-narrowing
|
2017-09-15 00:20:37 +00:00
|
|
|
|
2018-03-29 23:49:12 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_PROJECT= ${PORTNAME}-evo
|
2017-09-15 00:20:37 +00:00
|
|
|
|
2018-10-15 00:13:06 +00:00
|
|
|
DESKTOP_ENTRIES="NXEngine" "" "${PORTNAME}" \
|
|
|
|
"${PORTNAME}" "Game;AdventureGame;" ""
|
|
|
|
|
2017-09-15 00:20:37 +00:00
|
|
|
do-install:
|
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
2018-03-29 23:49:12 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/nx ${STAGEDIR}${DATADIR}
|
2017-09-15 00:20:37 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/nxengine ${STAGEDIR}${PREFIX}/bin
|
2018-03-29 23:49:12 +00:00
|
|
|
(cd ${WRKSRC}/data; ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/data)
|
2017-09-15 00:20:37 +00:00
|
|
|
(cd ${WRKDIR}/CaveStory; ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
|
|
|
|
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
|
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps
|
2018-03-29 23:49:12 +00:00
|
|
|
(cd ${STAGEDIR}${DATADIR}; ${WRKSRC}/bin/extract)
|
2017-09-15 00:20:37 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|