mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
32 lines
818 B
Makefile
32 lines
818 B
Makefile
# Created by: Neil Blakey-Milner <nbm@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= rockdodger
|
|
PORTVERSION= 0.6.0a
|
|
PORTREVISION= 6
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/spacerocks/spacerocks/${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Addictive rock-dodging greeblie-killing platform game
|
|
|
|
USE_SDL= mixer image sdl
|
|
USE_GMAKE= yes
|
|
|
|
GAMESDIR?= /var/games
|
|
|
|
NO_STAGE= yes
|
|
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>
|