blob: c25ee5d9ba1cf39186ebb14d3b14ba88fedd4e7b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# $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//}
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>
|