2017-04-15 14:35:41 +02:00
|
|
|
PORTNAME= beret
|
|
|
|
PORTVERSION= 1.2.1
|
|
|
|
CATEGORIES= games
|
|
|
|
|
|
|
|
MAINTAINER= alfix86@gmail.com
|
|
|
|
COMMENT= 2D puzzle-platformer game
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://kiwisauce.com/beret/
|
2017-04-15 14:35:41 +02:00
|
|
|
|
|
|
|
LICENSE= LGPL3
|
2019-06-08 02:46:36 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/lgpl-3.0.txt
|
2017-04-15 14:35:41 +02:00
|
|
|
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/fonts/averiagwf/AveriaSansGWF-Regular.ttf:x11-fonts/averiagwf
|
|
|
|
|
2019-06-08 02:46:36 +02:00
|
|
|
USES= sdl
|
|
|
|
USE_SDL= image ttf mixer
|
2017-04-15 14:35:41 +02:00
|
|
|
|
|
|
|
MAKEFILE= BSDmakefile
|
|
|
|
|
2019-06-08 02:46:36 +02:00
|
|
|
USE_GITLAB= yes
|
|
|
|
GL_ACCOUNT= alfix
|
|
|
|
GL_PROJECT= ${PORTNAME}-freebsd
|
|
|
|
GL_COMMIT= ab3c397400be60ce69903389727acf6cdf0a3119
|
|
|
|
|
2017-04-15 14:35:41 +02:00
|
|
|
DATADIR= ${PREFIX}/share/${PORTNAME}
|
|
|
|
|
2019-06-08 02:46:36 +02:00
|
|
|
DESKTOP_ENTRIES= "Beret" \
|
|
|
|
"2D puzzle-platformer" \
|
|
|
|
"" \
|
|
|
|
"beret" \
|
|
|
|
"Game;" \
|
|
|
|
false
|
2017-04-15 14:35:41 +02:00
|
|
|
|
|
|
|
PORTDOCS= README.txt
|
|
|
|
|
|
|
|
FONT_DEP= AveriaSansGWF-Regular.ttf
|
|
|
|
FONTDIR_DEP= ${LOCALBASE}/share/fonts/averiagwf
|
|
|
|
|
2018-09-10 15:14:50 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2017-04-15 14:35:41 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/game.c
|
|
|
|
|
|
|
|
do-install:
|
2019-06-08 02:46:36 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/beret ${STAGEDIR}${PREFIX}/bin
|
2017-04-15 14:35:41 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2019-06-08 02:46:36 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
2017-04-15 14:35:41 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
.for datadir in images music rooms sfx
|
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/${datadir}
|
2019-06-08 02:46:36 +02:00
|
|
|
cd ${WRKSRC}/${datadir} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/${datadir}
|
2017-04-15 14:35:41 +02:00
|
|
|
.endfor
|
|
|
|
cd ${STAGEDIR}${DATADIR} && ${LN} -s ${FONTDIR_DEP}/${FONT_DEP} ${FONT_DEP}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|