aboutsummaryrefslogtreecommitdiffstats
path: root/www/firefox/Makefile
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2006-11-10 15:03:50 +0800
committermarcus <marcus@FreeBSD.org>2006-11-10 15:03:50 +0800
commit093a7d228c5747be43c5c621fec5272f43e7c7c6 (patch)
tree73d4c8979375f394ed8e7ad5a2beb01e3dfa735e /www/firefox/Makefile
parent8d515aedd314e731bd11dc4a50b12489d18dd515 (diff)
downloadfreebsd-ports-gnome-093a7d228c5747be43c5c621fec5272f43e7c7c6.tar.gz
freebsd-ports-gnome-093a7d228c5747be43c5c621fec5272f43e7c7c6.tar.zst
freebsd-ports-gnome-093a7d228c5747be43c5c621fec5272f43e7c7c6.zip
Restore firefox to 2.0 after slipping the RELEASE_6_2_0 tag.
Diffstat (limited to 'www/firefox/Makefile')
-rw-r--r--www/firefox/Makefile32
1 files changed, 21 insertions, 11 deletions
diff --git a/www/firefox/Makefile b/www/firefox/Makefile
index 40f7241f2df1..d2b3177e1fc5 100644
--- a/www/firefox/Makefile
+++ b/www/firefox/Makefile
@@ -3,27 +3,33 @@
# Whom: Alan Eldridge <alane@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/www/firefox/Makefile,v 1.36 2006/10/05 21:37:18 mezz Exp $
+# $MCom: ports-stable/www/firefox/Makefile,v 1.21 2006/10/25 01:20:12 ahze Exp $
PORTNAME= firefox
-DISTVERSION= 1.5.0.8
+DISTVERSION= 2.0
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= www
-MASTER_SITES= ${MASTER_SITE_MOZILLA}
+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
+MOZ_OPTIONS= --program-transform-name='s/firefox/${MOZILLA}/'
+
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+
-
GECKO_PLIST_PRE_FILES= lib/${MOZILLA}/chrome/icons/default/default.xpm
GECKO_PLIST_PRE_DIRS= lib/${MOZILLA}/chrome/icons/default lib/${MOZILLA}/chrome/icons
@@ -32,7 +38,8 @@ FIREFOX_ICON_SRC= ${PREFIX}/lib/${MOZILLA}/icons/default.xpm
MOZ_OPTIONS= --enable-application=browser \
--enable-system-cairo \
--enable-official-branding \
- --enable-canvas
+ --enable-canvas \
+ --with-system-nss
SYSTEM_PREFS= ${FAKEDIR}/lib/${MOZILLA}/defaults/pref/firefox.js
MOZ_PIS_SCRIPTS= moz_pis_S50cleanhome
@@ -42,12 +49,10 @@ OPTIONS= NEWTAB "Open external links in a new tab" on \
.include <bsd.port.pre.mk>
-.if ${ARCH}=="alpha" && ${OSVERSION} < 500035
-IGNORE= core dumps on ${ARCH}
-.endif
+GECKO_PTHREAD_LIBS!=${CC} -dumpspecs | ${GREP} pthread | ${SED} -e 's|^.*%{\!pg: %{pthread:|| ; s|}.*$$||' || ${TRUE}
-.if ${ARCH}=="sparc64" && ${OSVERSION} < 601101
-IGNORE= core dumps on ${ARCH}, kern.osreldate>=601101 needed
+.if ${OSVERSION} < 500000
+BROKEN= does not build
.endif
.if ${OSVERSION} >= 600000
@@ -59,10 +64,15 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-patch-config_make-jars.pl
.endif
post-extract::
- @${SED} -e 's|@FIREFOX_ICON@|${FIREFOX_ICON}|' \
+ @${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%%|${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/ ; \