pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/gogui Fixed the package so that it works even if...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/047a00cb90d7
branches:  trunk
changeset: 518862:047a00cb90d7
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Sep 20 14:24:44 2006 +0000

description:
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:

 games/gogui/Makefile |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (41 lines):

diff -r 47ad89007729 -r 047a00cb90d7 games/gogui/Makefile
--- a/games/gogui/Makefile      Wed Sep 20 13:27:18 2006 +0000
+++ b/games/gogui/Makefile      Wed Sep 20 14:24:44 2006 +0000
@@ -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_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"



Home | Main Index | Thread Index | Old Index