8dea61a655
While here, clean up a bit PR: 237417 Submitted by: VVD <vvd@unislabs.com) Reported by: pi Approved by: Michael Zhilin <mizhka@gmail.com> (maintainer)
79 lines
2.5 KiB
Makefile
79 lines
2.5 KiB
Makefile
# Created by: jjuanino@gmail.com
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= sqldeveloper
|
|
DISTVERSION= 19.1.0.094.2042
|
|
DISTVERSIONSUFFIX= -no-jre
|
|
CATEGORIES= databases java
|
|
#http://www.oracle.com/technetwork/developer-tools/sql-developer/overview/index.html
|
|
MASTER_SITES=
|
|
DIST_SUBDIR= oracle
|
|
|
|
MAINTAINER= mizhka@gmail.com
|
|
COMMENT= Graphical tool for database development
|
|
|
|
RUN_DEPENDS= bash:shells/bash \
|
|
openjfx8-devel>0:java/openjfx8-devel
|
|
|
|
USES= gnome zip
|
|
|
|
# http://www.oracle.com/technetwork/licenses/sqldev-license-152021.html
|
|
LICENSE_NAME= OTN
|
|
LICENSE_PERMS= no-dist-mirror no-dist-sell no-pkg-mirror
|
|
|
|
USE_JAVA= yes
|
|
INSTALLS_ICONS= yes
|
|
|
|
JAVA_VERSION= 1.8+
|
|
|
|
NO_BUILD= yes
|
|
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
SUB_FILES= ${PORTNAME}.desktop ${PORTNAME}.sh
|
|
SUB_LIST= JAVA_HOME=${JAVA_HOME} \
|
|
PORTNAME=${PORTNAME}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX})
|
|
IGNORE= due to Oracle license restrictions, you must fetch the source \
|
|
distribution manually. Please access \
|
|
http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html \
|
|
with a web browser and follow the link for the ${DISTFILES}. You will be \
|
|
required to register and log in, but you can create an account on that \
|
|
page. After registration and accepting the Oracle License, download the \
|
|
distribution file, ${DISTFILES}, into ${DISTDIR}/${DIST_SUBDIR}/ and then \
|
|
restart this installation
|
|
.endif
|
|
|
|
do-install:
|
|
${ECHO_MSG} -n ">> Installing scripts..."
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}/${PREFIX}/bin/${PORTNAME}
|
|
${ECHO_MSG} " [ DONE ]"
|
|
|
|
.for d in configuration dataminer dropins dvt equinox \
|
|
external ide javavm jdbc jdev jlib jviews module modules \
|
|
netbeans ords rdbms sleepycat sqldeveloper sqlj svnkit
|
|
${ECHO_MSG} -n ">> Installing data directory '${d}'..."
|
|
cd ${WRKSRC} && ${FIND} ${d} -type d \
|
|
-exec ${MKDIR} ${STAGEDIR}/${DATADIR}/\{} \;
|
|
cd ${WRKSRC} && ${FIND} ${d} -type f \
|
|
-not -name "*.exe" \
|
|
-not -name "*.dll" \
|
|
-not -name "*.so" \
|
|
-not -name "*.jnilib" \
|
|
-exec ${INSTALL_DATA} \{} ${STAGEDIR}/${DATADIR}/\{} \;
|
|
${ECHO_MSG} " [ DONE ]"
|
|
.endfor
|
|
|
|
@${ECHO_MSG} ">> Installing icon and desktop file ..."
|
|
@${MKDIR} ${STAGEDIR}/${PREFIX}/share/applications/ \
|
|
${STAGEDIR}/${PREFIX}/share/icons/hicolor/32x32/apps/
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${STAGEDIR}/${PREFIX}/share/applications/
|
|
${INSTALL_DATA} ${WRKSRC}/icon.png ${STAGEDIR}/${PREFIX}/share/icons/hicolor/32x32/apps/${PORTNAME}.png
|
|
|
|
${ECHO_MSG} " [ DONE ]"
|
|
|
|
.include <bsd.port.post.mk>
|