From 9103b7b51c7c5f4a4e03116b4331a3774aeace9e Mon Sep 17 00:00:00 2001 From: sobomax Date: Mon, 12 Jun 2000 12:55:46 +0000 Subject: Add support for javavmwrapper. --- java/jdk/Makefile | 5 +++++ java/jdk/pkg-plist | 2 ++ 2 files changed, 7 insertions(+) (limited to 'java/jdk') diff --git a/java/jdk/Makefile b/java/jdk/Makefile index 63ef68f56879..fd3b8d241530 100644 --- a/java/jdk/Makefile +++ b/java/jdk/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 diff --git a/java/jdk/pkg-plist b/java/jdk/pkg-plist index 68a6a3aafe67..647a4e5850ba 100644 --- a/java/jdk/pkg-plist +++ b/java/jdk/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 -- cgit