aboutsummaryrefslogtreecommitdiffstats
path: root/games/gondola/Makefile
blob: 80c93214b7f70cfeb101131dc2feeb3ed87e6957 (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
50
51
52
53
# New ports collection makefile for:    gondola
# Date created:     03 Apr 2009
# Whom:         Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   gondola
PORTVERSION=    1.1
PORTREVISION=   1
CATEGORIES= games
MASTER_SITES=   http://arcticpaint.com/static/gondola/downloads/ \
        http://mirror.amdmi3.ru/distfiles/
DISTNAME=   Gondola-${PORTVERSION}-src

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Create and optimize a distribution network of gondolas

RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}rabbyt>=0.8.1:${PORTSDIR}/graphics/py-rabbyt \
        ${PYTHON_PKGNAMEPREFIX}pyglet>=1.1:${PORTSDIR}/graphics/py-pyglet \
        avbin>=7:${PORTSDIR}/multimedia/avbin

USE_ZIP=    yes
USE_PYTHON= 2.5+
NO_BUILD=   yes

SUB_FILES=  ${PORTNAME}
SUB_LIST=   PROGRAM_DIR="${PREFIX}/lib/${PORTNAME}"

WRKSRC=     ${WRKDIR}/Gondola-${PORTVERSION}

DESKTOP_ENTRIES="Gondola" \
        "Create and optimize a distribution network of gondolas" \
        "" \
        "gondola" \
        "Game;StrategyGame;" \
        false

post-patch:
    @${REINPLACE_CMD} -e 's|data/|${DATADIR}/|g' ${WRKSRC}/gamelib/*.py
    @${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' \
        ${WRKSRC}/gamelib/data.py ${WRKSRC}/gamelib/main.py
    @${RM} -f ${WRKSRC}/gamelib/*.{bak,orig}

do-install:
    ${MKDIR} ${PREFIX}/lib/${PORTNAME}
    cd ${WRKSRC} && ${COPYTREE_SHARE} "snowui gamelib simplejson run_game.py" \
        ${PREFIX}/lib/${PORTNAME}
    ${MKDIR} ${DATADIR}
    cd ${WRKSRC}/data && ${COPYTREE_SHARE} '*' ${DATADIR}
    ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin

.include <bsd.port.mk>