2014-08-13 21:16:41 +02:00
|
|
|
# $NetBSD: Makefile,v 1.2 2014/08/13 19:16:41 wiz Exp $
|
2014-08-13 20:57:27 +02:00
|
|
|
|
|
|
|
DISTNAME= jin-2.14.1-unix
|
|
|
|
PKGNAME= ${DISTNAME:S/-unix//}
|
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=jin/}
|
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
|
|
HOMEPAGE= http://jin.sourceforge.net/
|
|
|
|
COMMENT= Graphical client for chess servers
|
|
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
USE_TOOLS+= pax
|
2014-08-13 21:16:41 +02:00
|
|
|
USE_JAVA= run
|
|
|
|
USE_JAVA2= yes
|
2014-08-13 20:57:27 +02:00
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
${ECHO} '#!/bin/sh' > ${WRKDIR}/jin.sh
|
|
|
|
${ECHO} "cd ${PREFIX}/share/${PKGBASE} && exec ${JAVA_BINPREFIX}-java -jar "'"'"jin.jar"'" "$$@"' >> ${WRKDIR}/jin.sh
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/jin.sh ${DESTDIR}${PREFIX}/bin
|
|
|
|
cd ${WRKSRC} && pax -pp -rw * ${DESTDIR}${PREFIX}/share/${PKGBASE}
|
|
|
|
|
|
|
|
.include "../../mk/java-vm.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|