aboutsummaryrefslogtreecommitdiffstats
path: root/games/domination/Makefile
blob: 02f5a68ef5b033cc4c0a45a2c146b7c1017eebf7 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Created by: nemysis <nemysis@gmx.ch>
# $FreeBSD$

PORTNAME=   domination
PORTVERSION=    1.1.1.5
CATEGORIES= games java
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME:S/d/D/}/${PORTVERSION}/:game  \
        http://domination.sourceforge.net/maps/
DISTFILES=  ${PORTNAME:S/d/D/}_${DISTVERSION}${EXTRACT_SUFX}:game \
        ${MAPS:S/$/.zip/}
DIST_SUBDIR=    ${PORTNAME}
EXTRACT_ONLY=   ${PORTNAME:S/d/D/}_${DISTVERSION}${EXTRACT_SUFX}

MAINTAINER= nemysis@FreeBSD.org
COMMENT=    Board game that is a bit like the well known game Risk

LICENSE=    GPLv3

FETCH_ARGS?=    -Fpr
USE_ZIP=    yes
USE_JAVA=   yes
JAVA_VERSION=   1.6+
NO_BUILD=   yes

WRKSRC=     ${WRKDIR}/${PORTNAME:S/d/D/}

# Please contact the MAINTAINER if a Map is missing
MAPS=       solar bigeurope google europass europe artic sudamerica \
        MiddleEast-Qatar kosova Falkland-Islands england sw_baltic \
        spain swiss france austria austria-hungary eire haiti brasil \
        benelux canada germany northeurope germany1871 Deutsches_Reich_1871 \
        eesti estonia mexico serbia fletzmap greece North_of_Italy \
        bayern berlin navarra Illes_Balears calw wuppertal kerzell \
        ennepe-ruhr-kreis cologne saarland andorra catalunya astadt \
        dortmund rio_de_janeiro caribbean Nuremberg_Public_Transit \
        discworld aztec GTA_SAN_AN middleearth LOTR2 wow randland \
        Riskopoly SuperRiskopoly trivia chutes sudoku conquest \
        chrono_trigger startrek usa8 civilwar usa hawaii ohio nyc \
        zertina fortress estlandr periodictable sylsia troisdorf \
        wolken castle naerr cow westfalenhalle union rub gymnasium \
        simpsons_world simpsons germany2

PORTDOCS=   ChangeLog.txt ReadMe.txt commands.txt todo.txt
DATADIR=    ${JAVASHAREDIR}/${PORTNAME}

SUB_FILES=  ${PORTNAME}-FlashGUI \
        ${PORTNAME}-Increment1GUI \
        ${PORTNAME}-SimpleGUI \
        ${PORTNAME}-SwingGUI

DESKTOP_ENTRIES="Domination" "${COMMENT}" "${PORTNAME}" \
        "${PORTNAME}-SwingGUI" "Game;StrategyGame;" false

OPTIONS_DEFINE= DOCS

NO_STAGE=   yes
.include <bsd.port.options.mk>

post-extract-script:
.for f in ${MAPS:S/$/.zip/}
    @${UNZIP_CMD} -qo -d ${WRKSRC}/maps ${_DISTDIR}/${f}
.endfor

do-install:
    @(cd ${WRKSRC} && ${COPYTREE_SHARE} "help lib maps resources saves *.jar *.cmd *.htm *.txt *.ini" ${DATADIR})
    ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-* ${PREFIX}/bin
    @(cd ${WRKSRC} && ${INSTALL_SCRIPT} *.sh ${DATADIR})
    @(cd ${DATADIR} && ${CHMOD} 774 saves)
    ${LN} -sf ${DATADIR}/resources/icon.png ${PREFIX}/share/pixmaps/${PORTNAME}.png

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

.include <bsd.port.mk>