aboutsummaryrefslogtreecommitdiffstats
path: root/games/rescue/Makefile
blob: 0e1aa7e6a2c014a22ee57061f0e91a77766cbfde (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
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$

PORTNAME=   rescue
PORTVERSION=    1.0.0.3
CATEGORIES= games java
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME:S/r/R/}%21%20Max/${PORTVERSION}/
DISTNAME=   ${PORTNAME:S/r/R/}_${PORTVERSION}
DIST_SUBDIR=    java

MAINTAINER= ports@FreeBSD.org
COMMENT=    Action adventure in Space

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/gpl.txt

USES=       dos2unix zip:infozip
DOS2UNIX_GLOB=  *.txt *.htm *.css *.ini *.xml
USE_JAVA=   yes
JAVA_VERSION=   1.6+
NO_BUILD=   yes

WRKSRC=     ${WRKDIR}/${PORTNAME:S/r/R/}

DATADIR=    ${JAVASHAREDIR}/${PORTNAME}

PORTDOCS=   ChangeLog.txt
OPTIONS_DEFINE= DOCS

SUB_FILES=  ${PORTNAME}

DESKTOP_ENTRIES="Rescue! Max" "" "${PORTNAME}" \
        "${PORTNAME}" "Game;StrategyGame;" ""

post-extract:
    @(cd ${WRKSRC} && ${UNZIP_CMD} -j Rescue.jar rescue/gui/logo.png)

do-install:
    ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
.for d in help lib missions *.jar
    @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
.endfor
    ${INSTALL_DATA} ${WRKSRC}/logo.png \
        ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png

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

.include <bsd.port.mk>