aboutsummaryrefslogtreecommitdiffstats
path: root/games/robocode/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/robocode/Makefile')
-rw-r--r--games/robocode/Makefile62
1 files changed, 41 insertions, 21 deletions
diff --git a/games/robocode/Makefile b/games/robocode/Makefile
index 02e0b3647f54..aff9a0b0a1e5 100644
--- a/games/robocode/Makefile
+++ b/games/robocode/Makefile
@@ -2,43 +2,63 @@
# $FreeBSD$
PORTNAME= robocode
-PORTVERSION= 1.7.4.2
+PORTVERSION= 1.8.0.0
CATEGORIES= games java
-MASTER_SITES= SF
-DISTNAME= ${PORTNAME}-${PORTVERSION}-setup
-EXTRACT_SUFX= .jar
+MASTER_SITES= SF \
+ SF/nemysisfreebsdp/:icons
+DISTFILES= ${PORTNAME}-${DISTVERSION}-setup.jar \
+ ${PORTNAME}.png:icons
+DIST_SUBDIR= java
+EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}-setup.jar
-MAINTAINER= ports@FreeBSD.org
-COMMENT= A game for learning Java[tm] programming language
+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_VERSION= 1.5+
JAVA_EXTRACT= yes
JAVA_RUN= yes
-
-DATADIR= ${JAVASHAREDIR}/${PORTNAME}
-
-USE_ZIP= yes
NO_WRKSUBDIR= yes
NO_BUILD= yes
-INSTFILES= battles javadoc license robocode.ico \
- libs robots templates versions.txt
+PORTDOCS= ReadMe.html ReadMe.txt versions.md
+DATADIR= ${JAVASHAREDIR}/${PORTNAME}
+
PLIST_SUB= PORTVERSION=${PORTVERSION}
-SUB_FILES= ${PORTNAME}.sh
+SUB_FILES= ${PORTNAME}.sh pkg-message
+
+DESKTOP_ENTRIES="Robocode" "${COMMENT}" \
+ "${PREFIX}/share/pixmaps/${PORTNAME}.png" \
+ "${PORTNAME}" "Game;StrategyGame;" false
+
+.include <bsd.port.options.mk>
do-install:
- @cd ${WRKSRC} && \
- ${FIND} ${INSTFILES} -type d -exec ${MKDIR} ${DATADIR}/{} \;
- @cd ${WRKSRC} && \
- ${FIND} ${INSTFILES} -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
- @${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
+ ${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:
- ${MKDIR} -m a+rwx ${DATADIR}/compilers ${DATADIR}/config
- ${CAT} pkg-message
+ ${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>