[138525] users/devans/GNOME-3/stable/dports/graphics/clutter

devans at macports.org devans at macports.org
Fri Jul 10 18:48:38 PDT 2015


Revision: 138525
          https://trac.macports.org/changeset/138525
Author:   devans at macports.org
Date:     2015-07-10 18:48:38 -0700 (Fri, 10 Jul 2015)
Log Message:
-----------
GNOME-3/stable: clutter, patch to use the X11 backend as default.

Modified Paths:
--------------
    users/devans/GNOME-3/stable/dports/graphics/clutter/Portfile

Added Paths:
-----------
    users/devans/GNOME-3/stable/dports/graphics/clutter/files/
    users/devans/GNOME-3/stable/dports/graphics/clutter/files/patch-use-x11-backend-as-default.diff

Modified: users/devans/GNOME-3/stable/dports/graphics/clutter/Portfile
===================================================================
--- users/devans/GNOME-3/stable/dports/graphics/clutter/Portfile	2015-07-11 01:33:49 UTC (rev 138524)
+++ users/devans/GNOME-3/stable/dports/graphics/clutter/Portfile	2015-07-11 01:48:38 UTC (rev 138525)
@@ -34,6 +34,8 @@
 
 gobject_introspection yes
 
+patchfiles          patch-use-x11-backend-as-default.diff
+
 variant x11 conflicts quartz {
     depends_lib-append port:gdk-pixbuf2 \
                        port:xorg-libXcomposite \

Added: users/devans/GNOME-3/stable/dports/graphics/clutter/files/patch-use-x11-backend-as-default.diff
===================================================================
--- users/devans/GNOME-3/stable/dports/graphics/clutter/files/patch-use-x11-backend-as-default.diff	                        (rev 0)
+++ users/devans/GNOME-3/stable/dports/graphics/clutter/files/patch-use-x11-backend-as-default.diff	2015-07-11 01:48:38 UTC (rev 138525)
@@ -0,0 +1,26 @@
+--- clutter/clutter-backend.c.orig	2015-07-10 18:13:50.000000000 -0700
++++ clutter/clutter-backend.c	2015-07-10 18:17:25.000000000 -0700
+@@ -486,6 +486,11 @@
+ 	backend = g_intern_string (backend_env);
+     }
+ 
++#ifdef CLUTTER_WINDOWING_X11
++  if (backend == NULL || backend == I_(CLUTTER_WINDOWING_X11))
++    retval = g_object_new (CLUTTER_TYPE_BACKEND_X11, NULL);
++  else
++#endif
+ #ifdef CLUTTER_WINDOWING_OSX
+   if (backend == NULL || backend == I_(CLUTTER_WINDOWING_OSX))
+     retval = g_object_new (CLUTTER_TYPE_BACKEND_OSX, NULL);
+@@ -501,11 +506,6 @@
+     retval = g_object_new (CLUTTER_TYPE_BACKEND_GDK, NULL);
+   else
+ #endif
+-#ifdef CLUTTER_WINDOWING_X11
+-  if (backend == NULL || backend == I_(CLUTTER_WINDOWING_X11))
+-    retval = g_object_new (CLUTTER_TYPE_BACKEND_X11, NULL);
+-  else
+-#endif
+ #ifdef CLUTTER_WINDOWING_WAYLAND
+   if (backend == NULL || backend == I_(CLUTTER_WINDOWING_WAYLAND))
+     retval = g_object_new (CLUTTER_TYPE_BACKEND_WAYLAND, NULL);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150710/00857ced/attachment.html>


More information about the macports-changes mailing list