[75121] trunk/dports/devel/xulrunner-devel

jeremyhu at macports.org jeremyhu at macports.org
Sat Jan 15 14:08:24 PST 2011


Revision: 75121
          http://trac.macports.org/changeset/75121
Author:   jeremyhu at macports.org
Date:     2011-01-15 14:08:16 -0800 (Sat, 15 Jan 2011)
Log Message:
-----------
xulrunner-devel: Bump to 2.0b9 and build more bits internally for +internal_dependencies

Modified Paths:
--------------
    trunk/dports/devel/xulrunner-devel/Portfile

Added Paths:
-----------
    trunk/dports/devel/xulrunner-devel/files/PR-623797.patch

Modified: trunk/dports/devel/xulrunner-devel/Portfile
===================================================================
--- trunk/dports/devel/xulrunner-devel/Portfile	2011-01-15 21:47:47 UTC (rev 75120)
+++ trunk/dports/devel/xulrunner-devel/Portfile	2011-01-15 22:08:16 UTC (rev 75121)
@@ -7,8 +7,8 @@
 name            xulrunner-devel
 set component	xulrunner
 categories      devel
-version		2.0b8
-set ff_version  4.0b8
+version		2.0b9
+set ff_version  4.0b9
 platforms       darwin
 maintainers     jeremyhu openmaintainer
 description     Mozilla.org's runtime package that can be used to bootstrap XUL+XPCOM applications
@@ -29,9 +29,9 @@
 
 use_bzip2       yes
 
-checksums           md5     665ffbf8571e713d5da8f98e3d971e9d \
-                    sha1    40ba6915d736d69e3bcc64365002eedf4a02c8d3 \
-                    rmd160  b2d2faed1a3b71a1e0a605e66dbf63df0180b8c3
+checksums           md5     be58ef0be58cfa3d1efda63bec41fc25 \
+                    sha1    4de79608d75098d8de86902f83e846747a3c5ce3 \
+                    rmd160  aedf962bb9e3748d2212b26de83a75df30e04bf4
 
 worksrcdir      mozilla-central
 
@@ -171,18 +171,33 @@
         --with-system-nspr \
         --with-nspr-prefix=${prefix} \
         --with-system-nss \
-        --with-nss-prefix=${prefix}
+        --with-nss-prefix=${prefix} \
+        --with-system-bzip2=${prefix} \
+        --with-system-jpeg=${prefix} \
+        --with-system-zlib=${prefix} \
+        --enable-system-lcms \
+        --enable-system-cairo \
+        --enable-system-sqlite
+
+    configure.args-append \
+        --disable-system-lcms \
+        --disable-system-cairo \
+        --disable-system-sqlite       
         
     depends_lib-delete \
+        port:lcms \
         port:nss \
         port:nspr
 
     archcheck.files-delete \
+        lib/liblcms.dylib \
         lib/nspr/libnspr4.dylib \
         lib/nss/libnss3.dylib
 }
 
-patchfiles patch-dylib_file.diff plugin-instance-nococoa.patch
+# plugin-instance-nococoa.patch : https://bugzilla.mozilla.org/show_bug.cgi?id=587370
+# PR-623797.patch : #ifdef out features not in mainline cairo when building with system cairo
+patchfiles patch-dylib_file.diff plugin-instance-nococoa.patch PR-623797.patch
 
 post-patch {
     # https://bugzilla.mozilla.org/show_bug.cgi?id=485857

Added: trunk/dports/devel/xulrunner-devel/files/PR-623797.patch
===================================================================
--- trunk/dports/devel/xulrunner-devel/files/PR-623797.patch	                        (rev 0)
+++ trunk/dports/devel/xulrunner-devel/files/PR-623797.patch	2011-01-15 22:08:16 UTC (rev 75121)
@@ -0,0 +1,128 @@
+work around new features that are not avaliable in system-cairo on linux
+(romaxa's patch with modification for return failure with <gcc-4.5)
+
+diff --git a/config/system-headers b/config/system-headers
+--- config/system-headers
++++ config/system-headers
+@@ -81,16 +81,17 @@ pixman.h
+ cairo.h
+ cairo-atsui.h
+ cairo-beos.h
+ cairo-ft.h
+ cairo-glitz.h
+ cairo-os2.h
+ cairo-pdf.h
+ cairo-ps.h
++cairo-tee.h
+ cairo-quartz.h
+ cairo-win32.h
+ cairo-xlib.h
+ cairo-xlib-xrender.h
+ cairo-directfb.h
+ cairo-qpainter.h
+ #endif
+ dfiff.h
+diff --git a/gfx/thebes/gfxASurface.cpp b/gfx/thebes/gfxASurface.cpp
+--- gfx/thebes/gfxASurface.cpp
++++ gfx/thebes/gfxASurface.cpp
+@@ -216,19 +216,21 @@ gfxASurface::Init(cairo_surface_t* surfa
+ 
+     mSurface = surface;
+     mSurfaceValid = PR_TRUE;
+ 
+     if (existingSurface) {
+         mFloatingRefs = 0;
+     } else {
+         mFloatingRefs = 1;
++#ifdef MOZ_TREE_CAIRO
+         if (cairo_surface_get_content(surface) != CAIRO_CONTENT_COLOR) {
+             cairo_surface_set_subpixel_antialiasing(surface, CAIRO_SUBPIXEL_ANTIALIASING_DISABLED);
+         }
++#endif
+     }
+ }
+ 
+ gfxASurface::gfxSurfaceType
+ gfxASurface::GetType() const
+ {
+     if (!mSurfaceValid)
+         return (gfxSurfaceType)-1;
+@@ -432,26 +434,32 @@ gfxASurface::FormatFromContent(gfxASurfa
+     }
+ }
+ 
+ void
+ gfxASurface::SetSubpixelAntialiasingEnabled(PRBool aEnabled)
+ {
+     if (!mSurfaceValid)
+         return;
++#ifdef MOZ_TREE_CAIRO
+     cairo_surface_set_subpixel_antialiasing(mSurface,
+         aEnabled ? CAIRO_SUBPIXEL_ANTIALIASING_ENABLED : CAIRO_SUBPIXEL_ANTIALIASING_DISABLED);
++#endif
+ }
+ 
+ PRBool
+ gfxASurface::GetSubpixelAntialiasingEnabled()
+ {
+     if (!mSurfaceValid)
+       return PR_FALSE;
++#ifdef MOZ_TREE_CAIRO
+     return cairo_surface_get_subpixel_antialiasing(mSurface) == CAIRO_SUBPIXEL_ANTIALIASING_ENABLED;
++#else
++    return PR_TRUE;
++#endif
+ }
+ 
+ PRInt32
+ gfxASurface::BytePerPixelFromFormat(gfxImageFormat format)
+ {
+     switch (format) {
+         case ImageFormatARGB32:
+         case ImageFormatRGB24:
+diff --git a/gfx/thebes/gfxTeeSurface.cpp b/gfx/thebes/gfxTeeSurface.cpp
+--- gfx/thebes/gfxTeeSurface.cpp
++++ gfx/thebes/gfxTeeSurface.cpp
+@@ -32,17 +32,21 @@
+  * and other provisions required by the GPL or the LGPL. If you do not delete
+  * the provisions above, a recipient may use your version of this file under
+  * the terms of any one of the MPL, the GPL or the LGPL.
+  *
+  * ***** END LICENSE BLOCK ***** */
+ 
+ #include "gfxTeeSurface.h"
+ 
++#ifdef MOZ_TREE_CAIRO
+ #include "cairo.h"
++#else
++#include "cairo-tee.h"
++#endif
+ 
+ gfxTeeSurface::gfxTeeSurface(cairo_surface_t *csurf)
+ {
+     Init(csurf, PR_TRUE);
+ }
+ 
+ gfxTeeSurface::gfxTeeSurface(gfxASurface **aSurfaces, PRInt32 aSurfaceCount)
+ {
+diff --git a/js/src/config/system-headers b/js/src/config/system-headers
+--- js/src/config/system-headers
++++ js/src/config/system-headers
+@@ -82,16 +82,17 @@ cairo.h
+ cairo-atsui.h
+ cairo-beos.h
+ cairo-ft.h
+ cairo-glitz.h
+ cairo-os2.h
+ cairo-pdf.h
+ cairo-ps.h
+ cairo-quartz.h
++cairo-tee.h
+ cairo-win32.h
+ cairo-xlib.h
+ cairo-xlib-xrender.h
+ cairo-directfb.h
+ cairo-qpainter.h
+ #endif
+ dfiff.h
+ exception
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110115/ed2fd037/attachment.html>


More information about the macports-changes mailing list