summaryrefslogtreecommitdiff
path: root/www/linux-mozilla-devel/Makefile
diff options
context:
space:
mode:
authorTrevor Johnson <trevor@FreeBSD.org>2002-01-25 20:10:41 +0000
committerTrevor Johnson <trevor@FreeBSD.org>2002-01-25 20:10:41 +0000
commit94b8e0fa7f193b32f7f16dd6cc173842e321ba5e (patch)
treeb581065183ddb6464bcc61175b25485efaf5803f /www/linux-mozilla-devel/Makefile
parentMention the ability of this port to use the plugins bundled with (diff)
Install a new script, linkfarm, with linux-mozilla. This script
makes symlinks under PREFIX/lib/linux-mozilla/plugins/, pointing to anything the script finds in the netscape-linux or linux-netscape6 plugin directories. The script is run automatically on installation of the port or the package and the user is advised to run it after installing new Netscape plugins. Unlike the former arrangement, the symlinks are now removed upon de-installation of linux-mozilla. Increment PORTREVISION.
Notes
Notes: svn path=/head/; revision=53726
Diffstat (limited to 'www/linux-mozilla-devel/Makefile')
-rw-r--r--www/linux-mozilla-devel/Makefile22
1 files changed, 16 insertions, 6 deletions
diff --git a/www/linux-mozilla-devel/Makefile b/www/linux-mozilla-devel/Makefile
index 3d1f9d14bd3b..3742cee60399 100644
--- a/www/linux-mozilla-devel/Makefile
+++ b/www/linux-mozilla-devel/Makefile
@@ -8,6 +8,7 @@
PORTNAME= mozilla
PORTVERSION= 0.9.7
+PORTREVISION= 1
CATEGORIES= www linux
MASTER_SITES= ${MASTER_SITE_MOZILLA}
MASTER_SITE_SUBDIR= mozilla/releases/mozilla${PORTVERSION}/linux-xpi/
@@ -40,6 +41,7 @@ USE_XLIB= yes
USE_LINUX= yes
WRKSRC= ${WRKDIR}/xpi
INSTALL_DIR= ${PREFIX}/lib/linux-mozilla
+PKGMESSAGE= ${WRKDIR}/pkg-message
PLIST= ${WRKDIR}/pkg-plist
STARTUP_CMD= linux-mozilla
@@ -59,30 +61,38 @@ do-configure:
${ECHO} -n "cd " >>${WRKDIR}/${STARTUP_CMD}
${ECHO} ${INSTALL_DIR} >>${WRKDIR}/${STARTUP_CMD}
${ECHO} "exec ./mozilla" >>${WRKDIR}/${STARTUP_CMD}
+ ${ECHO} "#!/bin/sh" >${WRKDIR}/linkfarm
+ ${ECHO} "# Run this after installing Netscape plugins." >>${WRKDIR}/linkfarm
+ ${ECHO} "cd ${PREFIX}/lib/linux-mozilla/plugins" >>${WRKDIR}/linkfarm
+ ${ECHO} -n "${FIND} ../../netscape-linux/plugins/*" >>${WRKDIR}/linkfarm
+ ${ECHO} " -maxdepth 1 -exec ${LN} -s {} \; 2>/dev/null" >>${WRKDIR}/linkfarm
+ ${ECHO} -n "${FIND} ../../linux-netscape6/plugins" >>${WRKDIR}/linkfarm
+ ${ECHO} " -maxdepth 1 -exec ${LN} -s {} \; 2>/dev/null" >>${WRKDIR}/linkfarm
pre-install:
${ECHO} bin/${STARTUP_CMD} > ${PLIST}
+ ${ECHO} "@unexec ${FIND} ${PREFIX}/lib/linux-mozilla/plugins -type l \
+ -exec ${RM} {} \;" >> ${PLIST}
cd ${WRKSRC}/bin; for i in `find * \! -type d | sort`; do \
${ECHO} lib/linux-mozilla/$${i} >> ${PLIST}; \
done
- ${ECHO} lib/linux-mozilla/plugins/libflashplayer.so >> ${PLIST}
- ${ECHO} lib/linux-mozilla/plugins/ShockwaveFlash.class >> ${PLIST}
cd ${WRKSRC}/bin; \
for i in `find -d * -type d`; do \
${ECHO} @dirrm lib/linux-mozilla/$${i} >> ${PLIST}; \
done
+ ${ECHO} lib/linux-mozilla/linkfarm >> ${PLIST}
+ ${ECHO} "@exec ${PREFIX}/lib/linux-mozilla/linkfarm" >> ${PLIST}
${ECHO} @dirrm lib/linux-mozilla >> ${PLIST}
do-install:
${MKDIR} ${INSTALL_DIR}
${CP} -Rp ${WRKSRC}/bin/* ${INSTALL_DIR}
-# These links are broken if the linux-flashplugin package is not installed.
- cd ${PREFIX}/lib/linux-mozilla/plugins \
- && ${LN} -s ../../netscape-linux/plugins/libflashplayer.so \
- && ${LN} -s ../../netscape-linux/plugins/ShockwaveFlash.class
${INSTALL_SCRIPT} ${WRKDIR}/${STARTUP_CMD} ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKDIR}/linkfarm ${PREFIX}/lib/linux-mozilla/
post-install:
+ ${SED} -e 's:PREFIX:${PREFIX}:g' ${PKGDIR}/pkg-message > ${PKGMESSAGE}
+ - ${PREFIX}/lib/linux-mozilla/linkfarm
${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>