# Created by: Dmitry Marakasov # $FreeBSD$ PORTNAME= brickshooter PORTVERSION= 0.04 PORTREVISION= 6 CATEGORIES= games MASTER_SITES= http://bilious.homelinux.org/~paxed/brickshooter/ \ http://mirror.amdmi3.ru/distfiles/ MAINTAINER= amdmi3@FreeBSD.org COMMENT= Push blocks on to the playing field, match block colors to remove them USE_SDL= sdl mixer image PORTDOCS= * .include post-patch: .for dir in gfx levels snd @${REINPLACE_CMD} -e 's|${dir}/|${DATADIR}/&|g' ${WRKSRC}/${PORTNAME}.c .endfor do-build: cd ${WRKSRC} && ${CC} ${CFLAGS} -o ${PORTNAME} ${PORTNAME}.c \ `${SDL_CONFIG} --libs --cflags` -lSDL_image -lSDL_mixer do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin .for dir in gfx levels snd ${MKDIR} ${DATADIR}/${dir} ${INSTALL_DATA} ${WRKSRC}/${dir}/* ${DATADIR}/${dir} .endfor .if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif .include