1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/games/agame/Makefile
Dmitry Marakasov 48054570bb - Support staging
- Convert USE_GMAKE to USES
2013-12-20 17:10:47 +00:00

47 lines
999 B
Makefile

# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= agame
PORTVERSION= 1577
PORTREVISION= 11
CATEGORIES= games
MASTER_SITES= http://zevv.nl/play/code/game/ \
http://critical.ch/distfiles/ \
http://energy.critical.ch/distfiles/
DISTNAME= game-src-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Simple Tetris-like game
LICENSE= GPLv2
USES= gmake
USE_SDL= sdl image mixer
WRKSRC= ${WRKDIR}/game
PLIST_FILES= bin/game
PORTDOCS= *
PORTDATA= *
DESKTOP_ENTRIES="game" \
"A simple tetris-like game" \
"${DATADIR}/img/icon.png" \
"game" \
"Game;BlocksGame;" \
false
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -Ee 's,wav/|mp3/|img/,${DATADIR}/&,g' ${WRKSRC}/main.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/game ${STAGEDIR}${PREFIX}/bin/
cd ${WRKSRC} && ${COPYTREE_SHARE} "wav mp3 img" ${STAGEDIR}${DATADIR}/
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.TXT ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>