aboutsummaryrefslogtreecommitdiffstats
path: root/games/zatacka/Makefile
blob: 7058b44c48ccd7fc5031a5257e9f64fa21848e95 (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
47
48
49
# New ports collection makefile for:    zatacka
# Date created:     26 Mar 2006
# Whom:         Dmitry Marakasov <amdmi3@mail.ru>
#
# $FreeBSD$
#

PORTNAME=   zatacka
PORTVERSION=    0.1.4
CATEGORIES= games
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   ${PORTNAME}-${PORTVERSION}_src

MAINTAINER= amdmi3@mail.ru
COMMENT=    Nibbles-like multiplayer game

USE_SDL=    sdl ttf image
USE_GMAKE=  yes

WRKSRC=     ${WRKDIR}/zatacka
MAKE_ARGS=  CXX=${CXX}

PORTDOCS=   README

post-patch:
    @${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -e 's|font.ttf|${DATADIR}/font.ttf|' ${WRKSRC}/fx.h
    @${REINPLACE_CMD} -e 's|SDL/|SDL11/|' ${WRKSRC}/SDL_prim.h \
        ${WRKSRC}/fx.h
    @${REINPLACE_CMD} -e 's|barrier.jpg|${DATADIR}/barrier.jpg|' \
        ${WRKSRC}/fx.cpp
    @${REINPLACE_CMD} -e 's|main_screen.jpg|${DATADIR}/main_screen.jpg|' \
        ${WRKSRC}/fx.cpp

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    ${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/main_screen.jpg ${WRKSRC}/barrier.jpg \
        ${WRKSRC}/font.ttf ${DATADIR}

.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>