aboutsummaryrefslogtreecommitdiffstats
path: root/java/jdk11
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2000-06-12 20:55:46 +0800
committersobomax <sobomax@FreeBSD.org>2000-06-12 20:55:46 +0800
commit9103b7b51c7c5f4a4e03116b4331a3774aeace9e (patch)
treed7a447373eaeed91dca8d31d13e5f8b1cb8326ed /java/jdk11
parent9bba5d97cd658247c56d69eaa0fb32320246c841 (diff)
downloadfreebsd-ports-gnome-9103b7b51c7c5f4a4e03116b4331a3774aeace9e.tar.gz
freebsd-ports-gnome-9103b7b51c7c5f4a4e03116b4331a3774aeace9e.tar.zst
freebsd-ports-gnome-9103b7b51c7c5f4a4e03116b4331a3774aeace9e.zip
Add support for javavmwrapper.
Diffstat (limited to 'java/jdk11')
-rw-r--r--java/jdk11/Makefile5
-rw-r--r--java/jdk11/pkg-plist2
2 files changed, 7 insertions, 0 deletions
diff --git a/java/jdk11/Makefile b/java/jdk11/Makefile
index 63ef68f56879..fd3b8d241530 100644
--- a/java/jdk11/Makefile
+++ b/java/jdk11/Makefile
@@ -13,6 +13,8 @@ MASTER_SITES= ftp://ftp.sc.sri.com/pub/FreeBSD/JDK/ \
MAINTAINER= nate@FreeBSD.org
+RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper
+
NO_CDROM= "License doesn't allow distribution with fee"
ONLY_FOR_ARCHS= i386
@@ -37,4 +39,7 @@ do-install:
${MKDIR} ${PREFIX}/share/java/classes
${MKDIR} ${PREFIX}/share/doc/java
+post-install:
+ ${LOCALBASE}/bin/registervm "${PREFIX}/jdk${JDK_VERSION}/bin/java # JDK${JDK_VERSION}"
+
.include <bsd.port.post.mk>
diff --git a/java/jdk11/pkg-plist b/java/jdk11/pkg-plist
index 68a6a3aafe67..647a4e5850ba 100644
--- a/java/jdk11/pkg-plist
+++ b/java/jdk11/pkg-plist
@@ -521,6 +521,8 @@ jdk%%JDK_VERSION%%/index.html
@unexec rmdir %D/share/java/classes
@unexec rmdir %D/share/java
@unexec rmdir %D/share/doc/java
+@exec %D/bin/registervm "%D/jdk%%JDK_VERSION%%/bin/java # JDK%%JDK_VERSION%%"
+@unexec %D/bin/unregistervm JDK%%JDK_VERSION%%
@dirrm jdk%%JDK_VERSION%%/lib/security
@dirrm jdk%%JDK_VERSION%%/lib/locale/ja_JP.UTF-8/app-defaults
@dirrm jdk%%JDK_VERSION%%/lib/locale/ja_JP.UTF-8