2001-09-03 12:31:09 -04:00
|
|
|
# New ports collection makefile for: pengpong
|
|
|
|
# Date created: Fri Aug 24 18:21:25 EDT 2001
|
|
|
|
# Whom: Patrick Li <pat@databits.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pengpong
|
2001-09-04 19:38:57 -04:00
|
|
|
PORTVERSION= 0.3
|
2001-09-03 12:31:09 -04:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
2001-11-14 22:59:42 -05:00
|
|
|
MAINTAINER= pat@FreeBSD.org
|
2001-09-03 12:31:09 -04:00
|
|
|
|
|
|
|
LIB_DEPENDS= SDL_image.10:${PORTSDIR}/graphics/sdl_image
|
|
|
|
|
|
|
|
SDL_CONFIG= ${LOCALBASE}/bin/sdl11-config
|
|
|
|
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
MAKE_ENV= SDL_CONFIG="${SDL_CONFIG}"
|
|
|
|
|
2001-09-04 19:38:57 -04:00
|
|
|
DATAFILES= 24P_Copperplate_Blue.png ball.tga logo.jpg \
|
|
|
|
paddle.tga red.png
|
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
@${PERL} -pi.orig -e \
|
|
|
|
's|/usr/local/share/games/pengpong|${DATADIR}|' \
|
|
|
|
${WRKSRC}/files.h
|
|
|
|
@${PERL} -pi.orig -e 's|0.2|${PORTVERSION}|' \
|
|
|
|
${WRKSRC}/pengpong.cpp
|
|
|
|
|
2001-09-03 12:31:09 -04:00
|
|
|
do-install:
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/pengpong ${PREFIX}/bin
|
2001-09-04 19:38:57 -04:00
|
|
|
.for files in ${DATAFILES}
|
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${files} ${DATADIR}
|
|
|
|
.endfor
|
2001-09-03 12:31:09 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|