blob: 8a07df3aa783eddcd9bd8efd305ec9b0c8a54ade (
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
|
# Created by: Aldis Berjoza <graudeejs@gmail.com>
# $FreeBSD$
PORTNAME= sql-workbench
PORTVERSION= 118
CATEGORIES= databases java
MASTER_SITES= http://www.sql-workbench.net/ \
http://www.sql-workbench.net/archive/
DISTNAME= Workbench-Build${PORTVERSION}
MAINTAINER= graudeejs@gmail.com
COMMENT= DBMS-independent, cross-platform SQL query tool
LICENSE= APACHE20
USES= desktop-file-utils zip
USE_JAVA= yes
JAVA_VERSION= 1.8+
NO_BUILD= yes
WRKSRC= ${WRKDIR}
OPTIONS_DEFINE= DOCS MYSQL_JDBC PGSQL_JDBC
MYSQL_JDBC_RUN_DEPENDS= ${JAVALIBDIR}/mysql-connector-java.jar:databases/mysql-connector-java
PGSQL_JDBC_RUN_DEPENDS= ${JAVALIBDIR}/postgresql.jar:databases/postgresql-jdbc
pre-install:
@${ECHO} "#!/bin/sh" > ${WRKSRC}/new_sqlworkbench.sh
@${ECHO} "${PREFIX}/bin/java -Dvisualvm.display.name=SQLWorkbench -Xmx512m -jar ${JAVAJARDIR}/sqlworkbench.jar" >> ${WRKSRC}/new_sqlworkbench.sh
do-install:
(cd ${WRKSRC}/xslt && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/xslt)
${INSTALL_DATA} ${WRKSRC}/SQLWorkbench-Manual.pdf ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/sqlworkbench.jar ${STAGEDIR}${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/SQLWorkbench.desktop ${STAGEDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/workbench32.png ${STAGEDIR}${PREFIX}/share/pixmaps
${INSTALL_SCRIPT} ${WRKSRC}/new_sqlworkbench.sh ${STAGEDIR}${PREFIX}/bin/sqlworkbench
.include <bsd.port.mk>
|