2013-05-23 04:04:46 +02:00
|
|
|
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
2006-08-02 11:13:33 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= agame
|
|
|
|
PORTVERSION= 1577
|
2013-01-23 16:00:18 +01:00
|
|
|
PORTREVISION= 11
|
2006-08-02 11:13:33 +02:00
|
|
|
CATEGORIES= games
|
2009-09-11 23:57:40 +02:00
|
|
|
MASTER_SITES= http://zevv.nl/play/code/game/ \
|
2006-08-02 11:13:33 +02:00
|
|
|
http://critical.ch/distfiles/ \
|
|
|
|
http://energy.critical.ch/distfiles/
|
|
|
|
DISTNAME= game-src-${PORTVERSION}
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2008-06-19 19:28:24 +02:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2012-07-29 13:17:02 +02:00
|
|
|
COMMENT= Simple Tetris-like game
|
2006-08-02 11:13:33 +02:00
|
|
|
|
2011-12-14 22:29:16 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-12-20 18:10:47 +01:00
|
|
|
USES= gmake
|
2006-08-02 11:13:33 +02:00
|
|
|
USE_SDL= sdl image mixer
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/game
|
|
|
|
|
2013-12-20 18:10:47 +01:00
|
|
|
PLIST_FILES= bin/game
|
|
|
|
PORTDOCS= *
|
|
|
|
PORTDATA= *
|
2006-08-02 11:13:33 +02:00
|
|
|
|
2009-09-11 23:57:40 +02:00
|
|
|
DESKTOP_ENTRIES="game" \
|
|
|
|
"A simple tetris-like game" \
|
|
|
|
"${DATADIR}/img/icon.png" \
|
|
|
|
"game" \
|
|
|
|
"Game;BlocksGame;" \
|
|
|
|
false
|
|
|
|
|
2013-12-20 18:10:47 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2013-05-23 04:04:46 +02:00
|
|
|
|
2006-08-02 11:13:33 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -Ee 's,wav/|mp3/|img/,${DATADIR}/&,g' ${WRKSRC}/main.c
|
|
|
|
|
|
|
|
do-install:
|
2013-12-20 18:10:47 +01:00
|
|
|
${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}/
|
2006-08-02 11:13:33 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|