aboutsummaryrefslogtreecommitdiffstats
path: root/www/mozilla
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2002-10-23 12:43:15 +0800
committermarcus <marcus@FreeBSD.org>2002-10-23 12:43:15 +0800
commitfeeb650168744e79aae0b87434baa948d95898b2 (patch)
tree1db37e152026f98fdf9e06dacb60a0a2b7c66209 /www/mozilla
parentfd4cbc9f7f00a152321ad7edb1842f11cc6c7289 (diff)
downloadfreebsd-ports-graphics-feeb650168744e79aae0b87434baa948d95898b2.tar.gz
freebsd-ports-graphics-feeb650168744e79aae0b87434baa948d95898b2.tar.zst
freebsd-ports-graphics-feeb650168744e79aae0b87434baa948d95898b2.zip
* Fix a problem with plugins not actually loading
* Hopefully correct some issues with installs erroring out with Error 1
Diffstat (limited to 'www/mozilla')
-rw-r--r--www/mozilla/Makefile17
-rw-r--r--www/mozilla/files/patch-build_unix_run-mozilla.sh15
2 files changed, 23 insertions, 9 deletions
diff --git a/www/mozilla/Makefile b/www/mozilla/Makefile
index 89272b0913b..bb9ed664a9b 100644
--- a/www/mozilla/Makefile
+++ b/www/mozilla/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mozilla
PORTVERSION= 1.1
+PORTREVISION= 1
PORTEPOCH= 2
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_MOZILLA} \
@@ -123,8 +124,9 @@ post-build:
pre-install:
${ECHO_CMD} bin/mozilla > ${PLIST}
- ${TEST} ! -L ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so && \
- ${ECHO_CMD} lib/browser_plugins/libjavaplugin_oji.so >> ${PLIST}
+ if [ ! -L ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so ]; then
+ ${ECHO_CMD} lib/browser_plugins/libjavaplugin_oji.so >> ${PLIST}
+ fi
cd ${WRKSRC}/dist/bin && ${FIND} -s * -type f -o -type l | \
${SED} -e 's:^:lib/mozilla/:' >> ${PLIST} \
&& ${FIND} -d * -type d | \
@@ -137,11 +139,14 @@ do-install:
cd ${WRKSRC}/dist/bin && ${FIND} . | \
cpio -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/mozilla
${INSTALL_SCRIPT} ${WRKSRC}/mozilla ${PREFIX}/bin
- ${TEST} ! -d ${PREFIX}/lib/browser_plugins && \
- ${MKDIR} ${PREFIX}/lib/browser_plugins
- ${TEST} ! -L ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so && \
- ${LN} -sf ${LOCALBASE}/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so \
+ if [ ! -d ${PREFIX}/lib/browser_plugins ]; then
+ ${MKDIR} ${PREFIX}/lib/browser_plugins
+ fi
+ if [ ! -L ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so ]; then
+
+ ${LN} -sf ${LOCALBASE}/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so \
${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so
+ fi
post-install:
@${CAT} ${PKGMESSAGE}
diff --git a/www/mozilla/files/patch-build_unix_run-mozilla.sh b/www/mozilla/files/patch-build_unix_run-mozilla.sh
index 6f5bef8901f..96084fd6864 100644
--- a/www/mozilla/files/patch-build_unix_run-mozilla.sh
+++ b/www/mozilla/files/patch-build_unix_run-mozilla.sh
@@ -1,5 +1,14 @@
---- build/unix/run-mozilla.sh.orig Thu Oct 17 00:00:21 2002
-+++ build/unix/run-mozilla.sh Thu Oct 17 00:01:24 2002
+--- build/unix/run-mozilla.sh.orig Wed Oct 23 00:08:03 2002
++++ build/unix/run-mozilla.sh Wed Oct 23 00:08:59 2002
+@@ -355,7 +355,7 @@
+ fi
+ ##
+ ## Set LD_LIBRARY_PATH
+-LD_LIBRARY_PATH=${MOZ_DIST_BIN}:${MOZ_DIST_BIN}/plugins:${MRE_HOME}${LD_LIBRARY_PATH+":$LD_LIBRARY_PATH"}
++LD_LIBRARY_PATH=${MOZ_DIST_BIN}:${MOZ_DIST_BIN}/plugins:%%PREFIX%%/lib/browser_plugins:${MRE_HOME}${LD_LIBRARY_PATH+":$LD_LIBRARY_PATH"}
+ if [ -n "$LD_LIBRARYN32_PATH" ]
+ then
+ LD_LIBRARYN32_PATH=${MOZ_DIST_BIN}:${MOZ_DIST_BIN}/plugins:${MRE_HOME}${LD_LIBRARYN32_PATH+":$LD_LIBRARYN32_PATH"}
@@ -392,7 +392,7 @@
export XSUNTRANSPORT XSUNSMESIZE
fi
@@ -14,7 +23,7 @@
export MOZILLA_FIVE_HOME LD_LIBRARY_PATH
export SHLIB_PATH LIBPATH LIBRARY_PATH ADDON_PATH DYLD_LIBRARY_PATH
+
-+MOZ_PLUGIN_PATH %%PREFIX%%/lib/browser_plugins
++MOZ_PLUGIN_PATH=%%PREFIX%%/lib/browser_plugins
+export MOZ_PLUGIN_PATH
if [ $moz_debug -eq 1 ]