summaryrefslogtreecommitdiff
path: root/databases/sql-workbench/Makefile
blob: ae585139966527c03ffda5f0c31acbe10439a14b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# $NetBSD: Makefile,v 1.6 2019/10/10 13:32:04 gdt Exp $

DISTNAME=	Workbench-Build124
PKGNAME=	sql-workbench-124
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

# Apache, except not granted to certain entities
LICENSE=	generic-nonlicense
RESTRICTED=	Some entities are not permitted to use/download.
NO_SRC_ON_FTP=		${RESTRICTED}
NO_BIN_ON_FTP=		${RESTRICTED}
NO_SRC_ON_CDROM=	${RESTRICTED}
NO_BIN_ON_CDROM=	${RESTRICTED}

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"