aboutsummaryrefslogtreecommitdiff
path: root/www/firefox3-devel/Makefile
diff options
context:
space:
mode:
authorJeremy Messenger <mezz@FreeBSD.org>2005-08-28 07:59:05 +0000
committerJeremy Messenger <mezz@FreeBSD.org>2005-08-28 07:59:05 +0000
commit0083ef4403a5409b575af728a51b7caf9603b374 (patch)
tree3c67b88f3dedcf171bb748da660c469946a2706f /www/firefox3-devel/Makefile
parent9e389814c321a23b61eb0beb65d8994791245073 (diff)
downloadports-0083ef4403a5409b575af728a51b7caf9603b374.tar.gz
ports-0083ef4403a5409b575af728a51b7caf9603b374.zip
- Make portlint happier.
- Add Java 5 plugins support. [1] - Use system's libm (/usr/src/lib/msun), nss, nspr and etc. Also, do not extract those. Better explain, use external dependencies. [1] - Teach firefox-config and *.pc files for nspr that will making other third apps to buildable like epiphany, vlc-devel's mozilla plugins and etc. Have been tested with full GNOME 2.11.x build too. - Add four patches: [1] patch-bugzilla243151: https://bugzilla.mozilla.org/show_bug.cgi?id=243151 patch-jsosdep: Fix the FreeBSD define patch-oji-threads: 64-bit wide pthread_t patch-xptcinvoke_x86_64_linux: Setting a possibly uninitialized variable (value). - Fix a crash that can occur using gtk+-2.7 and possibly 2.6.10 when closing windows. https://bugzilla.mozilla.org/show_bug.cgi?id=3002 [2] - Get rid of FIREFOX and FF_VER, best to use PORTNAME and PORTVERSION varibles that are arleady exist and lesser complicate. - Change all hardcore of 'firefox' to PORTNAME. - Change a manual loop for patch all.js to find(1), so we can sleep on it. Submitted by: mi [1], marcus [2] Reviewed by: my team, FreeBSD GNOME Team. Tested by: many
Notes
Notes: svn path=/head/; revision=141034
Diffstat (limited to 'www/firefox3-devel/Makefile')
-rw-r--r--www/firefox3-devel/Makefile146
1 files changed, 79 insertions, 67 deletions
diff --git a/www/firefox3-devel/Makefile b/www/firefox3-devel/Makefile
index bf5d53216b71..05fb6c5c736a 100644
--- a/www/firefox3-devel/Makefile
+++ b/www/firefox3-devel/Makefile
@@ -3,11 +3,12 @@
# Whom: Alan Eldridge <alane@FreeBSD.org>
#
# $FreeBSD$
+# $MCom: ports-stable/www/firefox/Makefile,v 1.18 2005/08/20 21:53:54 mezz Exp $
#
PORTNAME= firefox
PORTVERSION= 1.0.6
-PORTREVISION= 1
+PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_MOZILLA}
@@ -17,8 +18,10 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-source
MAINTAINER= gnome@FreeBSD.org
COMMENT= Web browser based on the browser portion of Mozilla
-LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
- png.5:${PORTSDIR}/graphics/png
+LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \
+ nspr4:${PORTSDIR}/devel/nspr \
+ png:${PORTSDIR}/graphics/png \
+ nss3:${PORTSDIR}/security/nss
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip
ALL_TARGET= default
@@ -41,29 +44,35 @@ PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
EXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude */CVS/* \
--exclude */macbuild/*\
+ --exclude */nsprpub/*\
--exclude */package/* \
+ --exclude */zlib/ \
+ --exclude mozilla/modules/libimg/png \
+ --exclude mozilla/jpeg \
+ --exclude mozilla/dbm \
+ --exclude mozilla/js/src/fdlibm \
+ --exclude mozilla/security/nss \
+ --exclude mozilla/gc/boehm \
--exclude .cvsignore \
--exclude makefile.win \
--exclude MANIFEST
-FIREFOX= ${PORTNAME}
-FF_VER= ${PORTVERSION}
+PORTNAME_ICON= ${PREFIX}/lib/${PORTNAME}/chrome/icons/default/default.xpm
-FIREFOX_ICON= ${PREFIX}/lib/${FIREFOX}/chrome/icons/default/default.xpm
-
-PKGCONFIG_FILES=firefox-gtkmozembed firefox-js firefox-xpcom \
- firefox-nspr firefox-nss firefox-plugin
+PKGCONFIG_FILES=${PORTNAME}-gtkmozembed ${PORTNAME}-js ${PORTNAME}-xpcom \
+ ${PORTNAME}-plugin
JPI_LIST?=\
+ ${LOCALBASE}/jdk1.5.0/jre/plugin/${ARCH}/ns610/libjavaplugin_oji.so \
${LOCALBASE}/jdk1.4.2/jre/plugin/${ARCH}/ns610/libjavaplugin_oji.so \
${LOCALBASE}/jdk1.4.1/jre/plugin/${ARCH}/ns610/libjavaplugin_oji.so \
${LOCALBASE}/diablo-jdk1.3.1/jre/plugin/${ARCH}/ns600/libjavaplugin_oji.so \
${LOCALBASE}/jdk1.3.1/jre/plugin/${ARCH}/ns600/libjavaplugin_oji.so
-SYSTEM_PREFS= ${FAKEDIR}/lib/${FIREFOX}-${FF_VER}/defaults/pref/firefox.js
-SCRIPTS_DIR= ${FAKEDIR}/lib/${FIREFOX}-${FF_VER}
-MOZ_PIS_SCRIPTS= S50cleanhome
-MOZ_PIS_DIR= ${SCRIPTS_DIR}/init.d
+SYSTEM_PREFS= ${FAKEDIR}/lib/${PORTNAME}-${PORTVERSION}/defaults/pref/${PORTNAME}.js
+SCRIPTS_DIR= ${FAKEDIR}/lib/${PORTNAME}-${PORTVERSION}
+MOZ_PIS_SCRIPTS=S50cleanhome
+MOZ_PIS_DIR= ${SCRIPTS_DIR}/init.d
OPTIONS= DEBUG "Build a debugging image" off \
LOGGING "Enable additional log messages" off \
@@ -131,24 +140,28 @@ post-extract::
-e 's|@FAKEDIR@|${FAKEDIR}|' \
-e 's|@PERL@|${PERL5}|' \
<${FILESDIR}/mozconfig.in >${WRKSRC}/.mozconfig
- @${SED} -e 's|@FIREFOX_ICON@|${FIREFOX_ICON}|' \
- <${FILESDIR}/firefox.desktop.in >${WRKDIR}/firefox.desktop
+ @${SED} -e 's|@PORTNAME_ICON@|${PORTNAME_ICON}|' \
+ <${FILESDIR}/${PORTNAME}.desktop.in >${WRKDIR}/${PORTNAME}.desktop
post-patch:
- @${SED} -e 's|%%MOZDIR%%|${PREFIX}/lib/${FIREFOX}|g ; \
+ @${REINPLACE_CMD} -e 's/%{idldir}/%idldir%/g ; \
+ s|"%FULL_NSPR_CFLAGS%"|`nspr-config --cflags`|g ; \
+ s|"%FULL_NSPR_LIBS%"|`nspr-config --libs`|g' \
+ ${WRKSRC}/build/unix/mozilla-config.in
+ @${SED} -e 's|%%MOZDIR%%|${PREFIX}/lib/${PORTNAME}|g ; \
s|%%PREFIX%%|${PREFIX}|g ; \
s|%%X11BASE%%|${X11BASE}|g' \
< ${MASTERDIR}/pkg-install.in > ${PKGINSTALL}
- @${SED} -e 's|%%MOZDIR%%|${PREFIX}/lib/${FIREFOX}|g' \
+ @${SED} -e 's|%%MOZDIR%%|${PREFIX}/lib/${PORTNAME}|g' \
< ${MASTERDIR}/pkg-deinstall.in > ${PKGDEINSTALL}
.for ii in ${EXTRA_SCRIPTS}
- @${SED} -e 's|%%MOZILLA%%|${FIREFOX}|g ; \
+ @${SED} -e 's|%%MOZILLA%%|${PORTNAME}|g ; \
s|%%PREFIX%%|${PREFIX}|g ; \
s|%%X11BASE%%|${X11BASE}|g' \
< ${FILESDIR}/${ii} > ${WRKDIR}/${ii}
.endfor
.for ii in ${MOZ_PIS_SCRIPTS}
- @${SED} -e 's|%%MOZILLA%%|${FIREFOX}|g ; \
+ @${SED} -e 's|%%MOZILLA%%|${PORTNAME}|g ; \
s|%%PREFIX%%|${PREFIX}|g ; \
s|%%X11BASE%%|${X11BASE}|g' \
< ${FILESDIR}/moz_pis_${ii} > ${WRKDIR}/moz_pis_${ii}
@@ -157,10 +170,8 @@ post-patch:
${WRKSRC}/build/unix/run-mozilla.sh
@${REINPLACE_CMD} -e 's|-lc_r|${PTHREAD_LIBS}|g ; \
s|-lpthread|${PTHREAD_LIBS}|g' \
- ${WRKSRC}/configure \
- ${WRKSRC}/nsprpub/configure
+ ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' \
- ${WRKSRC}/nsprpub/config/config.mk \
${WRKSRC}/security/coreconf/FreeBSD.mk \
${WRKSRC}/directory/c-sdk/config/FreeBSD.mk \
${WRKSRC}/js/src/Makefile.in
@@ -168,12 +179,12 @@ post-patch:
${WRKSRC}/widget/src/gtk2/nsSound.cpp
@${REINPLACE_CMD} -E -e 's|libcups\.so\.[0-9]+|libcups.so|g' \
${WRKSRC}/gfx/src/gtk/nsDeviceContextSpecG.cpp
-.for ii in modules/libpref/src/init extensions/sroaming/resources/content/prefs \
- embedding/minimo
- @${REINPLACE_CMD} -e '/accessibility.typeaheadfind.enablesound/s/true/false/ ; \
- /dom.disable_window_open_feature.toolbar/s/false/true/' \
- ${WRKSRC}/${ii}/all.js
-.endfor
+ @${REINPLACE_CMD} -e 's|/usr/local/netscape|${LOCALBASE}|g' \
+ -e 's|/usr/local/lib/netscape|${LOCALBASE}/lib|g' \
+ ${WRKSRC}/xpcom/*/SpecialSystemDirectory.cpp
+ @${FIND} ${WRKSRC} -name all.js | ${XARGS} ${REINPLACE_CMD} -e \
+ '/accessibility.typeaheadfind.enablesound/s/true/false/ ; \
+ /dom.disable_window_open_feature.toolbar/s/false/true/'
pre-configure:
@if [ -n "`${PKG_INFO} -xI '^bind[0-9]*-base-[0-9]'`" ]; then \
@@ -184,19 +195,19 @@ pre-configure:
pre-install:
@${RM} -rf ${FAKEDIR} ${PLIST}
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
- Makefile ${MAKE_ARGS} install
+ Makefile ${MAKE_ARGS} ${INSTALL_TARGET}
@${MKDIR} ${SCRIPTS_DIR}
@${MKDIR} ${MOZ_PIS_DIR}
- ${ECHO_CMD} 'share/applications/firefox.desktop' >> ${PLIST}
+ ${ECHO_CMD} 'share/applications/${PORTNAME}.desktop' >> ${PLIST}
${REINPLACE_CMD} -e 's|${FAKEDIR}|${PREFIX}|g; \
- s|${FIREFOX}-${FF_VER}|${FIREFOX}|' \
- ${FAKEDIR}/bin/firefox \
- ${FAKEDIR}/bin/firefox-config
+ s|${PORTNAME}-${PORTVERSION}|${PORTNAME}|' \
+ ${FAKEDIR}/bin/${PORTNAME} \
+ ${FAKEDIR}/bin/${PORTNAME}-config
for i in ${EXTRA_SCRIPTS}; do \
${ECHO_CMD} bin/$${i} >> ${PLIST}; \
done
- ${ECHO_CMD} bin/firefox >> ${PLIST}
- ${ECHO_CMD} bin/firefox-config >> ${PLIST}
+ ${ECHO_CMD} bin/${PORTNAME} >> ${PLIST}
+ ${ECHO_CMD} bin/${PORTNAME}-config >> ${PLIST}
.for ii in ${MOZ_PIS_SCRIPTS}
${INSTALL_SCRIPT} ${WRKDIR}/moz_pis_${ii} ${MOZ_PIS_DIR}/${ii}
.endfor
@@ -206,39 +217,40 @@ pre-install:
${ECHO_CMD} "pref(\"browser.link.open_external\", 3);" \
>> ${SYSTEM_PREFS}
.endif # !defined(WITHOUT_NEWTAB)
- cd ${FAKEDIR}/lib/${FIREFOX}-${FF_VER} && ${FIND} -s * -type f -o -type l | \
- ${SED} -e 's|^|lib/${FIREFOX}/|' >> ${PLIST} \
+ cd ${FAKEDIR}/lib/${PORTNAME}-${PORTVERSION} && ${FIND} -s * -type f -o -type l | \
+ ${SED} -e 's|^|lib/${PORTNAME}/|' >> ${PLIST} \
&& ${FIND} -d * -type d | \
- ${SED} -e 's|^|@dirrm lib/${FIREFOX}/|' >> ${PLIST}
- ${ECHO_CMD} @dirrm lib/firefox >> ${PLIST}
+ ${SED} -e 's|^|@dirrm lib/${PORTNAME}/|' >> ${PLIST}
+ ${ECHO_CMD} @dirrm lib/${PORTNAME} >> ${PLIST}
for pcfile in ${PKGCONFIG_FILES}; do \
- ${REINPLACE_CMD} -e 's|${FIREFOX}-${FF_VER}|${FIREFOX}|g; \
- s|${FAKEDIR}|${PREFIX}|' \
+ ${REINPLACE_CMD} -e 's|${PORTNAME}-${PORTVERSION}|${PORTNAME}|g; \
+ s|${FAKEDIR}|${PREFIX}|g ; \
+ s|${PORTNAME}-nspr = ${PORTVERSION}|nspr >= 4.6.0|g' \
${FAKEDIR}/lib/pkgconfig/$${pcfile}.pc ; \
${ECHO_CMD} libdata/pkgconfig/$${pcfile}.pc >> ${PLIST} ; \
done
- cd ${FAKEDIR}/include/${FIREFOX}-${FF_VER} && ${FIND} -s * -type f -o -type l | \
- ${SED} -e 's|^|include/${FIREFOX}/|' >> ${PLIST} \
+ cd ${FAKEDIR}/include/${PORTNAME}-${PORTVERSION} && ${FIND} -s * -type f -o -type l | \
+ ${SED} -e 's|^|include/${PORTNAME}/|' >> ${PLIST} \
&& ${FIND} -d * -type d | \
- ${SED} -e 's|^|@dirrm include/${FIREFOX}/|' >> ${PLIST}
- ${ECHO_CMD} @dirrm include/${FIREFOX} >> ${PLIST}
+ ${SED} -e 's|^|@dirrm include/${PORTNAME}/|' >> ${PLIST}
+ ${ECHO_CMD} @dirrm include/${PORTNAME} >> ${PLIST}
${ECHO_CMD} lib/browser_plugins/.${PORTNAME}.keep >> ${PLIST}
${ECHO_CMD} "@unexec ${RMDIR} %D/lib/browser_plugins 2>/dev/null || ${TRUE}" >> ${PLIST}
${ECHO_CMD} "@exec ${LOCALBASE}/bin/update-desktop-database > /dev/null || ${TRUE}" >> ${PLIST}
${ECHO_CMD} "@unexec ${LOCALBASE}/bin/update-desktop-database > /dev/null || ${TRUE}" >> ${PLIST}
- cd ${FAKEDIR}/share/idl/${FIREFOX}-${FF_VER} \
+ cd ${FAKEDIR}/share/idl/${PORTNAME}-${PORTVERSION} \
&& ${FIND} -s * -type f -o -type l | \
- ${SED} -e 's:^:share/idl/${FIREFOX}/:' >> ${PLIST} \
+ ${SED} -e 's:^:share/idl/${PORTNAME}/:' >> ${PLIST} \
&& ${FIND} -d * -type d | \
- ${SED} -e 's:^:@dirrm share/idl/${FIREFOX}/:' >> ${PLIST}
- ${ECHO_CMD} "@dirrm share/idl/${FIREFOX}" >> ${PLIST}
- ${ECHO_CMD} "@unexec rmdir %D/share/idl 2>/dev/null || true" >> ${PLIST}
+ ${SED} -e 's:^:@dirrm share/idl/${PORTNAME}/:' >> ${PLIST}
+ ${ECHO_CMD} "@dirrm share/idl/${PORTNAME}" >> ${PLIST}
+ ${ECHO_CMD} "@unexec ${RMDIR} %D/share/idl 2>/dev/null || true" >> ${PLIST}
do-install:
- ${MKDIR} ${PREFIX}/lib/${FIREFOX}
- ${CHMOD} 755 ${PREFIX}/lib/${FIREFOX}
- ${INSTALL_SCRIPT} ${FAKEDIR}/bin/firefox ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${FAKEDIR}/bin/firefox-config ${PREFIX}/bin
+ ${MKDIR} ${PREFIX}/lib/${PORTNAME}
+ ${CHMOD} 755 ${PREFIX}/lib/${PORTNAME}
+ ${INSTALL_SCRIPT} ${FAKEDIR}/bin/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${FAKEDIR}/bin/${PORTNAME}-config ${PREFIX}/bin
if [ ! -d ${PREFIX}/lib/browser_plugins ]; then \
${MKDIR} ${PREFIX}/lib/browser_plugins ; \
fi
@@ -256,16 +268,16 @@ do-install:
${INSTALL_DATA} ${FAKEDIR}/lib/pkgconfig/$${pcfile}.pc \
${PREFIX}/libdata/pkgconfig/$${pcfile}.pc ; \
done
- -${RM} -fr ${PREFIX}/include/${FIREFOX}
- ${MKDIR} ${PREFIX}/include/${FIREFOX}
- ${CHMOD} 755 ${PREFIX}/include/${FIREFOX}
- cd ${FAKEDIR}/include/${FIREFOX}-${FF_VER} && ${FIND} . | \
- ${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/include/${FIREFOX}
- cd ${FAKEDIR}/lib/${FIREFOX}-${FF_VER} && ${FIND} . | \
- ${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/${FIREFOX}
- ${MKDIR} ${PREFIX}/share/idl/${FIREFOX}
- cd ${FAKEDIR}/share/idl/${FIREFOX}-${FF_VER} && ${FIND} . | \
- ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/idl/${FIREFOX}
+ -${RM} -fr ${PREFIX}/include/${PORTNAME}
+ ${MKDIR} ${PREFIX}/include/${PORTNAME}
+ ${CHMOD} 755 ${PREFIX}/include/${PORTNAME}
+ cd ${FAKEDIR}/include/${PORTNAME}-${PORTVERSION} && ${FIND} . | \
+ ${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/include/${PORTNAME}
+ cd ${FAKEDIR}/lib/${PORTNAME}-${PORTVERSION} && ${FIND} . | \
+ ${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/${PORTNAME}
+ ${MKDIR} ${PREFIX}/share/idl/${PORTNAME}
+ cd ${FAKEDIR}/share/idl/${PORTNAME}-${PORTVERSION} && ${FIND} . | \
+ ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/idl/${PORTNAME}
post-install:
.if !defined(PACKAGE_BUILDING)
@@ -275,9 +287,9 @@ post-install:
${INSTALL_SCRIPT} ${FILESDIR}/${i} ${PREFIX}/bin
.endfor
${MKDIR} ${PREFIX}/share/applications
- ${INSTALL_DATA} ${WRKDIR}/firefox.desktop ${PREFIX}/share/applications
- ${INSTALL_DATA} ${WRKSRC}/other-licenses/branding/firefox/default.xpm \
- ${PREFIX}/lib/${FIREFOX}/chrome/icons/default/default.xpm
+ ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${PREFIX}/share/applications
+ ${INSTALL_DATA} ${WRKSRC}/other-licenses/branding/${PORTNAME}/default.xpm \
+ ${PREFIX}/lib/${PORTNAME}/chrome/icons/default/default.xpm
@-update-desktop-database
.include <bsd.port.post.mk>