aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2002-10-23 04:43:15 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2002-10-23 04:43:15 +0000
commit6e10330cc5694fb168941322e37245be4c28be26 (patch)
treec291e7771b901736a76de9b74f0216081412b5d8
parent003058e18e23d2613ff372ef7aeee429c68bb6a6 (diff)
downloadports-6e10330cc5694fb168941322e37245be4c28be26.tar.gz
ports-6e10330cc5694fb168941322e37245be4c28be26.zip
Notes
-rw-r--r--www/mozilla-vendor/Makefile28
-rw-r--r--www/mozilla-vendor/files/patch-build_unix_run-mozilla.sh15
-rw-r--r--www/mozilla/Makefile17
-rw-r--r--www/mozilla/files/patch-build_unix_run-mozilla.sh15
4 files changed, 52 insertions, 23 deletions
diff --git a/www/mozilla-vendor/Makefile b/www/mozilla-vendor/Makefile
index a3736f03e4ff..603c6e7fb3bc 100644
--- a/www/mozilla-vendor/Makefile
+++ b/www/mozilla-vendor/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mozilla
PORTVERSION= 1.0.1
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_MOZILLA} \
http://people.FreeBSD.org/~marcus/:local
@@ -125,11 +126,13 @@ post-build:
pre-install:
${TOUCH} -f ${PLIST}
- ${TEST} ! -x ${PREFIX}/bin/mozilla && ${TEST} ! -L ${PREFIX}/bin/mozilla && \
- ${ECHO_CMD} bin/mozilla >> ${PLIST}
+ if [ ! -x ${PREFIX}/bin/mozilla -a ! -L ${PREFIX}/bin/mozilla ]; then
+ ${ECHO_CMD} bin/mozilla >> ${PLIST}
+ fi
${ECHO_CMD} bin/mozilla-vendor >> ${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-vendor/:' >> ${PLIST} \
&& ${FIND} -d * -type d | \
@@ -142,13 +145,16 @@ do-install:
cd ${WRKSRC}/dist/bin && ${FIND} . | \
cpio -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/mozilla-vendor
${INSTALL_SCRIPT} ${WRKSRC}/mozilla ${PREFIX}/bin/mozilla-vendor
- ${TEST} ! -x ${PREFIX}/bin/mozilla && ${TEST} ! -L ${PREFIX}/bin/mozilla &&
- ${LN} -sf ${PREFIX}/bin/mozilla-vendor ${PREFIX}/bin/mozilla
- ${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 \
- ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so
+ if [ ! -x ${PREFIX}/bin/mozilla -a ! -L ${PREFIX}/bin/mozill ]; then
+ ${LN} -sf ${PREFIX}/bin/mozilla-vendor ${PREFIX}/bin/mozilla
+ fi
+ 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-vendor/files/patch-build_unix_run-mozilla.sh b/www/mozilla-vendor/files/patch-build_unix_run-mozilla.sh
index 090b8201eb13..1c72ff482f71 100644
--- a/www/mozilla-vendor/files/patch-build_unix_run-mozilla.sh
+++ b/www/mozilla-vendor/files/patch-build_unix_run-mozilla.sh
@@ -1,5 +1,14 @@
---- build/unix/run-mozilla.sh.orig Thu Oct 17 00:07:52 2002
-+++ build/unix/run-mozilla.sh Thu Oct 17 00:08:24 2002
+--- build/unix/run-mozilla.sh.orig Wed Oct 23 00:40:21 2002
++++ build/unix/run-mozilla.sh Wed Oct 23 00:41:01 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 ]
diff --git a/www/mozilla/Makefile b/www/mozilla/Makefile
index 89272b0913b2..bb9ed664a9bb 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 6f5bef8901f5..96084fd68646 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 ]