blob: 17e17c0c58e5b36d4dbcbf09918f40c0db9e07e8 (
plain) (
blame)
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
45
46
47
48
49
50
51
52
53
54
55
56
|
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$
PORTNAME= robocode
PORTVERSION= 1.9.2.2
CATEGORIES= games java
MASTER_SITES= SF
DISTFILES= ${PORTNAME}-${DISTVERSION}-setup.jar
DIST_SUBDIR= java
MAINTAINER= ports@FreeBSD.org
COMMENT= Game for learning Java[tm] programming language
BROKEN= unfetchable
LICENSE= EPL
USES= dos2unix zip
DOS2UNIX_GLOB= *.css *.team *.properties package-list MANIFEST.MF
USE_JAVA= yes
JAVA_VERSION= 1.6+
JAVA_EXTRACT= yes
JAVA_RUN= yes
NO_WRKSUBDIR= yes
NO_BUILD= yes
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
PLIST_SUB= PORTVERSION=${PORTVERSION}
SUB_FILES= ${PORTNAME}-MeleeRumble ${PORTNAME}-RoboRumble \
${PORTNAME}-Robocode ${PORTNAME}-TeamRumble \
${PORTNAME}-TwinDuel pkg-deinstall 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
@(cd ${STAGEDIR}${DATADIR} && ${CHMOD} -R 775 config roborumble robots)
@${CHMOD} +x ${STAGEDIR}${DATADIR}/*.sh
.include <bsd.port.mk>
|