# $NetBSD: Makefile,v 1.4 2017/06/12 12:07:39 abs Exp $ DISTNAME= Workbench-Build122 PKGNAME= sql-workbench-122 CATEGORIES= databases MASTER_SITES= http://www.sql-workbench.net/ EXTRACT_SUFX= .zip MAINTAINER= asau@inbox.ru HOMEPAGE= http://www.sql-workbench.net/ COMMENT= JDBC-based cross-platform SQL query tool EXTRACT_DIR= ${WRKSRC} USE_JAVA= run USE_JAVA2= 8 PKG_JVMS_ACCEPTED= oracle-jdk8 openjdk8 USE_TOOLS+= pax INSTALLATION_DIRS= bin share/${PKGBASE} pre-extract: mkdir -p ${WRKSRC} do-build: printf "#!/bin/sh\n${PKG_JAVA_HOME}/bin/java -Dvisualvm.display.name=SQLWorkbench -Xmx512m -jar ${PREFIX}/share/${PKGBASE}/sqlworkbench.jar \$${1:+\"\$$@\"}\n" > ${WRKDIR}/sqlworkbench.sh do-install: cd ${WRKSRC} && pax -rwpm . ${DESTDIR}${PREFIX}/share/${PKGBASE} ${INSTALL_SCRIPT} ${WRKDIR}/sqlworkbench.sh ${DESTDIR}${PREFIX}/bin/sqlworkbench .include "../../mk/java-vm.mk" .include "../../mk/bsd.pkg.mk"