2001-09-10 11:57:46 +02:00
|
|
|
# New ports collection makefile for: robocode
|
|
|
|
# Date created: 10 September 2001
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= robocode
|
2009-09-02 19:12:45 +02:00
|
|
|
PORTVERSION= 1.6.2
|
|
|
|
PORTREVISION= 3
|
2001-09-10 11:57:46 +02:00
|
|
|
CATEGORIES= games java
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF
|
2007-12-14 04:42:16 +01:00
|
|
|
DISTNAME= ${PORTNAME}-setup-${PORTVERSION}
|
2001-09-10 11:57:46 +02:00
|
|
|
EXTRACT_SUFX= .jar
|
|
|
|
|
2009-09-02 19:12:45 +02:00
|
|
|
MAINTAINER= glen.j.barber@gmail.com
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= A game for learning Java[tm] programming language
|
2001-09-10 11:57:46 +02:00
|
|
|
|
2004-08-20 21:07:59 +02:00
|
|
|
USE_JAVA= yes
|
2007-03-22 18:29:02 +01:00
|
|
|
JAVA_VERSION= 1.5+
|
2004-08-20 21:07:59 +02:00
|
|
|
JAVA_EXTRACT= yes
|
|
|
|
JAVA_RUN= yes
|
2001-09-10 11:57:46 +02:00
|
|
|
|
2005-04-05 14:17:49 +02:00
|
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
2001-09-10 11:57:46 +02:00
|
|
|
|
|
|
|
USE_ZIP= yes
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2005-04-05 14:17:49 +02:00
|
|
|
INSTFILES= battles javadoc license robocode.ico \
|
2007-12-14 04:42:16 +01:00
|
|
|
libs robots templates versions.txt
|
2002-03-05 15:46:44 +01:00
|
|
|
|
2005-04-05 14:30:44 +02:00
|
|
|
SUB_FILES= robocode.sh
|
2001-09-10 11:57:46 +02:00
|
|
|
|
2005-04-05 14:30:44 +02:00
|
|
|
post-extract:
|
|
|
|
@cd ${WRKSRC} && ${JAR} xf ${WRKSRC}/extract.jar
|
2001-09-10 11:57:46 +02:00
|
|
|
|
|
|
|
do-install:
|
2005-04-05 14:30:44 +02:00
|
|
|
@cd ${WRKSRC} && \
|
|
|
|
${FIND} ${INSTFILES} -type d -exec ${MKDIR} ${DATADIR}/{} \;
|
|
|
|
@cd ${WRKSRC} && \
|
|
|
|
${FIND} ${INSTFILES} -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
|
2001-09-10 11:57:46 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/robocode.sh ${PREFIX}/bin/robocode
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|