[75607] trunk/dports/devel/gtkglextmm

ryandesign at macports.org ryandesign at macports.org
Mon Jan 31 22:19:29 PST 2011


Revision: 75607
          http://trac.macports.org/changeset/75607
Author:   ryandesign at macports.org
Date:     2011-01-31 22:19:27 -0800 (Mon, 31 Jan 2011)
Log Message:
-----------
gtkglextmm: fix build error; see #27059

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

Added Paths:
-----------
    trunk/dports/devel/gtkglextmm/files/
    trunk/dports/devel/gtkglextmm/files/patch-gtkglext_gtkmm_gl-widget.cc.diff

Modified: trunk/dports/devel/gtkglextmm/Portfile
===================================================================
--- trunk/dports/devel/gtkglextmm/Portfile	2011-02-01 05:59:21 UTC (rev 75606)
+++ trunk/dports/devel/gtkglextmm/Portfile	2011-02-01 06:19:27 UTC (rev 75607)
@@ -27,3 +27,11 @@
 	port:gtkmm
 
 configure.args --x-include=${prefix}/include --x-lib=${prefix}/lib
+
+# Fix build issue where build fails due to GDK_DISABLE_DEPRECATED being enabled.
+# The order in which files are included matters here. gtkmm does some funky
+# stuff to undefine GDK_DISABLE_DEPRECATED, if defined, before including gdk.h
+# as it needs some deprecated functionality. Including gtkglwidget.h before
+# widget.h causes gdk.h to be included without GDK_DISABLE_DEPRECATED being
+# undefined, and gtkmm never gets the chance to work its undefine magic.
+patchfiles              patch-gtkglext_gtkmm_gl-widget.cc.diff

Added: trunk/dports/devel/gtkglextmm/files/patch-gtkglext_gtkmm_gl-widget.cc.diff
===================================================================
--- trunk/dports/devel/gtkglextmm/files/patch-gtkglext_gtkmm_gl-widget.cc.diff	                        (rev 0)
+++ trunk/dports/devel/gtkglextmm/files/patch-gtkglext_gtkmm_gl-widget.cc.diff	2011-02-01 06:19:27 UTC (rev 75607)
@@ -0,0 +1,15 @@
+--- gtkglext/gtkmm/gl/widget.cc.orig	2011-01-29 00:12:12.000000000 +0100
++++ gtkglext/gtkmm/gl/widget.cc	2011-01-28 23:12:42.000000000 +0100
+@@ -17,10 +17,10 @@
+  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
+  */
+ 
+-#include <gtk/gtkglwidget.h>
+-
+ #include "widget.h"
+ 
++#include <gtk/gtkglwidget.h>
++
+ namespace Gtk
+ {
+   namespace GL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110131/f13d96ef/attachment.html>


More information about the macports-changes mailing list