diff options
author | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-12-29 01:39:32 +0800 |
---|---|---|
committer | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-12-29 01:39:32 +0800 |
commit | 589477efe47c16a83665a3f16710091e61ac8603 (patch) | |
tree | 7fd072e2dde09dd65544b8a63da1bfb1f36410dd /www/firefox/Makefile | |
parent | c120d69ae983fcdcf34cf4d992c4fb0b51fc0b05 (diff) | |
download | marcuscom-ports-589477efe47c16a83665a3f16710091e61ac8603.tar marcuscom-ports-589477efe47c16a83665a3f16710091e61ac8603.tar.gz marcuscom-ports-589477efe47c16a83665a3f16710091e61ac8603.tar.bz2 marcuscom-ports-589477efe47c16a83665a3f16710091e61ac8603.tar.lz marcuscom-ports-589477efe47c16a83665a3f16710091e61ac8603.tar.xz marcuscom-ports-589477efe47c16a83665a3f16710091e61ac8603.tar.zst marcuscom-ports-589477efe47c16a83665a3f16710091e61ac8603.zip |
Add "--with-default-mozilla-five-home=${PREFIX}/lib/${MOZILLA}" to fix other
applications in the runtime. Some applications required to have set
MOZILLA_FIVE_HOME or/and LD_LIBRARY_PATH to make it works in the runtime. Now,
it's no longer need to set these variables, which this flag takes care of it.
The MOZILLA_FIVE_HOME still works with this flag if someone need to use
different one. I have learned about this flag from RPM, Debian, Gentoo ebuild
and other packages. Bump the PORTREVISION.
It has been tested with py-gnome-extras, ruby-gtkmozembed, epiphany,
development version of deluge, miro and yelp in both build and run time
with Firefox.
marcus wants me to put in MC first before I put these in FreeBSD ports tree,
because of ports tree still isn't complete unfreeze. I personal doubt that it
will causing any problem, so if it does then please report to me.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10009 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'www/firefox/Makefile')
-rw-r--r-- | www/firefox/Makefile | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/www/firefox/Makefile b/www/firefox/Makefile new file mode 100644 index 000000000..fbadca8bf --- /dev/null +++ b/www/firefox/Makefile @@ -0,0 +1,112 @@ +# New ports collection makefile for: phoenix +# Date created: 2002/10/21 +# Whom: Alan Eldridge <alane@FreeBSD.org> +# +# $FreeBSD$ +# $MCom$ +# + +PORTNAME= firefox +DISTVERSION= 2.0.0.11 +PORTREVISION= 1 +PORTEPOCH= 1 +CATEGORIES= www ipv6 +MASTER_SITES= ${MASTER_SITE_MOZILLA_EXTENDED} +MASTER_SITE_SUBDIR= ${PORTNAME}/releases/${DISTVERSION}/source +DISTNAME= ${PORTNAME}-${DISTVERSION}-source + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Web browser based on the browser portion of Mozilla + +BUILD_DEPENDS= nss>=3.11.2:${PORTSDIR}/security/nss + +MOZILLA_NAME= Firefox + +WANT_GNOME= yes +ALL_TARGET= default +CONFIGURE_ENV= LOCALBASE=${LOCALBASE} +EXTRA_CFLAGS= -O2 +HAS_CONFIGURE= yes +USE_BZIP2= yes +USE_GMAKE= yes +USE_GCC= 3.4+ +WANT_PERL= yes +GECKO_PLIST_PRE_FILES= lib/${MOZILLA}/chrome/icons/default/default.xpm +GECKO_PLIST_PRE_DIRS= lib/${MOZILLA}/chrome/icons/default lib/${MOZILLA}/chrome/icons + +FIREFOX_ICON= ${MOZILLA}.xpm +FIREFOX_ICON_SRC= ${PREFIX}/lib/${MOZILLA}/icons/default.xpm +MOZ_OPTIONS= --program-transform-name='s/firefox/${MOZILLA}/' \ + --with-default-mozilla-five-home=${PREFIX}/lib/${MOZILLA} \ + --enable-application=browser \ + --enable-system-cairo \ + --enable-official-branding \ + --enable-canvas \ + --with-system-nss + +SYSTEM_PREFS= ${FAKEDIR}/lib/${MOZILLA}/defaults/pref/firefox.js +MOZ_PIS_SCRIPTS= moz_pis_S50cleanhome + +OPTIONS= NEWTAB "Open external links in a new tab" on \ + SMB "Enable smb:// URI support using gnomevfs" off + +.include <bsd.port.pre.mk> + +GECKO_PTHREAD_LIBS!=${CC} -dumpspecs | ${GREP} -m 1 pthread | ${SED} -e 's|^.*%{\!pg: %{pthread:|| ; s|}.*$$||' || ${TRUE} + +.if ${ARCH} == "sparc64" && ${OSVERSION} < 601101 +IGNORE= does not run, update to 6.2-RELEASE or newer +.endif + +.if ${OSVERSION} >= 600000 +MOZ_OPTIONS+= --enable-svg --enable-svg-renderer=cairo +.endif + +post-extract:: + @${SED} -e 's|@FIREFOX_ICON@|${FIREFOX_ICON}|' -e 's|@MOZILLA@|${MOZILLA}|' \ + -e 's|@MOZILLA_NAME@|${MOZILLA_NAME}|' \ + <${FILESDIR}/firefox.desktop.in >${WRKDIR}/${MOZILLA}.desktop + +post-patch: + ${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS:C/-pthread/${GECKO_PTHREAD_LIBS}/}|' \ + ${WRKSRC}/storage/build/Makefile.in + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ + ${WRKSRC}/security/manager/ssl/src/Makefile.in +.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 + +pre-install: + ${ECHO_CMD} 'share/applications/${MOZILLA}.desktop' >> ${PLIST} + ${ECHO_CMD} "@unexec ${RMDIR} %D/share/applications 2>/dev/null || ${TRUE}" >> ${PLIST} + ${ECHO_CMD} 'share/pixmaps/${FIREFOX_ICON}' >> ${PLIST} +.if !defined(WITHOUT_NEWTAB) + ${ECHO_CMD} >> ${SYSTEM_PREFS} + ${ECHO_CMD} "// Open external links in new tab" >> ${SYSTEM_PREFS} + ${ECHO_CMD} "pref(\"browser.link.open_external\", 3);" \ + >> ${SYSTEM_PREFS} +.endif # !defined(WITHOUT_NEWTAB) + +do-install: + if [ ! -L ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so ]; then \ + for jpi in ${JPI_LIST}; do \ + if [ -f $${jpi} ]; then \ + ${LN} -sf $${jpi} \ + ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so ; \ + break; \ + fi; \ + done; \ + fi + +post-install: + ${MKDIR} ${PREFIX}/share/applications ${PREFIX}/share/pixmaps + ${INSTALL_DATA} ${WRKDIR}/${MOZILLA}.desktop ${PREFIX}/share/applications/ + ${MKDIR} ${PREFIX}/lib/${MOZILLA}/chrome/icons/default + ${LN} -sf ${FIREFOX_ICON_SRC} ${PREFIX}/lib/${MOZILLA}/chrome/icons/default/default.xpm + ${LN} -sf ${FIREFOX_ICON_SRC} ${PREFIX}/share/pixmaps/${FIREFOX_ICON} + +.include "${PORTSDIR}/www/mozilla/Makefile.common" +.include <bsd.port.post.mk> |