aboutsummaryrefslogtreecommitdiff
path: root/games/moagg/Makefile
blob: 9fd8d64d7d8a34cfb02ea70e211e7696b05ddb71 (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
54
55
56
57
58
59
60
61
# Created by: nemysis@gmx.ch
# $FreeBSD$

PORTNAME=	moagg
PORTVERSION=	1.95b
CATEGORIES=	games java
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}2/${DISTVERSION:S/b//}/ \
		http://moagg.sourceforge.net/images/screenshots/:icons
DISTFILES=	${PORTNAME}-${DISTVERSION}-bin.zip \
		crates.png:icons
DIST_SUBDIR=	java
EXTRACT_ONLY=	${PORTNAME}-${DISTVERSION}-bin.zip

MAINTAINER=	nemysis@gmx.ch
COMMENT=	Pilot a small space ship

LICENSE=	GPLv2

USE_ZIP=	yes
USE_JAVA=	yes
JAVA_VERSION=	1.6+
NO_BUILD=	yes

PLIST_FILES=	bin/${PORTNAME} \
		share/pixmaps/${PORTNAME}.png

REPLACE_LIST_TEMP=	${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/}

PORTDATA=	*
PORTDOCS=	AUTHORS README.txt
DATADIR=	${JAVASHAREDIR}/${PORTNAME}

NO_STAGE=	yes
.include <bsd.port.options.mk>

post-patch-script:
	@${SED} ${REPLACE_LIST_TEMP} ${WRKSRC}/run.sh > ${WRKSRC}/run.sh.new

do-install:
# Executable
	${INSTALL_SCRIPT} ${WRKSRC}/run.sh.new ${PREFIX}/bin/${PORTNAME}

# Data
	${MKDIR} ${DATADIR}
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} "data ghosts jar" ${DATADIR})
.for d in hiscores.dat log4j.properties
	${INSTALL_DATA} ${WRKSRC}/${d} ${DATADIR}
.endfor

# Pixmaps
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/crates.png ${PREFIX}/share/pixmaps/${PORTNAME}.png

# Documentation
.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR}
.  for f in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.  endfor
.endif

.include <bsd.port.mk>