e8ecbea97b
PR: ports/170368 Submitted by: Rodrigo OSORIO <rodrigo@bebik.net>
56 lines
1.1 KiB
Makefile
56 lines
1.1 KiB
Makefile
# New ports collection makefile for: agame
|
|
# Date created: 30 Jul 2006
|
|
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= agame
|
|
PORTVERSION= 1577
|
|
PORTREVISION= 10
|
|
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
|
|
|
|
USE_SDL= sdl image mixer
|
|
USE_GMAKE= yes
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
WRKSRC= ${WRKDIR}/game
|
|
|
|
PORTDOCS= README.TXT
|
|
|
|
DESKTOP_ENTRIES="game" \
|
|
"A simple tetris-like game" \
|
|
"${DATADIR}/img/icon.png" \
|
|
"game" \
|
|
"Game;BlocksGame;" \
|
|
false
|
|
|
|
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>
|