aboutsummaryrefslogtreecommitdiffstats
path: root/games/ftjava/Makefile
blob: b090f057704cb01196990af83c9226a863d4cf19 (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
# Created by: peter.thoenen@yahoo.com
# $FreeBSD$

PORTNAME=   ftjava
PORTVERSION=    1.3
PORTREVISION=   2
CATEGORIES= games java
MASTER_SITES=   http://www.warpfish.com/davisje/:file1 \
        http://home.roadrunner.com/~davisje/ftjava/:doc1
DISTFILES=  FTJavaV${PORTVERSION}.zip:file1 \
        FTJava_Documentation.html:doc1 faq.html:doc1 FTJava_Linux.html:doc1
DIST_SUBDIR=    ${PORTNAME}
EXTRACT_ONLY=   FTJavaV${PORTVERSION}.zip

MAINTAINER= ports@FreeBSD.org
COMMENT=    Full Thrust PBEM Client

USES=       zip
USE_JAVA=   yes
JAVA_VERSION=   1.6+
NO_BUILD=   yes
NO_WRKSUBDIR=   yes

IGNOREFILES=    FTJava_Documentation.html faq.html FTJava_Linux.html

DATADIR=    ${JAVASHAREDIR}/${PORTNAME}
DATAFILES=  Images IncomingGames OutgoingGames Ships FTJava.jar \
        activation.jar imap.jar log4j-1.2.7.jar mail.jar \
        mailapi.jar png.jar pop3.jar skeetutil.jar smtp.jar xerces.jar \
        xercesImpl.jar xmlParserAPIs.jar

PORTDOCS=   FTJava_Linux.html faq.html FTJava_Documentation.html

SUB_FILES=  ftjava.sh

DESKTOP_ENTRIES=    "FTJava" "A PBEM client for Full Thrust" \
            "${DATADIR}/Images/FTJava.ico" \
            "ftjava" "Game;BoardGame;StrategyGame;" \
            false

OPTIONS_DEFINE= DOCS

do-install:
    @${MKDIR} ${STAGEDIR}${DATADIR}
    cd ${WRKSRC} && ${FIND} ${DATAFILES} -type d -exec ${MKDIR} ${STAGEDIR}${DATADIR}/{} ";"
    cd ${WRKSRC} && ${FIND} ${DATAFILES} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} ";"
    ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME:L}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${PORTDOCS}
    ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>