blob: ed687846127573c3bd8aafee811a531e33b8cef0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= agame
PORTVERSION= 1577
PORTREVISION= 12
CATEGORIES= games
MASTER_SITES= http://zevv.nl/play/code/game/ \
http://critical.ch/distfiles/ \
http://energy.critical.ch/distfiles/
DISTNAME= game-src-${PORTVERSION}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Simple Tetris-like game
LICENSE= GPLv2
USES= gmake tar:tgz
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>
|