summaryrefslogtreecommitdiffstats
path: root/games/sfbol/Makefile
blob: 6fa2160211759230b7d89feea53b4bda65fb583f (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
# New ports collection makefile for: sfbol
# Date created:                      06FEB11
# Whom:                              peter.thoenen@yahoo.com
#
# $FreeBSD$

PORTNAME=	sfbol
PORTVERSION=	4.18
CATEGORIES=	games java
MASTER_SITES=	http://www.sfbonline.com/install4/InstData/Java/
DISTNAME=	install40
EXTRACT_SUFX=	.jar
EXTRACT_ONLY=

MAINTAINER=	peter.thoenen@yahoo.com
COMMENT=	Star Fleet Battles Online

BROKEN=		fails to install

IGNOREFILES=	install40.jar
USE_JAVA=	yes
JAVA_VERSION=	1.4+
JAVA_RUN=	jre
JAVA_EXTRACT=	jre
NO_BUILD=	yes

DATADIR=	${JAVASHAREDIR}/${PORTNAME}

SUB_FILES=	sfbol.sh

PLIST_FILES=	bin/${PORTNAME} \
		%%DATADIR%%/${DISTFILES} \
		%%DATADIR%%/sfbicon.ico
PLIST_DIRS=	%%DATADIR%%

DESKTOP_ENTRIES=	"SFBOL" "Star Fleet Battles Online" \
			"${DATADIR}/sfbicon.ico" \
			"sfbol" "Application;Game;BoardGame;StrategyGame;" \
			false

RESTRICTED=	Commerical software.  Licenses does not allow redistribution.

post-extract:
	@cd ${WRKDIR} && ${JAR} -xf ${DISTDIR}/${DISTFILES} D_/SFBOL/dist/core.jar 2>/dev/null | ${TRUE}
	@cd ${WRKDIR} && ${JAR} -xf D_/SFBOL/dist/core.jar sfbicon.ico

do-install:
	@${MKDIR} ${DATADIR}
	@${INSTALL_DATA} ${WRKDIR}/sfbicon.ico ${DATADIR}
	@${INSTALL_DATA} ${DISTDIR}/${DISTFILES} ${DATADIR}
	@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME:L}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud