mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
3c21d47271
The port requires them to work in any way. Reported by: jgh Approved by: nemysis <nemysis@gmx.ch> (maintainer, via email) Approved by: crees, tabthorpe (mentors, implicit)
65 lines
1.4 KiB
Makefile
65 lines
1.4 KiB
Makefile
# New Ports collection makefile for: moagg
|
|
# Date created: 03 August 2012
|
|
# Whom: 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.5+
|
|
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}
|
|
|
|
.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>
|