aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/jchessboard/Makefile20
-rw-r--r--games/jchessboard/files/jchessboard.in3
2 files changed, 17 insertions, 6 deletions
diff --git a/games/jchessboard/Makefile b/games/jchessboard/Makefile
index b8b6ee41485b..4268f06930fc 100644
--- a/games/jchessboard/Makefile
+++ b/games/jchessboard/Makefile
@@ -3,34 +3,42 @@
PORTNAME= jchessboard
PORTVERSION= 1.5
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= games java
MASTER_SITES= SF
DISTNAME= JChessBoard-${PORTVERSION}
EXTRACT_SUFX= .tgz
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= jgh@FreeBSD.org
COMMENT= Chess game and PGN viewer/editor written in Java
+LICENSE= GPLv2
+
USE_JAVA= yes
JAVA_VERSION= 1.6+
+USE_ANT= yes
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
PLIST_FILES= bin/${PORTNAME} \
%%DATADIR%%/${JARFILE}
PLIST_DIRS= %%DATADIR%%
+SUB_FILES= ${PORTNAME}
+SUB_LIST+= JARFILE=${JARFILE} \
+ PORTNAME=${PORTNAME}
+PORTDOCS= *
JARFILE= JChessBoard.jar
-do-build:
- @(${ECHO_CMD} "#!${SH}"; \
- ${ECHO_CMD} "${JAVA} -jar ${DATADIR}/${JARFILE}") \
- > ${WRKDIR}/${PORTNAME}
+.include <bsd.port.options.mk>
do-install:
@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${DATADIR}
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
.include <bsd.port.mk>
diff --git a/games/jchessboard/files/jchessboard.in b/games/jchessboard/files/jchessboard.in
new file mode 100644
index 000000000000..9e8df1122d8f
--- /dev/null
+++ b/games/jchessboard/files/jchessboard.in
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -jar "%%JAVASHAREDIR%%/%%PORTNAME%%/%%JARFILE%%"