mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
62 lines
1.4 KiB
Makefile
62 lines
1.4 KiB
Makefile
# 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>
|