mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
The following features have been added or changed: - Instead of USE_JAVA use USES=java. This defaults to USES=java:build,run if NO_BUILD is undefined. Else it defaults to USES=java:run - Instead of USE_ANT=yes use USES=java:ant which also implies USES=java:build - Instead of JAVA_BUILD=yes use USES=java:build. Does not imply run or extract - Instead of JAVA_EXTRACT=yes use USES=java:extract does not imply build or run - Instead of JAVA_RUN=yes use USES=java:run does not imply extract or build - Instead of USE_JAVA=<version> use USES=java and JAVA_VERSION=<version> Approved by: mat (portmgr), glewis Differential Revision: https://reviews.freebsd.org/D48201
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
PORTNAME= robocode
|
|
PORTVERSION= 1.9.5.2
|
|
CATEGORIES= games education java
|
|
MASTER_SITES= SF
|
|
DISTNAME= ${PORTNAME}-${DISTVERSION}-setup.jar
|
|
EXTRACT_SUFX= # empty
|
|
DIST_SUBDIR= java
|
|
|
|
MAINTAINER= dbaio@FreeBSD.org
|
|
COMMENT= Game for learning Java[tm] programming language
|
|
WWW= https://robocode.sourceforge.io/
|
|
|
|
LICENSE= EPL
|
|
LICENSE_FILE= ${WRKSRC}/license/epl-v10.html
|
|
|
|
USES= cpe dos2unix java:extract,run zip:infozip
|
|
CPE_VENDOR= ${PORTNAME}_project
|
|
DOS2UNIX_GLOB= *.css *.team *.properties package-list MANIFEST.MF
|
|
|
|
NO_WRKSUBDIR= yes
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
|
|
|
SUB_FILES= ${PORTNAME}-MeleeRumble ${PORTNAME}-RoboRumble \
|
|
${PORTNAME}-Robocode ${PORTNAME}-TeamRumble \
|
|
${PORTNAME}-TwinDuel pkg-message
|
|
|
|
do-install:
|
|
cd ${WRKDIR} && ${INSTALL_SCRIPT} ${SUB_FILES:Mrobocode-*} \
|
|
${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.* versions.md
|
|
@(${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR})
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/desktop/*.desktop ${STAGEDIR}${DESKTOPDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/desktop/*.png \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/config
|
|
|
|
.include <bsd.port.mk>
|