aboutsummaryrefslogtreecommitdiffstats
path: root/games/iceicepenguin/Makefile
blob: c4898d3c32d4e9aa7a612f7c83c94930736ace6c (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: nemysis <nemysis@gmx.ch>
# $FreeBSD$

PORTNAME=   iceicepenguin
PORTVERSION=    1.5.1
PORTREVISION=   3
CATEGORIES= games python
MASTER_SITES=   SF/${PORTNAME}/Default/Ice%20Ice%20Penguin/ \
        SF/nemysisfreebsdp/games/:icons
DISTFILES=  iip.${DISTVERSION}-final${EXTRACT_SUFX} \
        ${PORTNAME}_icons_1${EXTRACT_SUFX}:icons
DIST_SUBDIR=    python

MAINTAINER= nemysis@FreeBSD.org
COMMENT=    Remake of an old SEGA Dreamcast game called Chu Chu Rocket

LICENSE=    GPLv3

RUN_DEPENDS=    ${PYGAME}

WRKSRC=     ${WRKDIR}/"ice ice penguin"

USE_ZIP=    yes
USE_PYTHON= yes
NO_BUILD=   yes

PORTDOCS=   CHANGELOG.txt readme.txt

INSTALLS_ICONS= yes
ICON_SIZES= 32x32 48x48 64x64 72x72 96x96

SUB_FILES=  ${PORTNAME}

DESKTOP_ENTRIES="Ice Ice Penguin" "${COMMENT}" "${PORTNAME}" \
        "${PORTNAME}" "Game;ArcadeGame;" false

do-install:
    ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/

.for d in fonts gfx lvls menu sfx
    @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
.endfor
    ${INSTALL_SCRIPT} ${WRKSRC}/*.py ${STAGEDIR}${DATADIR}

.for s in ${ICON_SIZES}
    @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps
    ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \
        ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
.endfor
    ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
        ${STAGEDIR}${PREFIX}/share/pixmaps/

    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>