aboutsummaryrefslogtreecommitdiffstats
path: root/games/robocode/Makefile
blob: 5d9be2ee98beeaeaca8b874266b84b916dc25dbc (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
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$

PORTNAME=   robocode
PORTVERSION=    1.8.1.0
CATEGORIES= games java
MASTER_SITES=   SF \
        SF/nemysisfreebsdp/:icons
DISTFILES=  ${PORTNAME}-${DISTVERSION}-setup.jar \
        ${PORTNAME}.png:icons
DIST_SUBDIR=    java
EXTRACT_ONLY=   ${PORTNAME}-${DISTVERSION}-setup.jar

MAINTAINER= nemysis@gmx.ch
COMMENT=    Game for learning Java[tm] programming language

LICENSE=    EPL

USE_ZIP=    yes
USE_JAVA=   yes
JAVA_VERSION=   1.6+
JAVA_EXTRACT=   yes
JAVA_RUN=   yes
NO_WRKSUBDIR=   yes
NO_BUILD=   yes

PORTDOCS=   ReadMe.html ReadMe.txt versions.md
DATADIR=    ${JAVASHAREDIR}/${PORTNAME}

PLIST_SUB=  PORTVERSION=${PORTVERSION}

SUB_FILES=  ${PORTNAME}.sh pkg-message

DESKTOP_ENTRIES="Robocode" "${COMMENT}" "${PORTNAME}" \
        "${PORTNAME}" "Game;StrategyGame;" false

.include <bsd.port.options.mk>

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

.for d in battles compilers javadoc libs license roborumble robots templates
    @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
.endfor

.for d in *.ico *.sh versions.md
    @(${INSTALL_DATA} ${WRKSRC}/${d} ${DATADIR})
.endfor

post-install:
    ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${PREFIX}/share/pixmaps/
    ${MKDIR} -m a+rwx ${DATADIR}/config

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

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

.include <bsd.port.mk>