1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Add robocode 0.95, a game for learning Java[tm] programming language.

This commit is contained in:
Maxim Sobolev 2001-09-10 09:57:46 +00:00
parent f213143e00
commit 6fc8ee148e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=47600
8 changed files with 253 additions and 0 deletions

View File

@ -205,6 +205,7 @@
SUBDIR += qstat
SUBDIR += quakeforge
SUBDIR += quakeserver
SUBDIR += robocode
SUBDIR += rocksndiamonds
SUBDIR += rollemup
SUBDIR += rt2-demo

50
games/robocode/Makefile Normal file
View File

@ -0,0 +1,50 @@
# New ports collection makefile for: robocode
# Date created: 10 September 2001
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= robocode
PORTVERSION= 0.95
CATEGORIES= games java
MASTER_SITES= ftp://paladin.adtech.internet.ibm.com/pub/robocode/
DISTNAME= setup
EXTRACT_SUFX= .jar
MAINTAINER= sobomax@FreeBSD.org
BUILD_DEPENDS= ${JAVAVM}:${PORTSDIR}/java/linux-jdk13
RUN_DEPENDS= ${JAVAVM}:${PORTSDIR}/java/linux-jdk13
JDK13DIR?= ${LOCALBASE}/linux-jdk1.3.1
JAVAVM= ${JDK13DIR}/bin/java
JAVAJAR= ${JDK13DIR}/bin/jar
USE_ZIP= yes
USE_XLIB= yes
RESTRICTED= "Redistribution isn't permitted - see license for details"
NO_WRKSUBDIR= yes
NO_BUILD= yes
.if defined(BATCH) || defined(PACKAGE_BUILDING)
IGNORE= "You can not legally redistribute package"
.endif
post-extract:
@cd ${WRKSRC} && ${JAVAJAR} xf ${WRKSRC}/extract.jar
do-configure:
@${SED} "s|%%PREFIX%%|${PREFIX}|g ; s|%%JAVAVM%%|${JAVAVM}|g" \
${FILESDIR}/robocode.sh > ${WRKDIR}/robocode.sh
do-install:
@${MKDIR} ${PREFIX}/share/java
@cd ${WRKSRC} && ${TAR} -c -f - robocode | \
${TAR} --unlink -x -f - -C ${PREFIX}/share/java
@${INSTALL_SCRIPT} ${WRKDIR}/robocode.sh ${PREFIX}/bin/robocode
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

1
games/robocode/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (setup.jar) = 2cdb7870e17d4a8c1750dbc3e47d273c

View File

@ -0,0 +1,7 @@
#!/bin/sh
# $FreeBSD$
CLASSPATH=${CLASSPATH}:robocode.jar:tools.jar:.
export CLASSPATH
cd %%PREFIX%%/share/java/robocode
exec %%JAVAVM%% robocode.Robocode "$@"

View File

@ -0,0 +1 @@
A game for learning Java[tm] programming language

6
games/robocode/pkg-descr Normal file
View File

@ -0,0 +1,6 @@
Build the best. Destroy the rest. In Robocode, you'll program a robotic
battletank in Java[tm] for a fight to the finish. The game is designed to help
you learn Java, and have fun doing it... from a simple 10 line robot to a very
sophisticated, intelligent robot that destroys the competition!
WWW: http://robocode.alphaworks.ibm.com/home/home.html

View File

@ -0,0 +1,82 @@
alphaWorks License Agreement
Please read this IBM alphaWorks license agreement (called the
"Agreement") carefully. Your use of the software or any related
documentation (called the "Software") indicates your acceptance of
the following terms and conditions. If you do not agree to these
terms and conditions, you may not install or use the Software.
Notice: The Software that is made available through the alphaWorks
project is not generally available software. It has not undergone
complete testing and may contain errors. It may not function properly
and is subject to change or withdrawal at any time. No support or
maintenance is provided with the Software. Do not install this
software if you are not accustomed to using experimental software.
The alphaWorks Software is made available without charge in the
experimental stage in order to allow you to evaluate the Software
in its developmental stage. We encourage your feedback and suggestions.
1. Ownership and License.
The Software is owned by International Business Machines Corporation
or one of its subsidiaries ("IBM") and is copyrighted and licensed,
not sold.
IBM grants you a non-exclusive, non-transferable license to
download the Software and use it only for your personal, non-commercial
and lawful end use. Implied licenses are negated.
You may copy the Software for backup only. You may not: 1) merge,
distribute (for free or for sale) or sublicense the Software; 2)
reverse assemble, reverse compile, or otherwise translate the
Software.
2. Term and Termination
This Agreement will terminate ninety (90) days after the date
on which you receive the Software. Upon such termination you will
delete or destroy all copies of the Software.
3. Warranty Disclaimer and Limitation of Liability
IBM licenses the Software to you on an "as is" basis, without
warranty of any kind. IBM hereby expressly disclaims all warranties
or conditions, either express or implied, including, but not limited
to, the implied warranties or conditions of merchantability and
fitness for a particular purpose. You are solely responsible for
determining the appropriateness of using this Software and assume
all risks associated with the use of this Software, including but
not limited to the risks of program errors, damage to or loss of
data, programs or equipment, and unavailability or interruption of
operations. Some jurisdictions do not allow for the exclusion or
limitation of implied warranties, so the above limitations or
exclusions may not apply to you.
IBM will not be liable for any direct damages or for any special,
incidental, or indirect damages or for any economic consequential
damages (including lost profits or savings), even if IBM has been
advised of the possibility of such damages. IBM will not be liable
for the loss of, or damage to, your records or data, or any damages
claimed by you based on a third party claim. Some jurisdictions do
not allow for the exclusion or limitation of incidental or consequential
damages, so the above limitations or exclusions may not apply to
you.
4. License Rights
You hereby grant to IBM an irrevocable license under all
intellectual property rights (including copyright) to use, copy,
distribute, sublicense, display, perform and prepare derivative
works based upon any feedback, including materials, fixes, error
corrections, enhancements, suggestions and the like that you provide
to IBM.
5. General
This Agreement is governed by the laws of the State of New York.
This Agreement is the only understanding and agreement we have
regarding your use of the Software. It supersedes all other
communications, understandings or agreements we may have had prior
to this Agreement.

105
games/robocode/pkg-plist Normal file
View File

@ -0,0 +1,105 @@
bin/robocode
share/java/robocode/battles/sample.battle
share/java/robocode/images/bullet.gif
share/java/robocode/images/explosion/explode1.gif
share/java/robocode/images/explosion/explode10.gif
share/java/robocode/images/explosion/explode11.gif
share/java/robocode/images/explosion/explode12.gif
share/java/robocode/images/explosion/explode13.gif
share/java/robocode/images/explosion/explode14.gif
share/java/robocode/images/explosion/explode15.gif
share/java/robocode/images/explosion/explode16.gif
share/java/robocode/images/explosion/explode17.gif
share/java/robocode/images/explosion/explode2.gif
share/java/robocode/images/explosion/explode3.gif
share/java/robocode/images/explosion/explode4.gif
share/java/robocode/images/explosion/explode5.gif
share/java/robocode/images/explosion/explode6.gif
share/java/robocode/images/explosion/explode7.gif
share/java/robocode/images/explosion/explode8.gif
share/java/robocode/images/explosion/explode9.gif
share/java/robocode/images/floor.gif
share/java/robocode/images/g1body.colormask.gif
share/java/robocode/images/g1body.gif
share/java/robocode/images/g1bodys.gif
share/java/robocode/images/g1bullet.gif
share/java/robocode/images/g1radar.colormask.gif
share/java/robocode/images/g1radar.gif
share/java/robocode/images/g1radars.gif
share/java/robocode/images/g1turret.colormask.gif
share/java/robocode/images/g1turret.gif
share/java/robocode/images/g1turrets.gif
share/java/robocode/images/icon.gif
share/java/robocode/images/orggun.gif
share/java/robocode/images/orgradar.gif
share/java/robocode/images/orgrobot.gif
share/java/robocode/javadoc/allclasses-frame.html
share/java/robocode/javadoc/deprecated-list.html
share/java/robocode/javadoc/help-doc.html
share/java/robocode/javadoc/index-all.html
share/java/robocode/javadoc/index.html
share/java/robocode/javadoc/overview-tree.html
share/java/robocode/javadoc/package-list
share/java/robocode/javadoc/packages.html
share/java/robocode/javadoc/robocode/AdvancedRobot.html
share/java/robocode/javadoc/robocode/BulletHitEvent.html
share/java/robocode/javadoc/robocode/BulletMissedEvent.html
share/java/robocode/javadoc/robocode/Condition.html
share/java/robocode/javadoc/robocode/CustomEvent.html
share/java/robocode/javadoc/robocode/DeathEvent.html
share/java/robocode/javadoc/robocode/Event.html
share/java/robocode/javadoc/robocode/GunTurnCompleteCondition.html
share/java/robocode/javadoc/robocode/HitByBulletEvent.html
share/java/robocode/javadoc/robocode/HitRobotEvent.html
share/java/robocode/javadoc/robocode/HitWallEvent.html
share/java/robocode/javadoc/robocode/MoveCompleteCondition.html
share/java/robocode/javadoc/robocode/RadarTurnCompleteCondition.html
share/java/robocode/javadoc/robocode/Robot.html
share/java/robocode/javadoc/robocode/RobotDeathEvent.html
share/java/robocode/javadoc/robocode/RobotException.html
share/java/robocode/javadoc/robocode/ScannedRobotEvent.html
share/java/robocode/javadoc/robocode/SkippedTurnEvent.html
share/java/robocode/javadoc/robocode/TurnCompleteCondition.html
share/java/robocode/javadoc/robocode/WinEvent.html
share/java/robocode/javadoc/serialized-form.html
share/java/robocode/javadoc/stylesheet.css
share/java/robocode/license.html
share/java/robocode/robocode.bat
share/java/robocode/robocode.ico
share/java/robocode/robocode.jar
share/java/robocode/robocode.properties
share/java/robocode/robocode.sh
share/java/robocode/robots/Corners.class
share/java/robocode/robots/Corners.java
share/java/robocode/robots/Crazy.class
share/java/robocode/robots/Crazy.java
share/java/robocode/robots/Fire.class
share/java/robocode/robots/Fire.java
share/java/robocode/robots/MyFirstRobot.class
share/java/robocode/robots/MyFirstRobot.java
share/java/robocode/robots/RamFire.class
share/java/robocode/robots/RamFire.java
share/java/robocode/robots/SittingDuck.class
share/java/robocode/robots/SittingDuck.java
share/java/robocode/robots/SpinBot.class
share/java/robocode/robots/SpinBot.java
share/java/robocode/robots/Target$1.class
share/java/robocode/robots/Target.class
share/java/robocode/robots/Target.java
share/java/robocode/robots/TrackFire.class
share/java/robocode/robots/TrackFire.java
share/java/robocode/robots/Tracker.class
share/java/robocode/robots/Tracker.java
share/java/robocode/robots/Walls.class
share/java/robocode/robots/Walls.java
share/java/robocode/templates/newrobot.tpt
share/java/robocode/tools.jar
share/java/robocode/versions.txt
@dirrm share/java/robocode/templates
@dirrm share/java/robocode/robots
@dirrm share/java/robocode/javadoc/robocode
@dirrm share/java/robocode/javadoc
@dirrm share/java/robocode/images/explosion
@dirrm share/java/robocode/images
@dirrm share/java/robocode/battles
@dirrm share/java/robocode