1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/games/beret/Makefile
Steve Wills 6e3b73e796 games/beret: create port
Beret is a 2D puzzle-platformer game about a scientist named Beret
who has gained telekinetic abilities through his research at the
Evil Corporation. He decides that the Evil Corporation is too evil
for his liking, and begins his solitary quest to overthrow the
corporation and punish the evil deeds of his employers.

Beret has:
- 21 puzzle-filled levels
- 120 collectable Medallions
- Over 20 hours of gameplay
- An unlockable level editor

WWW: http://kiwisauce.com/beret/

PR:		218516
Submitted by:	Alfonso S. Siciliano <alfix86@gmail.com>
2017-04-15 12:35:41 +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_MAN} ${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>