[48951] trunk/dports/www/firefox-x11

jeremyhu at macports.org jeremyhu at macports.org
Tue Mar 31 13:45:45 PDT 2009


Revision: 48951
          http://trac.macports.org/changeset/48951
Author:   jeremyhu at macports.org
Date:     2009-03-31 13:45:44 -0700 (Tue, 31 Mar 2009)
Log Message:
-----------
firefox: Bump to 3.0.8 ... phew

Modified Paths:
--------------
    trunk/dports/www/firefox-x11/Portfile

Added Paths:
-----------
    trunk/dports/www/firefox-x11/files/configure.patch
    trunk/dports/www/firefox-x11/files/icon-Makefile.patch
    trunk/dports/www/firefox-x11/files/make-install.patch
    trunk/dports/www/firefox-x11/files/system-nss.patch
    trunk/dports/www/firefox-x11/files/xpcom-Makefile.patch

Removed Paths:
-------------
    trunk/dports/www/firefox-x11/files/patch-browser-app-mozilla.in
    trunk/dports/www/firefox-x11/files/patch-browser-app-profile-firefox.js
    trunk/dports/www/firefox-x11/files/patch-browser-components-build-Makefile.in
    trunk/dports/www/firefox-x11/files/patch-build-unix-mozilla-xpcom.pc
    trunk/dports/www/firefox-x11/files/patch-en-US-chrome-branding-brand.dtd
    trunk/dports/www/firefox-x11/files/patch-executable_path.diff
    trunk/dports/www/firefox-x11/files/patch-layout-build-Makefile.in
    trunk/dports/www/firefox-x11/files/patch-xpcom-build-Makefile
    trunk/dports/www/firefox-x11/files/patch-xptcall_x86.diff

Modified: trunk/dports/www/firefox-x11/Portfile
===================================================================
--- trunk/dports/www/firefox-x11/Portfile	2009-03-31 19:52:33 UTC (rev 48950)
+++ trunk/dports/www/firefox-x11/Portfile	2009-03-31 20:45:44 UTC (rev 48951)
@@ -5,7 +5,7 @@
 
 name            firefox-x11
 categories      www x11
-version         2.0.0.20
+version         3.0.8
 platforms       darwin
 maintainers     nomaintainer
 description     Mozilla.org's popular stand-alone web browser
@@ -27,74 +27,151 @@
 distname        firefox-${version}-source
 use_bzip2       yes
 
-checksums           md5     f3718fefd01c8edc007ec0b416a8a7b8 \
-                    sha1    16601fdbbb0a83b85fd053e76350f7da397f525e \
-                    rmd160  60f66a4998892a51c6fdd72a8b457a22275364b4
+checksums           md5     5fb6c6f3e973516df83a573348377a2f \
+                    sha1    93f82c64ae9c805964fb6459223a1061e2d328fd \
+                    rmd160  2b56dbb881e169ad0a3acad30b8aa0677c03a5e5
 
 worksrcdir      mozilla
 
-patchfiles      patch-browser-app-profile-firefox.js \
-                patch-en-US-chrome-branding-brand.dtd \
-                patch-xpcom-build-Makefile \
-                patch-dylib_file.diff \
-                patch-layout-build-Makefile.in \
-                patch-build-unix-mozilla-xpcom.pc \
-                patch-browser-app-mozilla.in \
-                patch-xptcall_x86.diff \
-                patch-pthread.diff \
-                patch-executable_path.diff
+depends_build \
+	port:findutils \
+	port:pkgconfig
 
-depends_build   port:pkgconfig
+depends_lib \
+	port:gnome-vfs \
+	port:gnome-icon-theme \
+	port:nss \
+	port:nspr \
+	port:gtk2
 
-depends_lib     port:libidl \
-                port:zip \
-                port:gtk2 \
-                port:gnome-vfs \
-                port:gnome-icon-theme \
-                port:nspr
+#	port:xulrunner can replace nss nspr and gtk2 once it's used to build firefox
 
+#-DXP_UNIX -DXP_MACOSX -UNO_X11
+#configure.cppflags-append -I/Developer/Headers/FlatCarbon
+#configure.cflags-append -I/Developer/Headers/FlatCarbon
+#configure.cxxflags-append -I/Developer/Headers/FlatCarbon
 
-configure.env   MOZCONFIG="${workpath}/.mozconfig"
+configure.args \
+	--disable-static \
+	--enable-shared \
+	--with-distribution-id=org.macports \
+	--enable-default-toolkit=cairo-gtk2 \
+	--x-includes=${prefix}/include \
+	--x-libraries=${prefix}/lib \
+	--with-system-nspr \
+	--with-nspr-prefix=${prefix} \
+	--with-system-nss \
+	--with-nss-prefix=${prefix} \
+	--with-system-bzip2=${prefix} \
+	--with-system-jpeg=${prefix} \
+	--with-system-zlib=${prefix} \
+	--enable-system-cairo \
+	--with-system-cairo=${prefix} \
+	--enable-system-sqlite \
+	--with-default-mozilla-five-home=${prefix}/lib/firefox \
+	--disable-oji \
+	--enable-plugins \
+	--enable-mathml \
+	--enable-extensions="default,spellcheck" \
+	--enable-permissions \
+	--enable-cookie \
+	--enable-image-decoders=all \
+	--enable-image-encoder=all \
+	--enable-canvas \
+	--enable-jsd \
+	--enable-xpctools \
+	--enable-crypto \
+	--enable-pango \
+	--enable-svg \
+	--enable-svg-renderer=cairo \
+	--enable-xinerama \
+	--with-pthreads \
+	--enable-gnomevfs \
+	--enable-postscript \
+	--enable-safe-browsing \
+	--enable-xft \
+	--disable-freetype2 \
+	--disable-crashreporter \
+	--enable-optimize=-O2 \
+	--disable-prebinding \
+	--enable-strip \
+	--disable-debug \
+	--disable-installer \
+	--disable-updater \
+	--disable-pedantic \
+	--disable-tests \
+	--disable-mochitest
 
-configure.args  --enable-application=browser \
-                --disable-official-branding \
-                --with-distribution-id=org.macports \
-                --disable-static \
-                --enable-shared \
-                --enable-default-toolkit=gtk2 \
-                --enable-xft \
-                --disable-freetype2 \
-                --enable-xinerama \
-                --with-pthreads \
-                --enable-gnomevfs \
-                --enable-postscript \
-                --disable-prebinding \
-                --disable-debug \
-                --enable-strip \
-                --enable-optimize='-O2' \
-                --disable-tests \
-                --with-default-mozilla-five-home=${prefix}/lib/firefox \
-                --with-system-jpeg=${prefix} \
-                --with-system-zlib=${prefix} \
-                --with-system-png=${prefix} \
-                --enable-system-cairo \
-                --with-system-cairo=${prefix} \
-                --with-system-nspr \
-                --with-nspr-prefix=${prefix}
+#	--with-libxul-sdk=${prefix}/lib/xulrunner
+#	--enable-help-viewer \
+#	--disable-official-branding
 
-
 variant debug description "build with debugging symbols" {
     configure.args-delete   --disable-debug \
+                            --disable-mochitest \
                             --enable-optimize='-O2' \
                             --enable-strip
 
     configure.args-append   --enable-debug \
+                            --enable-mochitest \
                             --disable-optimize \
                             --disable-strip
 }
 
+post-extract {
+    # https://bugzilla.mozilla.org/show_bug.cgi?id=484353
+    move ${worksrcpath}/modules/libjar/nsWildCard.cpp ${worksrcpath}/modules/libjar/nsWildCard_jar.cpp
+}
+
+# Upstream bugs (http://bugzilla.mozilla.org)
+# #485827 (xpcom-Makefile)
+# #485856 (configure)
+# #485862 (system-nss)
+# #486036 (make-install)
+# #485863 (icon-Makefile)
+# Previous firefox-x11 port (patch-dylib_file.diff patch-pthread.diff)
+patchfiles configure.patch xpcom-Makefile.patch system-nss.patch make-install.patch patch-dylib_file.diff  patch-pthread.diff icon-Makefile.patch
+
+post-patch {
+    # https://bugzilla.mozilla.org/show_bug.cgi?id=485857
+    reinplace "s:XP_MACOSX:__APPLE__:g" ${worksrcpath}/xpcom/base/nsStackWalk.cpp 
+
+    # https://bugzilla.mozilla.org/show_bug.cgi?id=484353
+    reinplace "s:nsWildCard.cpp:nsWildCard_jar.cpp:g" ${worksrcpath}/modules/libjar/objs.mk
+
+    # https://bugzilla.mozilla.org/show_bug.cgi?id=486034
+    # find -xtype -> gfind -xtype
+    reinplace "s:find:gfind:g" ${worksrcpath}/toolkit/mozapps/installer/packager.mk
+
+    # Set the right install_name on the libs
+    reinplace "s:@executable_path:${prefix}/lib/${name}:g" ${worksrcpath}/config/rules.mk
+}
+
+configure.env \
+	MOZCONFIG="${worksrcpath}/browser/config/mozconfig" \
+	MOZILLA_FIVE_HOME="${prefix}/lib/${name}"
+
+build.args-append \
+	includedir="${prefix}/include/${name}" \
+	idldir="${prefix}/share/idl/${name}" \
+	installdir="${prefix}/lib/${name}" \
+	sdkdir="${prefix}/lib/${name}"
+
+destroot.args-append \
+	includedir="${prefix}/include/${name}" \
+	idldir="${prefix}/share/idl/${name}" \
+	installdir="${prefix}/lib/${name}" \
+	sdkdir="${prefix}/lib/${name}"
+
+# AC_X_PATH blindly asks xmkmf where X11 is, and it always uses /usr/X11R6.
+# This block helps us link correctly when we are +system_x11 and x11prefix
+# is somewhere non-standard and should cause AC_X_PATH to let us setup our
+# CPPFLAGS and LDFLAGS without interference
 pre-configure {
-  system "touch ${workpath}/.mozconfig"
+    if { ![file exists ${prefix}/lib/pkgconfig/x11.pc] } {
+        configure.cppflags-append -I${x11prefix}/include
+        configure.ldflags-append  -L${x11prefix}/lib
+    }
 }
 
 post-destroot   {

Added: trunk/dports/www/firefox-x11/files/configure.patch
===================================================================
--- trunk/dports/www/firefox-x11/files/configure.patch	                        (rev 0)
+++ trunk/dports/www/firefox-x11/files/configure.patch	2009-03-31 20:45:44 UTC (rev 48951)
@@ -0,0 +1,16 @@
+--- configure.orig	2009-03-19 21:02:35.000000000 -0700
++++ configure	2009-03-19 21:03:53.000000000 -0700
+@@ -5807,11 +5807,10 @@ case "$host" in
+     ;;
+ 
+ *-darwin*)
+-    HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX -DXP_MACOSX -DNO_X11"
+-    HOST_NSPR_MDCPUCFG='\"md/_darwin.cfg\"'
++    HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX -DXP_MACOSX"
++    HOST_CXXFLAGS="$HOST_CXXFLAGS -DXP_UNIX -DXP_MACOSX"
+     HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}"
+     MOZ_FIX_LINK_PATHS='-Wl,-executable_path,$(LIBXUL_DIST)/bin'
+-    LIBXUL_LIBS='$(XPCOM_FROZEN_LDOPTS) $(LIBXUL_DIST)/bin/XUL -lobjc'
+     ;;
+ 
+ *-linux*|*-kfreebsd*-gnu)

Added: trunk/dports/www/firefox-x11/files/icon-Makefile.patch
===================================================================
--- trunk/dports/www/firefox-x11/files/icon-Makefile.patch	                        (rev 0)
+++ trunk/dports/www/firefox-x11/files/icon-Makefile.patch	2009-03-31 20:45:44 UTC (rev 48951)
@@ -0,0 +1,11 @@
+--- modules/libpr0n/decoders/icon/Makefile.in.orig	2009-03-31 12:55:07.000000000 -0700
++++ modules/libpr0n/decoders/icon/Makefile.in	2009-03-31 12:55:47.000000000 -0700
+@@ -67,7 +67,7 @@ ifeq ($(OS_ARCH),OS2)
+ PLATFORM = os2
+ endif
+ 
+-ifeq ($(OS_ARCH),Darwin)
++ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
+ PLATFORM = mac
+ endif
+ 

Added: trunk/dports/www/firefox-x11/files/make-install.patch
===================================================================
--- trunk/dports/www/firefox-x11/files/make-install.patch	                        (rev 0)
+++ trunk/dports/www/firefox-x11/files/make-install.patch	2009-03-31 20:45:44 UTC (rev 48951)
@@ -0,0 +1,14 @@
+--- toolkit/mozapps/installer/packager.mk.bak	2009-03-30 17:04:13.000000000 -0700
++++ toolkit/mozapps/installer/packager.mk	2009-03-30 17:05:06.000000000 -0700
+@@ -410,7 +410,10 @@ make-package: stage-package
+ # dist/sdk/lib -> prefix/lib/appname-devel-version/lib
+ # prefix/lib/appname-devel-version/* symlinks to the above directories
+ install:: stage-package
+-ifneq (,$(filter WINNT Darwin,$(OS_ARCH)))
++ifneq (,$(filter WINNT,$(OS_ARCH)))
++	$(error "make install" is not supported on this platform. Use "make package" instead.)
++endif
++ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
+ 	$(error "make install" is not supported on this platform. Use "make package" instead.)
+ endif
+ 	$(NSINSTALL) -D $(DESTDIR)$(installdir)

Deleted: trunk/dports/www/firefox-x11/files/patch-browser-app-mozilla.in
===================================================================
--- trunk/dports/www/firefox-x11/files/patch-browser-app-mozilla.in	2009-03-31 19:52:33 UTC (rev 48950)
+++ trunk/dports/www/firefox-x11/files/patch-browser-app-mozilla.in	2009-03-31 20:45:44 UTC (rev 48951)
@@ -1,13 +0,0 @@
---- browser/app/mozilla.in~	2006-02-19 09:13:13.000000000 -0500
-+++ browser/app/mozilla.in	2006-02-19 09:14:35.000000000 -0500
-@@ -99,7 +99,9 @@
- # If not, then start resolving symlinks until we find run-mozilla.sh
- found=0
- progname="$0"
--curdir=`dirname "$progname"`
-+#curdir=`dirname "$progname"`
-+#incorrectly uses ${prefix}/bin, so force use of ${prefix}/lib/firefox
-+curdir="$moz_libdir"
- progbase=`basename "$progname"`
- run_moz="$curdir/run-mozilla.sh"
- if test -x "$run_moz"; then

Deleted: trunk/dports/www/firefox-x11/files/patch-browser-app-profile-firefox.js
===================================================================
--- trunk/dports/www/firefox-x11/files/patch-browser-app-profile-firefox.js	2009-03-31 19:52:33 UTC (rev 48950)
+++ trunk/dports/www/firefox-x11/files/patch-browser-app-profile-firefox.js	2009-03-31 20:45:44 UTC (rev 48951)
@@ -1,12 +0,0 @@
---- browser/app/profile/firefox.js~	2006-02-20 11:21:57.000000000 -0500
-+++ browser/app/profile/firefox.js	2006-02-20 11:42:58.000000000 -0500
-@@ -48,6 +48,9 @@
- #endif
- #endif
- 
-+// MacPorts-specific preferences
-+pref("general.useragent.vendorComment", "MacPorts Firefox Community Edition");
-+
- pref("general.startup.browser", true);
- 
- pref("browser.chromeURL","chrome://browser/content/");

Deleted: trunk/dports/www/firefox-x11/files/patch-browser-components-build-Makefile.in
===================================================================
--- trunk/dports/www/firefox-x11/files/patch-browser-components-build-Makefile.in	2009-03-31 19:52:33 UTC (rev 48950)
+++ trunk/dports/www/firefox-x11/files/patch-browser-components-build-Makefile.in	2009-03-31 20:45:44 UTC (rev 48951)
@@ -1,15 +0,0 @@
---- browser/components/build/Makefile.in~	2006-02-19 09:54:45.000000000 -0500
-+++ browser/components/build/Makefile.in	2006-02-19 09:56:27.000000000 -0500
-@@ -74,6 +74,12 @@
- 	$(MOZ_COMPONENT_LIBS) \
- 	$(NULL)
- 
-+# fix for building on Mac/X11 (bug 257773)
-+# dependencies for gkgfx
-+ifeq ($(MOZ_WIDGET_TOOLKIT), gtk2)
-+EXTRA_DSO_LDOPTS += $(MOZ_GTK2_LIBS)
-+endif
-+
- # Need to link to CoreFoundation for Mac Migrators (PList reading code)
- ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
- EXTRA_DSO_LDOPTS += \

Deleted: trunk/dports/www/firefox-x11/files/patch-build-unix-mozilla-xpcom.pc
===================================================================
--- trunk/dports/www/firefox-x11/files/patch-build-unix-mozilla-xpcom.pc	2009-03-31 19:52:33 UTC (rev 48950)
+++ trunk/dports/www/firefox-x11/files/patch-build-unix-mozilla-xpcom.pc	2009-03-31 20:45:44 UTC (rev 48951)
@@ -1,9 +0,0 @@
---- build/unix/mozilla-xpcom.pc.in~	2005-07-05 19:21:52.000000000 -0400
-+++ build/unix/mozilla-xpcom.pc.in	2007-08-20 23:41:09.000000000 -0400
-@@ -8,5 +8,5 @@
- Description: The Mozilla Cross Platform Component Library
- Version: %MOZILLA_VERSION%
- Requires: %NSPR_NAME% >= %NSPR_VERSION%
--Libs: -L${libdir} -lxpcom
-+Libs: -L${libdir} -lxpcom -lxpcom_core
- Cflags: -I${includedir} -I${includedir}/xpcom -I${includedir}/string

Deleted: trunk/dports/www/firefox-x11/files/patch-en-US-chrome-branding-brand.dtd
===================================================================
--- trunk/dports/www/firefox-x11/files/patch-en-US-chrome-branding-brand.dtd	2009-03-31 19:52:33 UTC (rev 48950)
+++ trunk/dports/www/firefox-x11/files/patch-en-US-chrome-branding-brand.dtd	2009-03-31 20:45:44 UTC (rev 48951)
@@ -1,8 +0,0 @@
---- browser/locales/en-US/chrome/branding/brand.dtd.orig	2006-08-25 02:02:37.000000000 +0200
-+++ browser/locales/en-US/chrome/branding/brand.dtd	2008-03-27 18:16:48.000000000 +0100
-@@ -1,3 +1,3 @@
- <!ENTITY  brandShortName        "Bon Echo">
--<!ENTITY  brandFullName         "Bon Echo">            
--<!ENTITY  vendorShortName       "Mozilla">
-+<!ENTITY  brandFullName         "Web Browser">
-+<!ENTITY  vendorShortName       "Web Browser">

Deleted: trunk/dports/www/firefox-x11/files/patch-executable_path.diff
===================================================================
--- trunk/dports/www/firefox-x11/files/patch-executable_path.diff	2009-03-31 19:52:33 UTC (rev 48950)
+++ trunk/dports/www/firefox-x11/files/patch-executable_path.diff	2009-03-31 20:45:44 UTC (rev 48951)
@@ -1,110 +0,0 @@
---- config/rules.mk.orig	2006-12-22 14:50:41.000000000 +0200
-+++ config/rules.mk	2007-09-22 22:31:47.000000000 +0200
-@@ -424,7 +424,7 @@
- ifdef IS_COMPONENT
- EXTRA_DSO_LDOPTS	+= -bundle
- else
--EXTRA_DSO_LDOPTS	+= -dynamiclib -install_name @executable_path/$(SHARED_LIBRARY) -compatibility_version 1 -current_version 1
-+EXTRA_DSO_LDOPTS	+= -dynamiclib -install_name $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)/$(SHARED_LIBRARY) -compatibility_version 1 -current_version 1
- endif
- endif
- endif
---- config/config.mk.orig	2007-02-16 03:19:06.000000000 +0200
-+++ config/config.mk	2007-09-22 23:44:44.000000000 +0200
-@@ -745,7 +745,7 @@
- # Tell the linker where NSS is, if we're building crypto
- ifeq ($(OS_ARCH),Darwin)
- ifeq (,$(findstring crypto,$(MOZ_META_COMPONENTS)))
--MOZ_COMPONENTLIB_EXTRA_LIBS = $(foreach library, $(patsubst -l%, $(LIB_PREFIX)%$(DLL_SUFFIX), $(filter -l%, $(NSS_LIBS))), -dylib_file @executable_path/$(library):$(DIST)/bin/$(library))
-+MOZ_COMPONENTLIB_EXTRA_LIBS = $(foreach library, $(patsubst -l%, $(LIB_PREFIX)%$(DLL_SUFFIX), $(filter -l%, $(NSS_LIBS))), -dylib_file $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)/$(library):$(DIST)/bin/$(library))
- endif
- endif
- endif
---- directory/c-sdk/configure.in.orig	2007-07-15 16:41:07.000000000 +0200
-+++ directory/c-sdk/configure.in	2007-09-23 10:38:22.000000000 +0200
-@@ -921,7 +921,7 @@ case "$target" in
-             CPU_ARCH=ppc
-             ;;
-     esac
--    DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@'
-+    DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name \$(libdir)/\$(MOZ_APP_NAME)-\$(MOZ_APP_VERSION)/$@'
-     # Use the standard preprocessor (cpp)
-     CFLAGS="$CFLAGS -no-cpp-precomp"
-     MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
---- directory/c-sdk/configure.orig	2006-02-23 01:58:13.000000000 +0100
-+++ directory/c-sdk/configure	2007-09-23 10:38:35.000000000 +0200
-@@ -3330,7 +3330,7 @@ EOF
-             CPU_ARCH=ppc
-             ;;
-     esac
--    DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@'
-+    DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name \$(libdir)/\$(MOZ_APP_NAME)-\$(MOZ_APP_VERSION)/$@'
-     # Use the standard preprocessor (cpp)
-     CFLAGS="$CFLAGS -no-cpp-precomp"
-     MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
---- nsprpub/configure.in.orig	2007-05-03 03:30:08.000000000 +0200
-+++ nsprpub/configure.in	2007-09-23 10:39:41.000000000 +0200
-@@ -979,7 +979,7 @@ case "$target" in
-             ;;
-     esac
-     DSO_CFLAGS=-fPIC
--    DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@ -headerpad_max_install_names'
-+    DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name \$(libdir)/\$(MOZ_APP_NAME)-\$(MOZ_APP_VERSION)/$@ -headerpad_max_install_names'
-     # Use the standard preprocessor (cpp)
-     CFLAGS="$CFLAGS -no-cpp-precomp"
-     MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
---- nsprpub/configure.orig	2007-05-03 03:30:08.000000000 +0200
-+++ nsprpub/configure	2007-09-23 10:39:24.000000000 +0200
-@@ -3326,7 +3326,7 @@ EOF
-             ;;
-     esac
-     DSO_CFLAGS=-fPIC
--    DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@ -headerpad_max_install_names'
-+    DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name \$(libdir)/\$(MOZ_APP_NAME)-\$(MOZ_APP_VERSION)/$@ -headerpad_max_install_names'
-     # Use the standard preprocessor (cpp)
-     CFLAGS="$CFLAGS -no-cpp-precomp"
-     MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
---- security/coreconf/Darwin.mk.orig	2005-01-20 09:12:48.000000000 +0100
-+++ security/coreconf/Darwin.mk	2007-09-23 12:49:02.000000000 +0200
-@@ -111,7 +111,7 @@ endif
- 
- DSO_CFLAGS	= -fPIC
- # May override this with -bundle to create a loadable module.
--DSO_LDOPTS	= -dynamiclib -compatibility_version 1 -current_version 1 -install_name @executable_path/$(notdir $@) -headerpad_max_install_names
-+DSO_LDOPTS	= -dynamiclib -compatibility_version 1 -current_version 1 -install_name \$(libdir)/\$(MOZ_APP_NAME)-\$(MOZ_APP_VERSION)/$(notdir $@) -headerpad_max_install_names
- 
- MKSHLIB		= $(CC) $(DSO_LDOPTS) $(DARWIN_SDK_SHLIBFLAGS)
- DLL_SUFFIX	= dylib
---- security/nss/cmd/platlibs.mk.orig	2004-10-16 01:52:29.000000000 +0200
-+++ security/nss/cmd/platlibs.mk	2007-09-23 12:48:37.000000000 +0200
-@@ -226,7 +226,7 @@ endif
- endif
- 
- ifeq ($(OS_ARCH), Darwin)
--EXTRA_SHARED_LIBS += -dylib_file @executable_path/libsoftokn3.dylib:$(DIST)/lib/libsoftokn3.dylib
-+EXTRA_SHARED_LIBS += -dylib_file $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)/libsoftokn3.dylib:$(DIST)/lib/libsoftokn3.dylib
- endif
- 
- 
---- security/nss/lib/smime/config.mk.orig	2004-10-16 01:52:34.000000000 +0200
-+++ security/nss/lib/smime/config.mk	2007-09-23 12:48:24.000000000 +0200
-@@ -76,7 +76,7 @@ EXTRA_SHARED_LIBS += \
- 	$(NULL)
- 
- ifeq ($(OS_ARCH), Darwin)
--EXTRA_SHARED_LIBS += -dylib_file @executable_path/libsoftokn3.dylib:$(DIST)/lib/libsoftokn3.dylib
-+EXTRA_SHARED_LIBS += -dylib_file $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)/libsoftokn3.dylib:$(DIST)/lib/libsoftokn3.dylib
- endif
- 
- endif
---- security/nss/lib/ssl/config.mk.orig	2004-10-16 01:52:35.000000000 +0200
-+++ security/nss/lib/ssl/config.mk	2007-09-23 12:48:15.000000000 +0200
-@@ -109,7 +109,7 @@ EXTRA_SHARED_LIBS += -lbe
- endif
- 
- ifeq ($(OS_ARCH), Darwin)
--EXTRA_SHARED_LIBS += -dylib_file @executable_path/libsoftokn3.dylib:$(DIST)/lib/libsoftokn3.dylib
-+EXTRA_SHARED_LIBS += -dylib_file $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)/libsoftokn3.dylib:$(DIST)/lib/libsoftokn3.dylib
- endif
- 
- ifeq ($(OS_TARGET),SunOS)

Deleted: trunk/dports/www/firefox-x11/files/patch-layout-build-Makefile.in
===================================================================
--- trunk/dports/www/firefox-x11/files/patch-layout-build-Makefile.in	2009-03-31 19:52:33 UTC (rev 48950)
+++ trunk/dports/www/firefox-x11/files/patch-layout-build-Makefile.in	2009-03-31 20:45:44 UTC (rev 48951)
@@ -1,22 +0,0 @@
---- /Users/mta/macports/dports/www/firefox-x11/save/layout_build_Makefile.in	2007-08-23 01:08:14.000000000 -0400
-+++ layout/build/Makefile.in	2007-08-23 01:07:49.000000000 -0400
-@@ -224,13 +224,15 @@
- 		    $(NULL)
- endif
- 
--ifdef MOZ_ENABLE_GTK2
--EXTRA_DSO_LDOPTS += $(MOZ_GTK2_LIBS) \
-+ifneq (,$(MOZ_ENABLE_CANVAS)$(MOZ_SVG_RENDERER_CAIRO))
-+EXTRA_DSO_LDOPTS += $(MOZ_CAIRO_LIBS) \
- 		    $(NULL)
- endif
- 
--ifneq (,$(MOZ_ENABLE_CANVAS)$(MOZ_SVG_RENDERER_CAIRO))
--EXTRA_DSO_LDOPTS += $(MOZ_CAIRO_LIBS) \
-+# MOZ_GTK2_LIBS must come after MOZ_CAIRO_LIBS to avoid multiply defined
-+# symbols between libcairo.dylib and libmozcairo.a
-+ifdef MOZ_ENABLE_GTK2
-+EXTRA_DSO_LDOPTS += $(MOZ_GTK2_LIBS) \
- 		    $(NULL)
- endif
- 

Deleted: trunk/dports/www/firefox-x11/files/patch-xpcom-build-Makefile
===================================================================
--- trunk/dports/www/firefox-x11/files/patch-xpcom-build-Makefile	2009-03-31 19:52:33 UTC (rev 48950)
+++ trunk/dports/www/firefox-x11/files/patch-xpcom-build-Makefile	2009-03-31 20:45:44 UTC (rev 48951)
@@ -1,15 +0,0 @@
---- save/xpcom_build_Makefile.in	2007-08-22 16:11:33.000000000 -0400
-+++ xpcom/build/Makefile.in		2007-08-22 16:11:56.000000000 -0400
-@@ -139,6 +139,12 @@
- EXTRA_DEPS += $(DIST)/lib/$(LIB_PREFIX)macmorefiles_s.$(LIB_SUFFIX)
- endif
- 
-+# nsMacUtilsImpl needs CoreFoundation on Darwin, probably wrong, but 
-+# that's the way it is.
-+ifeq ($(OS_TARGET),Darwin)
-+OS_LIBS		+= -framework CoreServices -framework CoreFoundation
-+endif
-+
- # Force use of PIC
- FORCE_USE_PIC	= 1 
- 

Deleted: trunk/dports/www/firefox-x11/files/patch-xptcall_x86.diff
===================================================================
--- trunk/dports/www/firefox-x11/files/patch-xptcall_x86.diff	2009-03-31 19:52:33 UTC (rev 48950)
+++ trunk/dports/www/firefox-x11/files/patch-xptcall_x86.diff	2009-03-31 20:45:44 UTC (rev 48951)
@@ -1,22 +0,0 @@
---- xpcom/reflect/xptcall/src/md/unix/xptc_platforms_unixish_x86.h.bak	2007-04-09 22:01:13.000000000 +0200
-+++ xpcom/reflect/xptcall/src/md/unix/xptc_platforms_unixish_x86.h	2007-10-10 09:45:43.000000000 +0200
-@@ -173,7 +173,7 @@
- /* Define KEEP_STACK_16_BYTE_ALIGNED if the stack needs to maintain alignment
-  * in a CALL for some good reason (like ABI compliance). */
- 
--#if defined(XP_MACOSX) || defined(__QNXNTO__)
-+#if defined(__APPLE__) || defined(__QNXNTO__)
- /* http://developer.apple.com/documentation/DeveloperTools/Conceptual/LowLevelABI/Articles/IA32.html */
- #define KEEP_STACK_16_BYTE_ALIGNED
- #endif
---- xpcom/reflect/xptcall/src/md/unix/xptcstubs_unixish_x86.cpp.bak	2005-10-24 07:42:28.000000000 +0200
-+++ xpcom/reflect/xptcall/src/md/unix/xptcstubs_unixish_x86.cpp	2007-10-10 09:45:43.000000000 +0200
-@@ -104,7 +104,7 @@ PrepareAndDispatch(nsXPTCStubBase* self,
- 
- #ifdef __GNUC__         /* Gnu Compiler. */
- 
--#ifdef XP_MACOSX
-+#ifdef __APPLE__
- /* Make sure the stack is 16-byte aligned.  Do that by aligning to 16 bytes and
-  * then subtracting 4 so the three subsequent pushes result in a 16-byte aligned
-  * stack. */

Added: trunk/dports/www/firefox-x11/files/system-nss.patch
===================================================================
--- trunk/dports/www/firefox-x11/files/system-nss.patch	                        (rev 0)
+++ trunk/dports/www/firefox-x11/files/system-nss.patch	2009-03-31 20:45:44 UTC (rev 48951)
@@ -0,0 +1,13 @@
+https://bugzilla.mozilla.org/show_bug.cgi?id=485862
+
+--- config/autoconf.mk.in.orig	2009-03-29 22:07:24.000000000 -0700
++++ config/autoconf.mk.in	2009-03-29 22:07:54.000000000 -0700
+@@ -278,7 +278,7 @@ OS_LDFLAGS	= @LDFLAGS@
+ OS_COMPILE_CFLAGS = $(OS_CPPFLAGS) @COMPILE_CFLAGS@
+ OS_COMPILE_CXXFLAGS = $(OS_CPPFLAGS) @COMPILE_CXXFLAGS@
+ 
+-OS_INCLUDES	= $(NSPR_CFLAGS) $(JPEG_CFLAGS) $(PNG_CFLAGS) $(ZLIB_CFLAGS) $(LCMS_CFLAGS)
++OS_INCLUDES	= $(NSPR_CFLAGS) $(NSS_CFLAGS) $(JPEG_CFLAGS) $(PNG_CFLAGS) $(ZLIB_CFLAGS) $(LCMS_CFLAGS)
+ OS_LIBS		= @LIBS@
+ ACDEFINES	= @MOZ_DEFINES@
+ 

Added: trunk/dports/www/firefox-x11/files/xpcom-Makefile.patch
===================================================================
--- trunk/dports/www/firefox-x11/files/xpcom-Makefile.patch	                        (rev 0)
+++ trunk/dports/www/firefox-x11/files/xpcom-Makefile.patch	2009-03-31 20:45:44 UTC (rev 48951)
@@ -0,0 +1,11 @@
+--- xpcom/stub/Makefile.in.orig	2009-03-29 20:11:15.000000000 -0700
++++ xpcom/stub/Makefile.in	2009-03-29 20:11:48.000000000 -0700
+@@ -107,7 +107,7 @@ else
+ DEPENDENT_LIBS_LIST += $(LIB_PREFIX)mozjs$(DLL_SUFFIX)
+ endif
+ 
+-ifeq (Darwin,$(OS_ARCH))
++ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
+ EXTRA_DSO_LDOPTS += $(DIST)/bin/XUL
+ DEPENDENT_LIBS_LIST += XUL
+ else
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090331/d5560963/attachment-0001.html>


More information about the macports-changes mailing list