freebsd-ports/databases/sqldeveloper/Makefile
Vladimir Druzenko a011d7aaa5 databases/sqldeveloper: make depends from java/openjfx14 mandatory
The SQLDeveloper distribution has built-in OpenJFX for other OSes,
and it can work with it on FreeBSD (by forcing the path to one of them),
but not all functions work.
We have very little reason to keep this option, then we have a fully
functional port java/openjfx14.

Approved by:	arrowd (mentor)
2024-01-12 20:17:51 +03:00

81 lines
2.7 KiB
Makefile

PORTNAME= sqldeveloper
DISTVERSION= 23.1.1.345.2114
PORTREVISION= 2
DISTVERSIONSUFFIX= -no-jre
CATEGORIES= databases java
# https://www.oracle.com/tools/downloads/sqldev-downloads.html
MASTER_SITES=
DIST_SUBDIR= oracle
MAINTAINER= vvd@FreeBSD.org
COMMENT= Graphical tool for database development
WWW= https://www.oracle.com/database/technologies/appdev/sqldeveloper-landing.html
# https://www.oracle.com/downloads/licenses/sqldev-license.html
LICENSE_NAME= OTN
LICENSE_PERMS= no-dist-mirror no-dist-sell no-pkg-mirror
RUN_DEPENDS= openjfx14>=0:java/openjfx14 \
bash:shells/bash
USES= gnome zip
USE_JAVA= yes
JAVA_VERSION= 11+
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
NO_ARCH= yes
NO_BUILD= yes
SUB_FILES= ${PORTNAME}.desktop ${PORTNAME}.sh
SUB_LIST= JAVA_HOME=${JAVA_HOME} \
PORTNAME=${PORTNAME}
WRKSRC= ${WRKDIR}/${PORTNAME}
SUB_LIST+= OPENJFX14_JVM_OPTIONS="-J--module-path=${LOCALBASE}/openjfx14/lib -J--add-modules=javafx.swing,javafx.web"
.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 \
https://www.oracle.com/tools/downloads/sqldev-downloads.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 equinox \
external ide javavm jdbc jdev jlib jviews modules \
netbeans 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
${RM} -r ${STAGEDIR}/${DATADIR}/modules/javafx
${RM} -r ${STAGEDIR}/${DATADIR}/netbeans/platform/modules/lib
@${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>