aboutsummaryrefslogtreecommitdiffstats
path: root/games/tuxpuck/Makefile
blob: 66d4cc7cdb2d38d2bb06eb3300d3373809381691 (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
43
44
45
46
# Created by: Jan Stocker <Jan.Stocker@t-online.de>
# $FreeBSD$

PORTNAME=   tuxpuck
PORTVERSION=    0.8.2
PORTREVISION=   23
CATEGORIES= games
MASTER_SITES=   # disappeared

MAINTAINER= ports@FreeBSD.org
COMMENT=    Shufflepuck Cafe Clone

LICENSE=    GPLv2

DEPRECATED= Mastersite disappeared
EXPIRATION_DATE=    2018-03-01

LIB_DEPENDS=    libpng.so:graphics/png \
        libogg.so:audio/libogg \
        libvorbis.so:audio/libvorbis \
        libfreetype.so:print/freetype2

USES=       gmake jpeg
USE_SDL=    sdl
ALL_TARGET= ${PORTNAME}
MAKE_JOBS_UNSAFE=   yes

PLIST_FILES=    bin/${PORTNAME} man/man6/tuxpuck.6.gz

post-patch:
.for i in intro.c timer.c tuxpuck.c tuxpuck.h video.c
    @${REINPLACE_CMD} -e \
        's|timer_create|_timer_create|g' ${WRKSRC}/${i}
.endfor
.for i in data utils
    @${REINPLACE_CMD} -e \
        's|^CC|#CC| ; \
         s|^CFLAGS|#CFLAGS| ; \
         s|sdl-config|$$(SDL_CONFIG)|' ${WRKSRC}/${i}/Makefile
.endfor

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/man/tuxpuck.6.gz ${STAGEDIR}${MAN6PREFIX}/man/man6

.include <bsd.port.mk>