blob: f8e17575a917105afe7bbf80835e2f078b93b556 (
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
|
# $FreeBSD$
PORTNAME= robocode
PORTVERSION= 0.9.2
DISTVERSIONSUFFIX= -setup
CATEGORIES= games java
MASTER_SITES= SF/${PORTNAME}/naval-robocode/${PORTVERSION}
PKGNAMESUFFIX= -naval
EXTRACT_SUFX= .jar
DIST_SUBDIR= java
MAINTAINER= dbaio@FreeBSD.org
COMMENT= Game for learning Java[tm] programming language
LICENSE= EPL
PORTSCOUT= limit:^\d+\.\d+\.\d+$$
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}${PKGNAMESUFFIX}
PLIST_SUB= PORTVERSION=${PORTVERSION}
SUB_FILES= ${PORTNAME}-NavalRobocode pkg-deinstall pkg-message
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-NavalRobocode \
${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.* naval-robocode-versions.md
@(${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR})
.endfor
${INSTALL_DATA} ${WRKSRC}/desktop/robocodeRobocode.desktop \
${STAGEDIR}${DESKTOPDIR}/robocodeNavalRobocode.desktop
${INSTALL_DATA} ${WRKSRC}/desktop/robocode.png \
${STAGEDIR}${PREFIX}/share/pixmaps/robocode-naval.png
@${MKDIR} ${STAGEDIR}${DATADIR}/config
.include <bsd.port.mk>
|