aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorahze <ahze@FreeBSD.org>2006-11-06 10:58:45 +0800
committerahze <ahze@FreeBSD.org>2006-11-06 10:58:45 +0800
commit6127b096482845276b8ecc5c9caecc9e3bcc5b34 (patch)
tree6e9252da8c11ff24cac9564a6e1306eba05cd0ad /www
parentfa3377dcc4a148022ed0eafbca6573f6e062f742 (diff)
downloadfreebsd-ports-gnome-6127b096482845276b8ecc5c9caecc9e3bcc5b34.tar.gz
freebsd-ports-gnome-6127b096482845276b8ecc5c9caecc9e3bcc5b34.tar.zst
freebsd-ports-gnome-6127b096482845276b8ecc5c9caecc9e3bcc5b34.zip
- No longer disable pthreads in sqlite3 [2]
- Remove LIBS= from Makefile to fix "open with application" function. [2] [5] - Fix component registration for some users. [1] [2] [3] - Bump PORTREVISION [4] Obtained from: https://bugzilla.mozilla.org/show_bug.cgi?id=351181 [1] Submitted by: marcus [2] aspar Chilingarov <nm@web.am> [3] ahze [4] (I had to submit something) Reported by: philip and many others [5]
Diffstat (limited to 'www')
-rw-r--r--www/firefox-esr/Makefile10
-rw-r--r--www/firefox-esr/files/patch-js_src_jsnum.c28
-rw-r--r--www/firefox-esr/files/patch-nothreads-sqlite12
-rw-r--r--www/firefox-esr/files/patch-storage_build_Makefile.in10
-rw-r--r--www/firefox/Makefile10
-rw-r--r--www/firefox/files/patch-js_src_jsnum.c28
-rw-r--r--www/firefox/files/patch-nothreads-sqlite12
-rw-r--r--www/firefox/files/patch-storage_build_Makefile.in10
-rw-r--r--www/firefox36/Makefile10
-rw-r--r--www/firefox36/files/patch-js_src_jsnum.c28
-rw-r--r--www/firefox36/files/patch-nothreads-sqlite12
-rw-r--r--www/firefox36/files/patch-storage_build_Makefile.in10
12 files changed, 129 insertions, 51 deletions
diff --git a/www/firefox-esr/Makefile b/www/firefox-esr/Makefile
index bf88a41032b5..92952a72749b 100644
--- a/www/firefox-esr/Makefile
+++ b/www/firefox-esr/Makefile
@@ -7,7 +7,7 @@
PORTNAME= firefox
DISTVERSION= 2.0
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_MOZILLA_EXTENDED}
@@ -20,10 +20,7 @@ COMMENT= Web browser based on the browser portion of Mozilla
BUILD_DEPENDS= nss>=3.11.2:${PORTSDIR}/security/nss
LATEST_LINK= firefox2
-#MOZILLA= ${PORTNAME}${MOZILLA_SUFX}
MOZILLA_NAME= Firefox
-#MOZILLA_NAME= Firefox${MOZILLA_SUFX}
-#MOZILLA_SUFX= -devel
MOZ_OPTIONS= --program-transform-name='s/firefox/${MOZILLA}/'
WANT_GNOME= yes
@@ -34,7 +31,6 @@ HAS_CONFIGURE= yes
USE_BZIP2= yes
USE_GMAKE= yes
USE_GCC= 3.4+
-LIBS= -Wl,-Bsymbolic -lc
GECKO_PLIST_PRE_FILES= lib/${MOZILLA}/chrome/icons/default/default.xpm
GECKO_PLIST_PRE_DIRS= lib/${MOZILLA}/chrome/icons/default lib/${MOZILLA}/chrome/icons
@@ -54,6 +50,8 @@ OPTIONS= NEWTAB "Open external links in a new tab" on \
.include <bsd.port.pre.mk>
+GECKO_PTHREAD_LIBS!=${CC} -dumpspecs | ${GREP} pthread | ${SED} -e 's|^.*%{\!pg: %{pthread:|| ; s|}.*$$||' || ${TRUE}
+
.if ${OSVERSION} < 500000
BROKEN= does not build
.endif
@@ -72,6 +70,8 @@ post-extract::
<${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 \
diff --git a/www/firefox-esr/files/patch-js_src_jsnum.c b/www/firefox-esr/files/patch-js_src_jsnum.c
new file mode 100644
index 000000000000..74a9eca5d352
--- /dev/null
+++ b/www/firefox-esr/files/patch-js_src_jsnum.c
@@ -0,0 +1,28 @@
+--- js/src/jsnum.c.orig Sun Nov 5 18:37:07 2006
++++ js/src/jsnum.c Sun Nov 5 18:42:31 2006
+@@ -45,6 +45,9 @@
+ #if defined(XP_WIN) || defined(XP_OS2)
+ #include <float.h>
+ #endif
++#if defined(__FreeBSD__)
++#include <sys/param.h>
++#endif
+ #include <locale.h>
+ #include <limits.h>
+ #include <math.h>
+@@ -532,7 +535,15 @@ static jsdouble NaN;
+
+ #else
+
++#if defined(__FreeBSD__) && __FreeBSD_version >= 503000
++#include <fenv.h>
++#define FIX_FPU() (fedisableexcept(FE_ALL_EXCEPT))
++
++#else
++
+ #define FIX_FPU() ((void)0)
++
++#endif /* defined(__FreeBSD__) && __FreeBSD_version >= 503000 */
+
+ #endif
+
diff --git a/www/firefox-esr/files/patch-nothreads-sqlite b/www/firefox-esr/files/patch-nothreads-sqlite
deleted file mode 100644
index 1b1bbbcbda15..000000000000
--- a/www/firefox-esr/files/patch-nothreads-sqlite
+++ /dev/null
@@ -1,12 +0,0 @@
---- db/sqlite3/src/Makefile.in.orig Mon Sep 25 18:38:04 2006
-+++ db/sqlite3/src/Makefile.in Mon Sep 25 18:38:14 2006
-@@ -99,7 +99,8 @@
- # REFEF_IO allows us to override IO functions, which is used in the AsyncIO
- # -DSQLITE_SECURE_DELETE=1 will cause SQLITE to 0-fill delete data so we
- # don't have to vacuum to make sure the data is not visible in the file.
--DEFINES = -DSQLITE_ENABLE_REDEF_IO -DSQLITE_SECURE_DELETE=1 -DTHREADSAFE=1
-+DEFINES = -DSQLITE_ENABLE_REDEF_IO -DSQLITE_SECURE_DELETE=1
-+# -DTHREADSAFE=1
-
- ifdef ENABLE_TESTS
- ##LIBS = $(DIST)/lib/$(LIB_PREFIX)sqlite3_s.$(LIB_SUFFIX)
diff --git a/www/firefox-esr/files/patch-storage_build_Makefile.in b/www/firefox-esr/files/patch-storage_build_Makefile.in
new file mode 100644
index 000000000000..18202a5a61d8
--- /dev/null
+++ b/www/firefox-esr/files/patch-storage_build_Makefile.in
@@ -0,0 +1,10 @@
+--- storage/build/Makefile.in.orig Tue Feb 21 11:18:56 2006
++++ storage/build/Makefile.in Sun Nov 5 16:16:06 2006
+@@ -77,6 +77,7 @@
+ $(EXTRA_DSO_LIBS) \
+ $(MOZ_COMPONENT_LIBS) \
+ $(MOZ_JS_LIBS) \
++ %%PTHREAD_LIBS%% \
+ $(NULL)
+
+ include $(topsrcdir)/config/rules.mk
diff --git a/www/firefox/Makefile b/www/firefox/Makefile
index bf88a41032b5..92952a72749b 100644
--- a/www/firefox/Makefile
+++ b/www/firefox/Makefile
@@ -7,7 +7,7 @@
PORTNAME= firefox
DISTVERSION= 2.0
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_MOZILLA_EXTENDED}
@@ -20,10 +20,7 @@ COMMENT= Web browser based on the browser portion of Mozilla
BUILD_DEPENDS= nss>=3.11.2:${PORTSDIR}/security/nss
LATEST_LINK= firefox2
-#MOZILLA= ${PORTNAME}${MOZILLA_SUFX}
MOZILLA_NAME= Firefox
-#MOZILLA_NAME= Firefox${MOZILLA_SUFX}
-#MOZILLA_SUFX= -devel
MOZ_OPTIONS= --program-transform-name='s/firefox/${MOZILLA}/'
WANT_GNOME= yes
@@ -34,7 +31,6 @@ HAS_CONFIGURE= yes
USE_BZIP2= yes
USE_GMAKE= yes
USE_GCC= 3.4+
-LIBS= -Wl,-Bsymbolic -lc
GECKO_PLIST_PRE_FILES= lib/${MOZILLA}/chrome/icons/default/default.xpm
GECKO_PLIST_PRE_DIRS= lib/${MOZILLA}/chrome/icons/default lib/${MOZILLA}/chrome/icons
@@ -54,6 +50,8 @@ OPTIONS= NEWTAB "Open external links in a new tab" on \
.include <bsd.port.pre.mk>
+GECKO_PTHREAD_LIBS!=${CC} -dumpspecs | ${GREP} pthread | ${SED} -e 's|^.*%{\!pg: %{pthread:|| ; s|}.*$$||' || ${TRUE}
+
.if ${OSVERSION} < 500000
BROKEN= does not build
.endif
@@ -72,6 +70,8 @@ post-extract::
<${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 \
diff --git a/www/firefox/files/patch-js_src_jsnum.c b/www/firefox/files/patch-js_src_jsnum.c
new file mode 100644
index 000000000000..74a9eca5d352
--- /dev/null
+++ b/www/firefox/files/patch-js_src_jsnum.c
@@ -0,0 +1,28 @@
+--- js/src/jsnum.c.orig Sun Nov 5 18:37:07 2006
++++ js/src/jsnum.c Sun Nov 5 18:42:31 2006
+@@ -45,6 +45,9 @@
+ #if defined(XP_WIN) || defined(XP_OS2)
+ #include <float.h>
+ #endif
++#if defined(__FreeBSD__)
++#include <sys/param.h>
++#endif
+ #include <locale.h>
+ #include <limits.h>
+ #include <math.h>
+@@ -532,7 +535,15 @@ static jsdouble NaN;
+
+ #else
+
++#if defined(__FreeBSD__) && __FreeBSD_version >= 503000
++#include <fenv.h>
++#define FIX_FPU() (fedisableexcept(FE_ALL_EXCEPT))
++
++#else
++
+ #define FIX_FPU() ((void)0)
++
++#endif /* defined(__FreeBSD__) && __FreeBSD_version >= 503000 */
+
+ #endif
+
diff --git a/www/firefox/files/patch-nothreads-sqlite b/www/firefox/files/patch-nothreads-sqlite
deleted file mode 100644
index 1b1bbbcbda15..000000000000
--- a/www/firefox/files/patch-nothreads-sqlite
+++ /dev/null
@@ -1,12 +0,0 @@
---- db/sqlite3/src/Makefile.in.orig Mon Sep 25 18:38:04 2006
-+++ db/sqlite3/src/Makefile.in Mon Sep 25 18:38:14 2006
-@@ -99,7 +99,8 @@
- # REFEF_IO allows us to override IO functions, which is used in the AsyncIO
- # -DSQLITE_SECURE_DELETE=1 will cause SQLITE to 0-fill delete data so we
- # don't have to vacuum to make sure the data is not visible in the file.
--DEFINES = -DSQLITE_ENABLE_REDEF_IO -DSQLITE_SECURE_DELETE=1 -DTHREADSAFE=1
-+DEFINES = -DSQLITE_ENABLE_REDEF_IO -DSQLITE_SECURE_DELETE=1
-+# -DTHREADSAFE=1
-
- ifdef ENABLE_TESTS
- ##LIBS = $(DIST)/lib/$(LIB_PREFIX)sqlite3_s.$(LIB_SUFFIX)
diff --git a/www/firefox/files/patch-storage_build_Makefile.in b/www/firefox/files/patch-storage_build_Makefile.in
new file mode 100644
index 000000000000..18202a5a61d8
--- /dev/null
+++ b/www/firefox/files/patch-storage_build_Makefile.in
@@ -0,0 +1,10 @@
+--- storage/build/Makefile.in.orig Tue Feb 21 11:18:56 2006
++++ storage/build/Makefile.in Sun Nov 5 16:16:06 2006
+@@ -77,6 +77,7 @@
+ $(EXTRA_DSO_LIBS) \
+ $(MOZ_COMPONENT_LIBS) \
+ $(MOZ_JS_LIBS) \
++ %%PTHREAD_LIBS%% \
+ $(NULL)
+
+ include $(topsrcdir)/config/rules.mk
diff --git a/www/firefox36/Makefile b/www/firefox36/Makefile
index bf88a41032b5..92952a72749b 100644
--- a/www/firefox36/Makefile
+++ b/www/firefox36/Makefile
@@ -7,7 +7,7 @@
PORTNAME= firefox
DISTVERSION= 2.0
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_MOZILLA_EXTENDED}
@@ -20,10 +20,7 @@ COMMENT= Web browser based on the browser portion of Mozilla
BUILD_DEPENDS= nss>=3.11.2:${PORTSDIR}/security/nss
LATEST_LINK= firefox2
-#MOZILLA= ${PORTNAME}${MOZILLA_SUFX}
MOZILLA_NAME= Firefox
-#MOZILLA_NAME= Firefox${MOZILLA_SUFX}
-#MOZILLA_SUFX= -devel
MOZ_OPTIONS= --program-transform-name='s/firefox/${MOZILLA}/'
WANT_GNOME= yes
@@ -34,7 +31,6 @@ HAS_CONFIGURE= yes
USE_BZIP2= yes
USE_GMAKE= yes
USE_GCC= 3.4+
-LIBS= -Wl,-Bsymbolic -lc
GECKO_PLIST_PRE_FILES= lib/${MOZILLA}/chrome/icons/default/default.xpm
GECKO_PLIST_PRE_DIRS= lib/${MOZILLA}/chrome/icons/default lib/${MOZILLA}/chrome/icons
@@ -54,6 +50,8 @@ OPTIONS= NEWTAB "Open external links in a new tab" on \
.include <bsd.port.pre.mk>
+GECKO_PTHREAD_LIBS!=${CC} -dumpspecs | ${GREP} pthread | ${SED} -e 's|^.*%{\!pg: %{pthread:|| ; s|}.*$$||' || ${TRUE}
+
.if ${OSVERSION} < 500000
BROKEN= does not build
.endif
@@ -72,6 +70,8 @@ post-extract::
<${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 \
diff --git a/www/firefox36/files/patch-js_src_jsnum.c b/www/firefox36/files/patch-js_src_jsnum.c
new file mode 100644
index 000000000000..74a9eca5d352
--- /dev/null
+++ b/www/firefox36/files/patch-js_src_jsnum.c
@@ -0,0 +1,28 @@
+--- js/src/jsnum.c.orig Sun Nov 5 18:37:07 2006
++++ js/src/jsnum.c Sun Nov 5 18:42:31 2006
+@@ -45,6 +45,9 @@
+ #if defined(XP_WIN) || defined(XP_OS2)
+ #include <float.h>
+ #endif
++#if defined(__FreeBSD__)
++#include <sys/param.h>
++#endif
+ #include <locale.h>
+ #include <limits.h>
+ #include <math.h>
+@@ -532,7 +535,15 @@ static jsdouble NaN;
+
+ #else
+
++#if defined(__FreeBSD__) && __FreeBSD_version >= 503000
++#include <fenv.h>
++#define FIX_FPU() (fedisableexcept(FE_ALL_EXCEPT))
++
++#else
++
+ #define FIX_FPU() ((void)0)
++
++#endif /* defined(__FreeBSD__) && __FreeBSD_version >= 503000 */
+
+ #endif
+
diff --git a/www/firefox36/files/patch-nothreads-sqlite b/www/firefox36/files/patch-nothreads-sqlite
deleted file mode 100644
index 1b1bbbcbda15..000000000000
--- a/www/firefox36/files/patch-nothreads-sqlite
+++ /dev/null
@@ -1,12 +0,0 @@
---- db/sqlite3/src/Makefile.in.orig Mon Sep 25 18:38:04 2006
-+++ db/sqlite3/src/Makefile.in Mon Sep 25 18:38:14 2006
-@@ -99,7 +99,8 @@
- # REFEF_IO allows us to override IO functions, which is used in the AsyncIO
- # -DSQLITE_SECURE_DELETE=1 will cause SQLITE to 0-fill delete data so we
- # don't have to vacuum to make sure the data is not visible in the file.
--DEFINES = -DSQLITE_ENABLE_REDEF_IO -DSQLITE_SECURE_DELETE=1 -DTHREADSAFE=1
-+DEFINES = -DSQLITE_ENABLE_REDEF_IO -DSQLITE_SECURE_DELETE=1
-+# -DTHREADSAFE=1
-
- ifdef ENABLE_TESTS
- ##LIBS = $(DIST)/lib/$(LIB_PREFIX)sqlite3_s.$(LIB_SUFFIX)
diff --git a/www/firefox36/files/patch-storage_build_Makefile.in b/www/firefox36/files/patch-storage_build_Makefile.in
new file mode 100644
index 000000000000..18202a5a61d8
--- /dev/null
+++ b/www/firefox36/files/patch-storage_build_Makefile.in
@@ -0,0 +1,10 @@
+--- storage/build/Makefile.in.orig Tue Feb 21 11:18:56 2006
++++ storage/build/Makefile.in Sun Nov 5 16:16:06 2006
+@@ -77,6 +77,7 @@
+ $(EXTRA_DSO_LIBS) \
+ $(MOZ_COMPONENT_LIBS) \
+ $(MOZ_JS_LIBS) \
++ %%PTHREAD_LIBS%% \
+ $(NULL)
+
+ include $(topsrcdir)/config/rules.mk