diff options
author | alane <alane@FreeBSD.org> | 2002-12-02 05:37:33 +0800 |
---|---|---|
committer | alane <alane@FreeBSD.org> | 2002-12-02 05:37:33 +0800 |
commit | cb0e1904cea04420a1f4949a5cf24d700f40c6c0 (patch) | |
tree | b9e2b2521168b1c7039f4e9f7da925d4d434ee0d /www/firefox/Makefile | |
parent | 036fd295f6cabc283f6c12b47d02be23733cee03 (diff) | |
download | freebsd-ports-gnome-cb0e1904cea04420a1f4949a5cf24d700f40c6c0.tar.gz freebsd-ports-gnome-cb0e1904cea04420a1f4949a5cf24d700f40c6c0.tar.zst freebsd-ports-gnome-cb0e1904cea04420a1f4949a5cf24d700f40c6c0.zip |
1. Add a link to support the java plugin. Thanks to Khairil Yusof
<kaeru@pd.jaring.my> for this tip.
2. Build the plist automagically in a post-install target.
Approved by: kris
Diffstat (limited to 'www/firefox/Makefile')
-rw-r--r-- | www/firefox/Makefile | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/www/firefox/Makefile b/www/firefox/Makefile index 5a332be83221..ad1a31a770cd 100644 --- a/www/firefox/Makefile +++ b/www/firefox/Makefile @@ -9,7 +9,7 @@ PORTNAME= phoenix PORTVERSION= 0.4 -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= www # pita MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= trevor @@ -45,7 +45,10 @@ LIBS+= ${PTHREAD_LIBS} NO_MTREE= yes WRKSRC= ${WRKDIR}/mozilla -LOCAL_PREFIX= ${PREFIX}/lib/${PORTNAME} +LOCAL_SUBDIR= lib/${PORTNAME} +LOCAL_PREFIX= ${PREFIX}/${LOCAL_SUBDIR} +JREDIR= ${LOCALBASE}/jdk1.3.1/jre +PLUGINSDIR= ${LOCAL_PREFIX}/lib/mozilla-1.2b/plugins/ .include <bsd.port.pre.mk> @@ -56,6 +59,9 @@ BROKEN+="If you have installed a Perl port, and are getting this message," BROKEN+="please make sure you have issued the command 'use.perl port'" .endif # ${PERL_LEVEL} < 500601 +SORT?=/usr/bin/sort +PLIST=${WRKDIR}/plist + pre-extract:: @${ECHO_MSG} @${ECHO_MSG} "Extracting source (this takes a while) ..." @@ -77,6 +83,10 @@ post-patch: ${REINPLACE_CMD} -e 's|X11/Xft/Xft\.h|X11/Xft/Xft2.h|g' \ nsDrawingSurfaceGTK.cpp nsFontMetricsXft.h +pre-install: + ${RM} -f ${PLIST} + ${TOUCH} ${PLIST} + post-install: @${RM} -f ${PREFIX}/bin/phoenix @${LN} -s ${LOCAL_PREFIX}/bin/phoenix \ @@ -87,7 +97,23 @@ post-install: @${CAT} ${PKGMESSAGE} 2>/dev/null @${RM} -fr ${LOCAL_PREFIX}/share/idl @${RM} -fr ${LOCAL_PREFIX}/include + -${RM} -f ${PLUGINSDIR}/libjavaplugin_oji.so + -${LN} -sf \ + ${JREDIR}/plugin/i386/ns600/libjavaplugin_oji.so \ + ${PLUGINSDIR}/libjavaplugin_oji.so + -${RM} -f ${PLIST} + ${ECHO_CMD} bin/phoenix >>${PLIST} + ${ECHO_CMD} bin/phoenix-config >>${PLIST} + cd ${PREFIX}; \ + ${FIND} ${LOCAL_SUBDIR} ! -type d | ${SORT} >>${PLIST}; \ + ${FIND} ${LOCAL_SUBDIR} -type d -empty | ${SORT} \ + | ${SED} -e "s:^:@exec /bin/mkdir -p %D/:" -e "s:$$: || true:" \ + >> ${PLIST}; \ + ${FIND} ${LOCAL_SUBDIR} -type d -empty | ${SORT} -r \ + | ${SED} -e "s:^:@unexec /bin/rmdir %D/:" -e "s:$$: || true:" \ + >> ${PLIST}; \ + ${FIND} ${LOCAL_SUBDIR} -type d ! -empty | ${SORT} -r \ + | ${SED} -e "s:^:@dirrm :" >> ${PLIST} .include <bsd.port.post.mk> - #EOF |