aboutsummaryrefslogtreecommitdiffstats
path: root/games/zephulor/Makefile
blob: 256953695ef926b3e65ec58471f4b58e3e812e45 (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
54
55
56
# Created by: Alejandro Pulver <alejandro@varnet.biz>
# $FreeBSD$

PORTNAME=   zephulor
PORTVERSION=    1
PORTREVISION=   12
CATEGORIES= games
MASTER_SITES=   SF/apz/apz/stable/ \
        SF/nemysisfreebsdp/${CATEGORIES}/:icons
DISTFILES=  ${PORTNAME}-source${EXTRACT_SUFX} \
        ${PORTNAME}.png:icons
EXTRACT_ONLY=   ${PORTNAME}-source${EXTRACT_SUFX}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Side scrolling arcade game

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING.txt

RUN_DEPENDS=    ${PYGAME} \
        ${PYTHON_PKGNAMEPREFIX}tkinter>=0:x11-toolkits/py-tkinter@${PY_FLAVOR}

WRKSRC=     ${WRKDIR}/zephulor-source

USES=       python:2.7
NO_BUILD=   yes

PORTDOCS=   *

OPTIONS_DEFINE= DOCS

DESKTOP_ENTRIES="Adventures on Planet Zephulor" "" "${PORTNAME}" \
        "${PORTNAME}" "Game;ArcadeGame;" ""

SUB_FILES=  ${PORTNAME}

post-patch:
    @${REINPLACE_CMD} -e 's|#!.*python|#!${PYTHON_CMD}|' \
        ${WRKSRC}/*.py ${WRKSRC}/maptool/*.py
    @${FIND} ${WRKSRC} -name "*.bak" -delete

do-install:
    @${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
        ${WRKDIR}/${PORTNAME}
    ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
    @${MKDIR} ${STAGEDIR}${DATADIR}/maptool/
    ${INSTALL_SCRIPT} ${WRKSRC}/*.py ${STAGEDIR}${DATADIR}
    @(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR})
    ${INSTALL_SCRIPT} ${WRKSRC}/maptool/*.py ${STAGEDIR}${DATADIR}/maptool/
    ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
        ${STAGEDIR}${PREFIX}/share/pixmaps/
    cd ${WRKSRC} && ${COPYTREE_SHARE} \
        "README.txt manual.txt readme-*.txt maptool/manual.txt" \
        ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>