1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/games/java-games-suite/Makefile
Jason Helfman e3f6eb9ff6 - pet portlint
- define arch
2019-08-22 00:53:37 +00:00

52 lines
1.1 KiB
Makefile

# Created by: Jason Helfman <jgh@FreeBSD.org>
# $FreeBSD$
PORTNAME= java-games-suite
PORTVERSION= 1.0
CATEGORIES= games java
MASTER_SITES= SF/javagamessuite
MAINTAINER= jgh@FreeBSD.org
COMMENT= Simple Java games collection
USE_JAVA= yes
NO_ARCH= yes
JAVA_VERSION= 1.6+
PLIST_FILES= bin/java-games-suite \
${JAVAJARDIR}/MM.jar \
${JAVAJARDIR}/reversi.jar \
${JAVAJARDIR}/Mine.jar \
${JAVAJARDIR}/Tetris.jar \
${JAVAJARDIR}/RT.jar \
${JAVAJARDIR}/Number.jar
SUB_FILES= ${PORTNAME}.sh
GAMES= MM reversi Mine Tetris RT Number
post-extract-script:
.for game in ${GAMES}
@${ECHO_CMD} "Main-Class: ${game}" > ${WRKSRC}/${game}/MANIFEST.MF
.endfor
do-build:
.for game in ${GAMES}
cd ${WRKSRC}/${game} && \
${JAVAC} ${game}.java
.endfor
post-build-script:
.for game in ${GAMES}
@cd ${WRKSRC}/${game} && \
${JAR} -cfm ${game}.jar MANIFEST.MF ${game}.java ${game}.class
.endfor
do-install:
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
.for game in ${GAMES}
${INSTALL_DATA} ${WRKSRC}/${game}/${game}.jar ${STAGEDIR}${JAVAJARDIR}
.endfor
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>