aboutsummaryrefslogtreecommitdiffstats
path: root/games/pengpong/Makefile
blob: 2844fb42db5a42c6c3cb476e512017d9ff9616ef (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
35
36
37
38
39
40
41
42
# 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
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

USE_SDL=    image sdl
NO_WRKSUBDIR=   yes
USE_PERL5_BUILD=yes

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

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>