diff options
author | wiz <wiz@pkgsrc.org> | 2010-06-05 12:08:46 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2010-06-05 12:08:46 +0000 |
commit | 3ef33f7a4e1b4fc3f1b3f802d8ff46c7f4435b59 (patch) | |
tree | 326ce929976d0c2e0d7555c2fff94bf2ffd307a7 /graphics/gtkglext | |
parent | 7ac72a36e41ea2d3b59444a97479ef34b16c9052 (diff) | |
download | pkgsrc-3ef33f7a4e1b4fc3f1b3f802d8ff46c7f4435b59.tar.gz |
Avoid calling deprecated GTK2 macros. Bump PKGREVISION.
Set LICENSE.
Diffstat (limited to 'graphics/gtkglext')
-rw-r--r-- | graphics/gtkglext/Makefile | 6 | ||||
-rw-r--r-- | graphics/gtkglext/distinfo | 3 | ||||
-rw-r--r-- | graphics/gtkglext/patches/patch-aa | 78 |
3 files changed, 84 insertions, 3 deletions
diff --git a/graphics/gtkglext/Makefile b/graphics/gtkglext/Makefile index e1a8469056f..057d103bd4b 100644 --- a/graphics/gtkglext/Makefile +++ b/graphics/gtkglext/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.37 2009/08/26 19:56:56 sno Exp $ +# $NetBSD: Makefile,v 1.38 2010/06/05 12:08:46 wiz Exp $ DISTNAME= gtkglext-1.2.0 -PKGREVISION= 3 +PKGREVISION= 4 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gtkglext/} EXTRACT_SUFX= .tar.bz2 @@ -9,6 +9,7 @@ EXTRACT_SUFX= .tar.bz2 MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://gtkglext.sourceforge.net/ COMMENT= OpenGL extension to GTK +LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1 PKG_DESTDIR_SUPPORT= user-destdir @@ -25,6 +26,7 @@ BUILDLINK_DEPMETHOD.libXt?= build .include "../../devel/pango/buildlink3.mk" .include "../../graphics/glu/buildlink3.mk" +BUILDLINK_API_DEPENDS.gtk2+= gtk2+>=2.20.0 .include "../../x11/gtk2/buildlink3.mk" .include "../../x11/libXt/buildlink3.mk" .include "../../mk/pthread.buildlink3.mk" diff --git a/graphics/gtkglext/distinfo b/graphics/gtkglext/distinfo index b84b7e99c66..dcdcf9a65df 100644 --- a/graphics/gtkglext/distinfo +++ b/graphics/gtkglext/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.8 2006/02/13 20:56:15 adam Exp $ +$NetBSD: distinfo,v 1.9 2010/06/05 12:08:46 wiz Exp $ SHA1 (gtkglext-1.2.0.tar.bz2) = d84c9472af3438fbce84189613e5370b97d9d1e7 RMD160 (gtkglext-1.2.0.tar.bz2) = c731df1b4f0bf2ccb213fe489d2c2d08910d4c77 Size (gtkglext-1.2.0.tar.bz2) = 703821 bytes +SHA1 (patch-aa) = 7d84aed4255f90877088024bd6e3c48657a618aa diff --git a/graphics/gtkglext/patches/patch-aa b/graphics/gtkglext/patches/patch-aa new file mode 100644 index 00000000000..c7b51b228a6 --- /dev/null +++ b/graphics/gtkglext/patches/patch-aa @@ -0,0 +1,78 @@ +$NetBSD: patch-aa,v 1.6 2010/06/05 12:08:46 wiz Exp $ + +--- gtk/gtkglwidget.c.orig 2004-02-20 09:38:36.000000000 +0000 ++++ gtk/gtkglwidget.c +@@ -127,7 +127,7 @@ gtk_gl_widget_size_allocate (GtkWidget + * Synchronize OpenGL and window resizing request streams. + */ + +- if (GTK_WIDGET_REALIZED (widget) && private->is_realized) ++ if (gtk_widget_get_realized (widget) && private->is_realized) + { + gldrawable = gdk_window_get_gl_drawable (widget->window); + gdk_gl_drawable_wait_gdk (gldrawable); +@@ -154,7 +154,7 @@ gtk_gl_widget_unrealize (GtkWidget + * Remove OpenGL-capability from widget->window. + */ + +- if (GTK_WIDGET_REALIZED (widget)) ++ if (gtk_widget_get_realized (widget)) + gdk_window_unset_gl_capability (widget->window); + + private->is_realized = FALSE; +@@ -174,7 +174,7 @@ gtk_gl_widget_parent_set (GtkWidget *w + */ + + toplevel = gtk_widget_get_toplevel (widget); +- if (GTK_WIDGET_TOPLEVEL (toplevel) && !GTK_WIDGET_REALIZED (toplevel)) ++ if (gtk_widget_is_toplevel (toplevel) && !gtk_widget_get_realized (toplevel)) + { + GTK_GL_NOTE (MISC, + g_message (" - Install colormap to the top-level window.")); +@@ -194,7 +194,7 @@ gtk_gl_widget_style_set (GtkWidget *widg + * Set a background of "None" on window to avoid AIX X server crash. + */ + +- if (GTK_WIDGET_REALIZED (widget)) ++ if (gtk_widget_get_realized (widget)) + { + GTK_GL_NOTE (MISC, + g_message (" - window->bg_pixmap = %p", +@@ -250,8 +250,8 @@ gtk_widget_set_gl_capability (GtkWidget + GTK_GL_NOTE_FUNC (); + + g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE); +- g_return_val_if_fail (!GTK_WIDGET_NO_WINDOW (widget), FALSE); +- g_return_val_if_fail (!GTK_WIDGET_REALIZED (widget), FALSE); ++ g_return_val_if_fail (gtk_widget_get_has_window (widget), FALSE); ++ g_return_val_if_fail (!gtk_widget_get_realized (widget), FALSE); + g_return_val_if_fail (GDK_IS_GL_CONFIG (glconfig), FALSE); + + /* +@@ -432,7 +432,7 @@ gtk_widget_create_gl_context (GtkWidget + GTK_GL_NOTE_FUNC (); + + g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL); +- g_return_val_if_fail (GTK_WIDGET_REALIZED (widget), NULL); ++ g_return_val_if_fail (gtk_widget_get_realized (widget), NULL); + + gldrawable = gdk_window_get_gl_drawable (widget->window); + if (gldrawable == NULL) +@@ -474,7 +474,7 @@ gtk_widget_get_gl_context (GtkWidget *wi + GLWidgetPrivate *private; + + g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL); +- g_return_val_if_fail (GTK_WIDGET_REALIZED (widget), NULL); ++ g_return_val_if_fail (gtk_widget_get_realized (widget), NULL); + + private = g_object_get_qdata (G_OBJECT (widget), quark_gl_private); + if (private == NULL) +@@ -501,7 +501,7 @@ GdkGLWindow * + gtk_widget_get_gl_window (GtkWidget *widget) + { + g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL); +- g_return_val_if_fail (GTK_WIDGET_REALIZED (widget), NULL); ++ g_return_val_if_fail (gtk_widget_get_realized (widget), NULL); + + return gdk_window_get_gl_window (widget->window); + } |