1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-07 02:06:57 +00:00
freebsd-ports/games/beret/Makefile
Alexey Dokuchaev a247b2f47d Do not abuse INSTALL_MAN when installing documentation, examples, and
other miscellaneous files that are not actually manual pages (part 2).
2018-01-11 14:18:01 +00:00

49 lines
1.2 KiB
Makefile

# Created by: Alfonso S. Siciliano <alfix86@gmail.com>
# $FreeBSD$
PORTNAME= beret
PORTVERSION= 1.2.1
DISTVERSIONPREFIX= v
CATEGORIES= games
MAINTAINER= alfix86@gmail.com
COMMENT= 2D puzzle-platformer game
LICENSE= LGPL3
RUN_DEPENDS= ${LOCALBASE}/share/fonts/averiagwf/AveriaSansGWF-Regular.ttf:x11-fonts/averiagwf
USE_GITHUB= yes
GH_ACCOUNT= alfonsosiciliano
GH_PROJECT= beret-freebsd
USE_SDL= sdl image ttf mixer
MAKEFILE= BSDmakefile
WORKINGSRC= ${WRKDIR}/${GH_PROJECT}-${PORTVERSION}
DATADIR= ${PREFIX}/share/${PORTNAME}
DESKTOP_ENTRIES="Beret" "" "beret" \
"beret" "" false
PORTDOCS= README.txt
FONT_DEP= AveriaSansGWF-Regular.ttf
FONTDIR_DEP= ${LOCALBASE}/share/fonts/averiagwf
post-patch:
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/game.c
do-install:
${INSTALL_PROGRAM} ${WORKINGSRC}/beret ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WORKINGSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
${MKDIR} ${STAGEDIR}${DATADIR}
.for datadir in images music rooms sfx
${MKDIR} ${STAGEDIR}${DATADIR}/${datadir}
cd ${WORKINGSRC}/${datadir} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/${datadir}
.endfor
cd ${STAGEDIR}${DATADIR} && ${LN} -s ${FONTDIR_DEP}/${FONT_DEP} ${FONT_DEP}
.include <bsd.port.mk>