aboutsummaryrefslogtreecommitdiffstats
path: root/java/jdk13
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2002-03-13 23:06:16 +0800
committersobomax <sobomax@FreeBSD.org>2002-03-13 23:06:16 +0800
commitc75ebba576448d2b14807bb61b4f33f8cee11d24 (patch)
treedd52f70a73ebf0d3a6ecff4ac0dac26b10013152 /java/jdk13
parent16c369950621fe2ab7297fcd128bae2d5c976738 (diff)
downloadfreebsd-ports-graphics-c75ebba576448d2b14807bb61b4f33f8cee11d24.tar.gz
freebsd-ports-graphics-c75ebba576448d2b14807bb61b4f33f8cee11d24.tar.zst
freebsd-ports-graphics-c75ebba576448d2b14807bb61b4f33f8cee11d24.zip
Link Mozilla pligin with libXt to make it working with Mozilla-0.9.9. This
resolves the following error when starting Mozilla: LoadPlugin: failed to initialize shared library /usr/local/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so [/usr/local/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so: Undefined symbol "XtShellStrings"] While I'm here add a tweak to prune empty directories before installing JDK, so that JDK installed from a pre-built package deinstalls properly. Bump PORTREVISION.
Diffstat (limited to 'java/jdk13')
-rw-r--r--java/jdk13/Makefile11
-rw-r--r--java/jdk13/files/patch-..::ext::plugin::build::solaris::GNUmakefile14
-rw-r--r--java/jdk13/pkg-plist2
3 files changed, 23 insertions, 4 deletions
diff --git a/java/jdk13/Makefile b/java/jdk13/Makefile
index 72c253daa0c..65a475714ca 100644
--- a/java/jdk13/Makefile
+++ b/java/jdk13/Makefile
@@ -7,7 +7,7 @@
PORTNAME= jdk
PORTVERSION= ${JDK_VERSION}p${JDK_PATCHSET_VERSION}
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= java devel
MASTER_SITES= # http://www.sun.com/software/java2/download.html
# http://www.eyesbeyond.com/freebsddom/java/jdk13.html
@@ -109,6 +109,13 @@ pre-patch:
${MKDIR} -p hotspot1.3.1/src/os_cpu/bsd_i486/vm && \
${PATCH} < ${WRKDIR}/jdk131.patches
+post-build:
+ # Prune empty dirs
+ ${FIND} ${JDKIMAGEDIR} -type d | /usr/bin/sort -r | \
+ ${XARGS} ${RMDIR} 2> /dev/null || ${TRUE}
+ ${FIND} ${JDKIMAGEDIR_G} -type d | /usr/bin/sort -r | \
+ ${XARGS} ${RMDIR} 2> /dev/null || ${TRUE}
+
.if !defined(NODEBUG)
pre-install:
@${ECHO_MSG}
@@ -127,7 +134,7 @@ do-install:
.endif
post-install:
- ${LOCALBASE}/bin/registervm "${PREFIX}/jdk${JDK_VERSION}/bin/java # FREEBSD-JDK${JDK_VERSION}"
+ @${LOCALBASE}/bin/registervm "${PREFIX}/jdk${JDK_VERSION}/bin/java # FREEBSD-JDK${JDK_VERSION}"
.if !defined(WITHOUT_PLUGIN)
@${ECHO_MSG}
@${ECHO_MSG} The use the Java plugin with Mozilla you must create a
diff --git a/java/jdk13/files/patch-..::ext::plugin::build::solaris::GNUmakefile b/java/jdk13/files/patch-..::ext::plugin::build::solaris::GNUmakefile
new file mode 100644
index 00000000000..3f6876b47f3
--- /dev/null
+++ b/java/jdk13/files/patch-..::ext::plugin::build::solaris::GNUmakefile
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- ../ext/plugin/build/solaris/GNUmakefile 2002/03/13 13:35:23 1.1
++++ ../ext/plugin/build/solaris/GNUmakefile 2002/03/13 13:36:33
+@@ -645,7 +645,7 @@
+ $(PLUGIN_OJI): $(NAVIG5_OFILES) $(COMMON_OFILES_GNU)
+ export LD_LIBRARY_PATH; LD_LIBRARY_PATH=$(X11_LIB); \
+ $(GCC) $(GCCPIC) $(GCCLD_SHARELIB_FLAG) $(LDFLAGS) -o $(@) \
+- $(NAVIG5_OFILES) $(COMMON_OFILES_GNU)
++ $(NAVIG5_OFILES) $(COMMON_OFILES_GNU) -L$(X11_LIB) -lXt
+
+ clean clobber::
+ /bin/rm -f -r $(TMP_DIR) $(OUTPUT_DIR)/plugin
diff --git a/java/jdk13/pkg-plist b/java/jdk13/pkg-plist
index 24a647f4622..9f4e1ea946e 100644
--- a/java/jdk13/pkg-plist
+++ b/java/jdk13/pkg-plist
@@ -960,10 +960,8 @@ jdk%%JDK_VERSION%%/src.jar
@dirrm jdk%%JDK_VERSION%%/jre/lib/i386/classic
@dirrm jdk%%JDK_VERSION%%/jre/lib/i386
@dirrm jdk%%JDK_VERSION%%/jre/lib/fonts
-@dirrm jdk%%JDK_VERSION%%/jre/lib/ext
@dirrm jdk%%JDK_VERSION%%/jre/lib/cmm
@dirrm jdk%%JDK_VERSION%%/jre/lib/audio
-@dirrm jdk%%JDK_VERSION%%/jre/lib/applet
@dirrm jdk%%JDK_VERSION%%/jre/lib
@dirrm jdk%%JDK_VERSION%%/jre/bin/i386/native_threads
@dirrm jdk%%JDK_VERSION%%/jre/bin/i386/green_threads