1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/games/pengpong/Makefile

39 lines
924 B
Makefile

# Created by: Patrick Li <pat@databits.net>
# $FreeBSD$
PORTNAME= pengpong
PORTVERSION= 0.3
PORTREVISION= 10
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}-linux
MAINTAINER= ports@FreeBSD.org
COMMENT= A cross-platform pong game written in SDL
USES= perl5
USE_SDL= image sdl
NO_WRKSUBDIR= yes
USE_PERL5= build
DATAFILES= 24P_Copperplate_Blue.png ball.tga logo.jpg \
paddle.tga red.png
NO_STAGE= yes
pre-patch:
@${REINPLACE_CMD} -i '' -e 's|/usr/local/share/games/pengpong|${DATADIR}|' \
${WRKSRC}/files.h
@${REINPLACE_CMD} -i '' -e 's|V 0.2|V ${PORTVERSION}|' ${WRKSRC}/pengpong.cpp
do-install:
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
@${INSTALL_PROGRAM} ${WRKSRC}/pengpong ${PREFIX}/bin
.for files in ${DATAFILES}
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/${files} ${DATADIR}
.endfor
.include <bsd.port.mk>