aboutsummaryrefslogtreecommitdiff
path: root/games/rockdodger/Makefile
blob: 4bf901ad02b8432cecb8fe42196d9cb756383667 (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
# New ports collection makefile for:	Rock Dodger
# Date created:				02 Dec 2002
# Whom:					Neil Blakey-Milner <nbm@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	rockdodger
PORTVERSION=	0.6.0a
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	spacerocks

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Addictive rock-dodging greeblie-killing platform game

USE_SDL=	mixer image sdl
USE_GMAKE=	yes

GAMESDIR?=	/var/games

pre-patch:
	@${REINPLACE_CMD} \
		-e "s%/usr/share/rockdodger/.highscore%${GAMESDIR}/rockdodger.highscore%" \
		-e "s%/usr/share/rockdodger%${PREFIX}/share/rockdodger%" \
		-e "s%/usr/games%${PREFIX}/bin%" \
		-e "s%data/\*.{bmp,png,wav,mod}%data/*%" \
		${WRKSRC}/Makefile ${WRKSRC}/main.c
	@cd ${WRKSRC} && ${REINPLACE_CMD} -e "s%#include <SDL/%#include <%" SFont.c SFont.h main.c sound.c

pre-install:
	@${MKDIR} ${GAMESDIR}

.include <bsd.port.mk>