aboutsummaryrefslogtreecommitdiffstats
path: root/games/kye/Makefile
blob: 6d3d5cee0a5cb827ace975655f7d09a4bd8fa5c5 (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
57
58
59
60
# Created By: nemysis@gmx.ch
# $FreeBSD$

PORTNAME=   kye
PORTVERSION=    1.0
PORTREVISION=   3
CATEGORIES= games python
MASTER_SITES=   http://games.moria.org.uk/kye/download/ \
        SF/nemysisfreebsdp/kye/:nemysis
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
# Selection of production-ready/well-known Kye Levels
# (ziped Levels already included from games.moria.org.uk are excluded)
# Please contact the MAINTAINER if a Level is missing
DISTFILES=  ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
        kye-data_moria_levels.20121101.tar.gz:nemysis \
        kye-data_nuke_levels.20121101.tar.gz:nemysis \
        kye-data_extra_levels.20120818.tar.gz:nemysis
DIST_SUBDIR=    kye

MAINTAINER= nemysis@gmx.ch
COMMENT=    Puzzle game with arcade game elements

LICENSE=    GPLv2

USE_GNOME=  pygtk2 librsvg2
USE_PYTHON= yes
USE_PYDISTUTILS=    yes
NO_BUILD=   yes

PORTDATA=   *
PORTDOCS=   NEWS README

SUB_FILES=  pkg-message

DESKTOP_ENTRIES="Python Kye" "${COMMENT}" "Kye" \
        "Kye" "Game;LogicGame;" ${FALSE}

.include <bsd.port.options.mk>

post-extract-script:
    ${MKDIR} ${WRKDIR}/${PORTNAME}
.for l in kye-data_moria_levels.20121101.tar.gz kye-data_nuke_levels.20121101.tar.gz kye-data_extra_levels.20120818.tar.gz
    ${TAR} xfjp ${DISTDIR}/${DIST_SUBDIR}/${l} -C ${WRKDIR}/${PORTNAME}
.endfor

post-install:
    ${INSTALL_DATA} ${WRKSRC}/kye-icon.png ${PREFIX}/share/pixmaps/Kye.png
    ${INSTALL_DATA} ${WRKSRC}/kye-edit-icon.png ${PREFIX}/share/pixmaps/Kye-edit.png
    @cd ${WRKDIR}/${PORTNAME} && ${COPYTREE_SHARE} \* ${DATADIR}

.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif

    @${ECHO_CMD}
    @${CAT} ${PKGMESSAGE}
    @${ECHO_CMD}

.include <bsd.port.mk>