1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/games/nxengine/Makefile

51 lines
1.5 KiB
Makefile
Raw Normal View History

# $FreeBSD$
PORTNAME= nxengine
PORTVERSION= 2.6.3
DISTVERSIONPREFIX= v
PORTREVISION= 2
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//}
2018-06-03 12:44:04 +00:00
LIB_DEPENDS= libpng.so:graphics/png
USES= cmake:outsource compiler:c++11-lang
USE_SDL= mixer2 sdl2
SUB_FILES= ${PORTNAME}
CXXFLAGS+= -Wno-error-narrowing
USE_GITHUB= yes
GH_PROJECT= ${PORTNAME}-evo
DESKTOP_ENTRIES="NXEngine" "" "${PORTNAME}" \
"${PORTNAME}" "Game;AdventureGame;" ""
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>