summaryrefslogtreecommitdiffstats
path: root/games/robocode/Makefile
blob: d3922041e024fdfb5116ecf151541000ce7aff98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$

PORTNAME=	robocode
PORTVERSION=	1.7.4.2
CATEGORIES=	games java
MASTER_SITES=	SF
DISTNAME=	${PORTNAME}-${PORTVERSION}-setup
EXTRACT_SUFX=	.jar

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A game for learning Java[tm] programming language

LICENSE=	EPL

USE_JAVA=	yes
JAVA_VERSION=	1.5+
JAVA_EXTRACT=	yes
JAVA_RUN=	yes

DATADIR=	${JAVASHAREDIR}/${PORTNAME}

USE_ZIP=	yes
NO_WRKSUBDIR=	yes
NO_BUILD=	yes

INSTFILES=	battles javadoc license robocode.ico \
		libs robots templates versions.txt
PLIST_SUB=	PORTVERSION=${PORTVERSION}

SUB_FILES=	${PORTNAME}.sh

do-install:
	@cd ${WRKSRC} && \
		${FIND} ${INSTFILES} -type d -exec ${MKDIR} ${DATADIR}/{} \;
	@cd ${WRKSRC} && \
		${FIND} ${INSTFILES} -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
	@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}

post-install:
	${MKDIR} -m a+rwx ${DATADIR}/compilers ${DATADIR}/config
	${CAT} pkg-message

.include <bsd.port.mk>
OpenPOWER on IntegriCloud