Use XQuartz's version of OSMesa rather than Mac SDK's. It is newer and has a fix for a bug that unit tests and GM trigger.



git-svn-id: http://skia.googlecode.com/svn/trunk@7561 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gyp/gpu.gyp b/gyp/gpu.gyp
index 6c599e1..69e0815 100644
--- a/gyp/gpu.gyp
+++ b/gyp/gpu.gyp
@@ -155,7 +155,7 @@
         }],
         [ 'skia_mesa and skia_os == "mac"', {
           'include_dirs': [
-             '$(SDKROOT)/usr/X11/include/',
+             '/opt/X11/include/',
           ],
         }],
         [ 'not skia_angle', {
@@ -269,11 +269,11 @@
         [ 'skia_mesa and skia_os == "mac"', {
           'link_settings': {
             'libraries': [
-              '$(SDKROOT)/usr/X11/lib/libOSMesa.dylib',
+              '/opt/X11/lib/libOSMesa.dylib',
             ],
           },
           'include_dirs': [
-             '$(SDKROOT)/usr/X11/include/',
+             '/opt/X11/include/',
           ],
         }],
         [ 'not skia_mesa', {