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
|
2011-12-29 16:27:11 +01:00
|
|
|
PORTVERSION= 1.7.3.4
|
2001-09-10 11:57:46 +02:00
|
|
|
CATEGORIES= games java
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF
|
2009-09-09 11:28:09 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-setup
|
2001-09-10 11:57:46 +02:00
|
|
|
EXTRACT_SUFX= .jar
|
|
|
|
|
2010-12-22 18:06:36 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
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
|
|
|
|
2010-09-14 22:55:58 +02:00
|
|
|
LICENSE= EPL
|
|
|
|
|
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
|
2010-11-10 17:05:01 +01:00
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
2002-03-05 15:46:44 +01:00
|
|
|
|
2010-11-10 17:05:01 +01:00
|
|
|
SUB_FILES= ${PORTNAME}.sh
|
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}/{} \;
|
2010-11-10 17:05:01 +01:00
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
|
2001-09-10 11:57:46 +02:00
|
|
|
|
2009-09-09 11:28:09 +02:00
|
|
|
post-install:
|
|
|
|
${MKDIR} -m a+rwx ${DATADIR}/compilers ${DATADIR}/config
|
|
|
|
${CAT} pkg-message
|
|
|
|
|
2001-09-10 11:57:46 +02:00
|
|
|
.include <bsd.port.mk>
|