summaryrefslogtreecommitdiffstats
path: root/games/moagg/Makefile
blob: 61402187c8484ede3eb94fc823baf2d735237992 (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
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$

PORTNAME=	moagg
PORTVERSION=	1.95b
PORTREVISION=	1
CATEGORIES=	games java
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}2/${DISTVERSION:S/b//}/ \
		SF/nemysisfreebsdp/games/:icons
DISTFILES=	${PORTNAME}-${DISTVERSION}-bin.zip \
		${PORTNAME}.png:icons
DIST_SUBDIR=	java
EXTRACT_ONLY=	${PORTNAME}-${DISTVERSION}-bin.zip

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Pilot a small space ship

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

DATADIR=	${JAVASHAREDIR}/${PORTNAME}

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

PORTDOCS=	AUTHORS README.txt
OPTIONS_DEFINE=	DOCS

# Do not use older versions
PORTSCOUT=	skipv:1.95

DESKTOP_ENTRIES="MOAGG, Mother of all gravity Games" "" ${PORTNAME} \
		"${PORTNAME}" "Game;ArcadeGame;" ""

post-patch:
	@${REINPLACE_CMD} -e 's|%%JAVASHAREDIR%%|${JAVASHAREDIR}|' \
		${WRKSRC}/run.sh

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/run.sh \
		${STAGEDIR}${PREFIX}/bin/${PORTNAME}
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} "data ghosts jar" \
		${STAGEDIR}${DATADIR})
.for f in hiscores.dat log4j.properties
	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
.endfor

	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
		${STAGEDIR}${PREFIX}/share/pixmaps/

	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

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