freebsd-ports/games/robocode-naval/Makefile
Danilo G. Baio f8cc2c102f Update my email address
Approved by:	garga (mentor)
Differential Revision:	https://reviews.freebsd.org/D10648
2017-05-08 17:21:49 +00:00

53 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= robocode
PORTVERSION= 0.9.2
DISTVERSIONSUFFIX= -setup
CATEGORIES= games java
MASTER_SITES= SF/${PORTNAME}/naval-robocode/${PORTVERSION}
PKGNAMESUFFIX= -naval
EXTRACT_SUFX= .jar
DIST_SUBDIR= java
MAINTAINER= dbaio@FreeBSD.org
COMMENT= Game for learning Java[tm] programming language
LICENSE= EPL
PORTSCOUT= limit:^\d+\.\d+\.\d+$$
USES= dos2unix zip
DOS2UNIX_GLOB= *.css *.team *.properties package-list MANIFEST.MF
USE_JAVA= yes
JAVA_VERSION= 1.6+
JAVA_EXTRACT= yes
JAVA_RUN= yes
NO_WRKSUBDIR= yes
NO_BUILD= yes
DATADIR= ${JAVASHAREDIR}/${PORTNAME}${PKGNAMESUFFIX}
PLIST_SUB= PORTVERSION=${PORTVERSION}
SUB_FILES= ${PORTNAME}-NavalRobocode pkg-deinstall pkg-message
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-NavalRobocode \
${STAGEDIR}${PREFIX}/bin/
.for d in battles compilers javadoc libs license roborumble robots \
templates theme
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
.endfor
.for f in *.ico *.sh ReadMe.* naval-robocode-versions.md
@(${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR})
.endfor
${INSTALL_DATA} ${WRKSRC}/desktop/robocodeRobocode.desktop \
${STAGEDIR}${DESKTOPDIR}/robocodeNavalRobocode.desktop
${INSTALL_DATA} ${WRKSRC}/desktop/robocode.png \
${STAGEDIR}${PREFIX}/share/pixmaps/robocode-naval.png
@${MKDIR} ${STAGEDIR}${DATADIR}/config
.include <bsd.port.mk>