diff options
author | marcus <marcus@FreeBSD.org> | 2003-11-15 10:18:30 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-11-15 10:18:30 +0800 |
commit | 900d3d3b78be2becdfc03e72b6aae1981c492d58 (patch) | |
tree | 3d9c96e169fbca15d79f20b4af8980e1b4b3e7db /www/mozilla | |
parent | 729844df8b49cc2b739f679f60c0f15ea8b690f2 (diff) | |
download | freebsd-ports-gnome-900d3d3b78be2becdfc03e72b6aae1981c492d58.tar.gz freebsd-ports-gnome-900d3d3b78be2becdfc03e72b6aae1981c492d58.tar.zst freebsd-ports-gnome-900d3d3b78be2becdfc03e72b6aae1981c492d58.zip |
Only add the plug-in symlink to the plist if we're actually going to create
it. This fixes a packaging problem on bento. Also, break out of the for loop
once we find a suitable plug-in.
Diffstat (limited to 'www/mozilla')
-rw-r--r-- | www/mozilla/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/www/mozilla/Makefile b/www/mozilla/Makefile index 30a6a780f055..1f1f3cb6e921 100644 --- a/www/mozilla/Makefile +++ b/www/mozilla/Makefile @@ -242,7 +242,12 @@ pre-install: ${ECHO_CMD} bin/${MOZILLA} >> ${PLIST} ; \ fi if [ ! -L ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so ]; then \ - ${ECHO_CMD} lib/browser_plugins/libjavaplugin_oji.so >> ${PLIST} ; \ + for jpi in ${JPI_LIST}; do \ + if [ -f $${jpi} ]; then \ + ${ECHO_CMD} lib/browser_plugins/libjavaplugin_oji.so >> ${PLIST} ; \ + break; \ + fi; \ + done; \ ${ECHO_CMD} @dirrm lib/browser_plugins >> ${PLIST} ; \ fi cd ${WRKSRC}/dist/bin && ${FIND} -s * -type f -o -type l | \ @@ -271,6 +276,7 @@ do-install: if [ -f $${jpi} ]; then \ ${LN} -sf $${jpi} \ ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so ; \ + break; \ fi; \ done; \ fi |