aboutsummaryrefslogtreecommitdiffstats
path: root/games/java-games-suite/Makefile
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>
d>2009-07-313-0/+3 * The KDE FreeBSD team is pleased to announce KDE 4.2.4, the last bugfixmiwi2009-06-031-3/+3 * Update KDE ports to 4.2.3makc2009-05-102-3/+70 * The KDE FreeBSD team is proud to announce the release of KDE 4.2.2miwi2009-04-022-6/+28 * Update KDE to 4.2.1.makc2009-03-092-3/+6 * The KDE FreeBSD team is proud to announce the release of KDE 4.2.0miwi2009-02-092-24/+11 * - Update to 1.2.8gabor2009-02-086-16/+58 * - Update to 1.4gabor2009-02-082-4/+4 * kde@freebsd team is pleased to announce KDE 4.1.4, the last bugfix release in...makc2009-01-143-6/+9 * Turns out, libdata/pkgconfig/ is already part of mtree and needs neithermi2008-09-092-3/+1 * Fix the incorrect location hunspell.pc. No PORTREVISION bump, becausemi2008-09-091-1/+1 * Correct the destination of hunspell.pc file -- according to pav,mi2008-09-082-3/+3 * Add two directories missing from plist...mi2008-09-041-0/+2 * Upgrade from 1.2.2b to 1.2.7.mi2008-09-046-47/+73 * The KDE FreeBSD team is proud to announce the release of KDE 4.1.1miwi2008-09-032-5/+21 * The KDE FreeBSD team is proud to announce the releasemiwi2008-08-291-3/+3 * The KDE FreeBSD team is proud to announce the releasemiwi2008-08-182-10/+64 * The KDE FreeBSD team is proud to announce the release of KDE 4.1.0miwi2008-08-105-484/+244 * PHP Documentation in these language has been removed from the distribution.edwin2008-08-042-14/+0 * - Update MASTER_SITESgabor2008-07-122-2/+2 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-063-2/+3 * - Update to 1.3gabor2008-04-245-75/+41 * - Fix checking on LaTeX files on amd64gabor2008-04-242-0/+12 * - Update to 1.2.2bgabor2008-04-074-51/+25 * Update to KDE 3.5.8lofi2007-10-304-8/+6 * - Fix UTF-8 buggabor2007-10-073-0/+21 * - Update to 1.2.1gabor2007-09-284-99/+89 * - Update to 1.1.10gabor2007-08-283-5/+31 * - Update to 1.1.9gabor2007-08-014-8/+18 * - Update to 1.1.8gabor2007-07-214-19/+38 * Update to KDE 3.5.7 / KOffice 1.6.3lofi2007-07-048-29/+12 * BROKEN: Still broken on 6.x and abovekris2007-05-251-0/+2 * - Welcome X.org 7.2 \o/.flz2007-05-205-2/+5 * Remove BROKEN: This might be fixedkris2007-04-291-2/+0 * BROKEN: Does not installkris2007-03-251-0/+2 * Update to KDE 3.5.6 / KOffice 1.6.2lofi2007-03-147-11/+12 * Really normalize Aspell dictionaries ports PKGVERSION...thierry2007-02-151-1/+1 * Normalize Aspell dictionaries PKGNAMEs.thierry2007-01-141-0/+1 * Update to KDE 3.5.5 / KOffice 1.6.1lofi2006-12-205-10/+11 * - Update to 1.1.4miwi2006-11-105-71/+27 * KDE 3.5.4 / KOffice 1.5.2lofi2006-09-134-10/+10 * Now installs again.kris2006-08-171-2/+0 * Mark BROKEN: does not installerwin2006-08-041-0/+2 * Update to 1.0itetcu2006-08-013-43/+107 * All dictionaries can be installed separately:thierry2006-07-154-7/+15 * Update to KDE 3.5.3lofi2006-06-064-22/+20 * Update to KOffice 1.5.1lofi2006-05-272-4/+4 * remove USE_REINPLACE for all categories starting with Hedwin2006-05-081-1/+0 * Update to KOffice 1.5.0lofi2006-04-293-5/+8 * Update to KDE 3.5.2lofi2006-03-314-128/+22 * Update to KDE 3.5.1.lofi2006-02-014-6/+20 * SHA256ifyedwin2006-01-227-0/+8 * Update to KDE 3.5.0lofi2006-01-094-110/+48 * Remove the usage of 'misc' as a secondary category.linimon2005-11-102-2/+2 * Update to KDE 3.4.3 / KOffice 1.4.2lofi2005-11-055-8/+7 * Remove all the secondary port of editors/ooodict-allmaho2005-11-012-21/+0 * Fix index build by moving openoffice.org-1.1 ports.maho2005-08-291-1/+1 * Update to KDE 3.4.2 / KOffice 1.4.1lofi2005-08-014-7/+7 * Update to KOffice 1.4.0a.lofi2005-07-063-30/+7 * Remove openoffice.org localized ports as I announced:maho2005-06-292-16/+0 * Update to KDE 3.4.1lofi2005-06-264-10/+4 * - Unbreak and general updatepav2005-06-061-2/+2 * Added slave port of lang/php_doc for the Hungarian languageedwin2005-05-232-0/+14