summaryrefslogtreecommitdiff
path: root/games/ftjava/Makefile
blob: ff4af200b9ae86cda3f7a4f761fc1da9aa1d6269 (plain)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Created by: peter.thoenen@yahoo.com
# $FreeBSD$

PORTNAME=	ftjava
PORTVERSION=	1.3
PORTREVISION=	3
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

BROKEN=		unfetchable
DEPRECATED=	Broken for more than 6 months
EXPIRATION_DATE=	2016-07-04

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/License.txt

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

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

PLIST_FILES=	bin/ftjava
PORTDOCS=	FTJava_Linux.html faq.html FTJava_Documentation.html
PORTDATA=	*
PLIST_DIRS=	%%DATADIR%%/Ships/FullThrust/Kravak \
		%%DATADIR%%/Ships/EFSB/NonAligned \
		%%DATADIR%%/OutgoingGames \
		%%DATADIR%%/IncomingGames \
		%%DATADIR%%/Images/StarFleetWars/Terran \
		%%DATADIR%%/Images/StarFleetWars/Entomalian \
		%%DATADIR%%/Images/ShipIcons/StarFleetWars \
		%%DATADIR%%/Images/ShipIcons/FullThrust \
		%%DATADIR%%/Images/FullThrust/Sylvian \
		%%DATADIR%%/Images/FullThrust/Kali \
		%%DATADIR%%/Images/FullThrust/Eurasian

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:tl}
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${PORTDOCS}
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>