2006-08-02 09:13:33 +00:00
|
|
|
# New ports collection makefile for: agame
|
|
|
|
# Date created: 30 Jul 2006
|
2006-12-21 20:41:33 +00:00
|
|
|
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
2006-08-02 09:13:33 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= agame
|
|
|
|
PORTVERSION= 1577
|
2008-03-13 14:28:35 +00:00
|
|
|
PORTREVISION= 3
|
2006-08-02 09:13:33 +00:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://zevv.nl/code/game/ \
|
|
|
|
http://critical.ch/distfiles/ \
|
|
|
|
http://energy.critical.ch/distfiles/
|
|
|
|
DISTNAME= game-src-${PORTVERSION}
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2008-06-19 17:28:24 +00:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2006-08-02 09:13:33 +00:00
|
|
|
COMMENT= A simple tetris-like game
|
|
|
|
|
|
|
|
USE_SDL= sdl image mixer
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/game
|
|
|
|
|
|
|
|
PORTDOCS= README.TXT
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -Ee 's,wav/|mp3/|img/,${DATADIR}/&,g' ${WRKSRC}/main.c
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/game ${PREFIX}/bin
|
|
|
|
.for dir in wav mp3 img
|
|
|
|
${MKDIR} ${DATADIR}/${dir}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${dir}/* ${DATADIR}/${dir}/
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
post-install:
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for f in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|