blob: 55f9d4c94b36f9a84557b6573b1128ee3c5af3cd (
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
|
# Created by: Jason Helfman <jgh@FreeBSD.org>
# $FreeBSD$
PORTNAME= java-games-suite
PORTVERSION= 1.0
CATEGORIES= games java
MASTER_SITES= SF/javagamessuite
MAINTAINER= jgh@FreeBSD.org
COMMENT= Simple Java games collection
USE_JAVA= yes
JAVA_VERSION= 1.6+
PLIST_FILES= bin/java-games-suite \
%%JAVAJARDIR%%/MM.jar \
%%JAVAJARDIR%%/reversi.jar \
%%JAVAJARDIR%%/Mine.jar \
%%JAVAJARDIR%%/Tetris.jar \
%%JAVAJARDIR%%/RT.jar \
%%JAVAJARDIR%%/Number.jar
SUB_FILES= ${PORTNAME}.sh
GAMES= MM reversi Mine Tetris RT Number
post-extract-script:
.for game in ${GAMES}
@${ECHO_CMD} "Main-Class: ${game}" > ${WRKSRC}/${game}/MANIFEST.MF
.endfor
do-build:
.for game in ${GAMES}
cd ${WRKSRC}/${game} && \
${JAVAC} ${game}.java
.endfor
post-build-script:
.for game in ${GAMES}
@cd ${WRKSRC}/${game} && \
${JAR} -cfm ${game}.jar MANIFEST.MF ${game}.java ${game}.class
.endfor
do-install:
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
.for game in ${GAMES}
${INSTALL_DATA} ${WRKSRC}/${game}/${game}.jar ${STAGEDIR}${JAVAJARDIR}
.endfor
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>
|