summaryrefslogtreecommitdiff
path: root/www/firefox36/Makefile
diff options
context:
space:
mode:
authorAlan Eldridge <alane@FreeBSD.org>2002-12-01 21:37:33 +0000
committerAlan Eldridge <alane@FreeBSD.org>2002-12-01 21:37:33 +0000
commit5526661e030f91311a19423dde0273654964badc (patch)
treeccfcbf801a1a473f65d5ae641be1a8914c5a4b62 /www/firefox36/Makefile
parentmark BROKEN for CURRENT (diff)
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
Notes
Notes: svn path=/head/; revision=71277
Diffstat (limited to 'www/firefox36/Makefile')
-rw-r--r--www/firefox36/Makefile32
1 files changed, 29 insertions, 3 deletions
diff --git a/www/firefox36/Makefile b/www/firefox36/Makefile
index 5a332be83221..ad1a31a770cd 100644
--- a/www/firefox36/Makefile
+++ b/www/firefox36/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