summaryrefslogtreecommitdiffstats
path: root/games/bugsquish/Makefile
blob: 599de330f31422b9ec8cfe9ccd7e8c89608ac96c (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
# Created by: Adam Weinberger <adamw@FreeBSD.org>
# $FreeBSD$

PORTNAME=	bugsquish
PORTVERSION=	0.0.6
PORTREVISION=	10
CATEGORIES=	games
MASTER_SITES=	ftp://ftp.tuxpaint.org/unix/x/bugsquish/src/ \
		ftp://ftp.billsgames.com/unix/x/bugsquish/src/

MAINTAINER=	nemysis@gmx.ch
COMMENT=	Action game not unlike light gun arcade games

LICENSE=	GPLv2

USE_SDL=	image mixer sdl
USE_GMAKE=	yes

PORTDOCS=	AUTHORS.txt CHANGES.txt README.txt TODO.txt

DESKTOP_ENTRIES="Bug Squish" "${COMMENT}" "${PORTNAME}" \
		"${PORTNAME}" "Game;ArcadeGame;" false

NO_STAGE=	yes
.include <bsd.port.options.mk>

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/share/bugsquish/|${DATADIR}/|' ${WRKSRC}/Makefile
	@${REINPLACE_CMD} -e 's|CFLAGS=-Wall -O2|CFLAGS+=|' \
	-e 's|SDL_CFLAGS :=|SDL_CFLAGS+=|' \
	-e 's|SDL_LDFLAGS :=|SDL_LDFLAGS+=|' ${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/

.  for d in embedded images music sounds
	@(cd ${WRKSRC}/data && ${COPYTREE_SHARE} ${d} ${DATADIR})
.  endfor

	${LN} -sf ${PREFIX}/share/bugsquish/embedded/images/icon.png ${PREFIX}/share/pixmaps/${PORTNAME}.png

.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud