blob: 28f4fdeffa3e515004b9ba51af81e9ccb72290ad (
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
46
47
48
49
50
|
PORTNAME= brickout
PORTVERSION= 2002.06.09
CATEGORIES= games
MASTER_SITES= ftp://ftp.tuxpaint.org/unix/agenda/brickout/src/
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Ball-and-paddle game
WWW= http://www.newbreedsoftware.com/brickout/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING.txt
USES= localbase sdl
USE_SDL= sdl mixer
PORTDOCS= CHANGES.txt README.txt TODO.txt
PORTDATA= *
PLIST_FILES= bin/${PORTNAME} \
share/pixmaps/${PORTNAME}.png
DESKTOP_ENTRIES="Brickout" \
"" \
"${PORTNAME}" \
"${PORTNAME}" \
"Game;ArcadeGame;" \
""
OPTIONS_DEFINE= DOCS
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} \
-DIMAGEDIR=\"${DATADIR}/images-sdl/\" \
-DSOUNDDIR=\"${DATADIR}/sounds/\" \
-DMUSICDIR=\"${DATADIR}/music/\" \
-DUSE_SDL \
`sdl-config --cflags --libs` -lSDL_mixer \
-o ${PORTNAME} ${PORTNAME}.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
cd ${WRKSRC} && ${COPYTREE_SHARE} "images-sdl music sounds" ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
.endfor
.include <bsd.port.mk>
|