aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorjgh <jgh@FreeBSD.org>2013-01-03 02:16:41 +0800
committerjgh <jgh@FreeBSD.org>2013-01-03 02:16:41 +0800
commit9ece8e7d754e7f247a5f7eadaced8e3549bc8da9 (patch)
tree1b30cbe6868f35071fd7e01755426d21b7cd7830 /games
parentaded73577f0779ca9618af9def55ff72d452a198 (diff)
downloadfreebsd-ports-gnome-9ece8e7d754e7f247a5f7eadaced8e3549bc8da9.tar.gz
freebsd-ports-gnome-9ece8e7d754e7f247a5f7eadaced8e3549bc8da9.tar.zst
freebsd-ports-gnome-9ece8e7d754e7f247a5f7eadaced8e3549bc8da9.zip
- build from java source
- add README for Port Documentation - take maintainership
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%%"