summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-09-20 14:24:44 +0000
committerrillig <rillig@pkgsrc.org>2006-09-20 14:24:44 +0000
commit223a73ad21e7578d2f9bfa77f08b5e6beb60ef44 (patch)
tree04f1c3d0d469703981d51a4881385848f59f24cb /games
parentae14bc131748cdff7027df690858038d3ad83283 (diff)
downloadpkgsrc-223a73ad21e7578d2f9bfa77f08b5e6beb60ef44.tar.gz
Fixed the package so that it works even if ${PKG_JAVA_HOME}/bin is not
in the PATH. Added the dependency to Java. Bumped PKGREVISION.
Diffstat (limited to 'games')
-rw-r--r--games/gogui/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/games/gogui/Makefile b/games/gogui/Makefile
index b0032e2f161..d950b83071e 100644
--- a/games/gogui/Makefile
+++ b/games/gogui/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/07/27 14:52:26 rillig Exp $
+# $NetBSD: Makefile,v 1.2 2006/09/20 14:24:44 rillig Exp $
#
DISTNAME= gogui-0.9
+PKGREVISION= 1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gogui/}
EXTRACT_SUFX= .zip
@@ -19,17 +20,26 @@ SUBST_MESSAGE.gogui= Fixing hard-coded paths.
SUBST_FILES.gogui= bin/*
SUBST_SED.gogui= -e 's;^\(GOGUI_LIB\)=.*;\1="${LIBDIR}";'
-NO_BUILD= yes
+USE_JAVA2= yes
+USE_TOOLS+= printf
LIBDIR= ${PREFIX}/share/gogui/lib
DOCDIR= ${PREFIX}/share/doc/gogui
MY_MANDIR= ${PREFIX}/${PKGMANDIR}
INSTALLATION_DIRS= bin ${LIBDIR} ${DOCDIR} ${MY_MANDIR}
+do-build:
+.for p in gmptogtp gogui gtpadapter gtpdisplay gtpdummy gtpregress \
+ gtpserver gtpstatistics gtpterminal netgtp sgfthumbnail \
+ sgftotex twogtp
+ printf "#! /bin/sh\\nexec \"${PKG_JAVA_HOME}/bin/java\" -jar \"${PREFIX}/share/gogui/lib/${p}.jar\" \"\$$@\"\\n" > ${WRKSRC}/bin/${p}
+.endfor
+
do-install:
cd ${WRKSRC}/bin && ${INSTALL_SCRIPT} * ${PREFIX}/bin/.
cd ${WRKSRC}/lib && ${INSTALL_DATA} *.jar ${LIBDIR}/.
cd ${WRKSRC}/doc/manual/html && ${INSTALL_DATA} *.html *.png ${DOCDIR}/.
cd ${WRKSRC}/doc/manual/man && ${INSTALL_MAN} *.1 ${MY_MANDIR}/man1/.
+.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"