blob: adadef2ba9fd2be6bc9a29217c64f22b10c65e06 (
plain)
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
51
52
53
54
55
56
57
58
|
# Created by: Adam Weinberger <adamw@FreeBSD.org>
# $FreeBSD$
PORTNAME= bugsquish
PORTVERSION= 0.0.6
PORTREVISION= 13
CATEGORIES= games
MASTER_SITES= ftp://ftp.tuxpaint.org/unix/x/bugsquish/src/ \
SF/nemysisfreebsdp/${CATEGORIES}/${PORTNAME}/:music
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}_music${EXTRACT_SUFX}:music
MAINTAINER= ports@FreeBSD.org
COMMENT= Action game not unlike light gun arcade games
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING.txt
LIB_DEPENDS= libogg.so:audio/libogg
USES= gmake
USE_SDL= image mixer sdl
PORTDOCS= AUTHORS.txt CHANGES.txt README.txt
OPTIONS_DEFINE= DOCS
DESKTOP_ENTRIES="Bug Squish" "" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ""
post-extract:
${TAR} xfjp ${_DISTDIR}/${PORTNAME}_music${EXTRACT_SUFX} -C \
${WRKSRC}/data/music/
@cd ${WRKSRC}/data/music ; ${RM} -f *.mod
@${FIND} ${WRKDIR} -name .xvpics | ${XARGS} ${RM} -fr
post-patch:
@${REINPLACE_CMD} -e 's|/usr/share/bugsquish/|${DATADIR}/| ; \
s|CFLAGS=-Wall -O2|CFLAGS+=| ; \
s|SDL_CFLAGS :=|SDL_CFLAGS+=| ; \
s|SDL_LDFLAGS :=|SDL_LDFLAGS+=|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|corpses.mod|corpses.ogg| ; \
s|adventures.mod|adventures.ogg|' \
${WRKSRC}/bugsquish.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
. for d in embedded images music sounds
@(cd ${WRKSRC}/data && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
. endfor
${LN} -sf ${PREFIX}/share/bugsquish/images/icon.png \
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|