summaryrefslogtreecommitdiffstats
path: root/main/gtkglext
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-01-21 20:58:21 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2011-01-21 20:58:21 -0600
commiteab8d846bd01df8f38bb2e41149b929774f6957e (patch)
tree7b132cb9cf474312662e8eeeb6fa237a4a8cc379 /main/gtkglext
parenteeaf95c39a6255b3b02b3ed10504bd8562e032d4 (diff)
downloadaports-eab8d846bd01df8f38bb2e41149b929774f6957e.tar.bz2
aports-eab8d846bd01df8f38bb2e41149b929774f6957e.tar.xz
main/gtkglext: promote from testing
Diffstat (limited to 'main/gtkglext')
-rw-r--r--main/gtkglext/APKBUILD41
-rw-r--r--main/gtkglext/gtkglext-deprecated.patch76
2 files changed, 117 insertions, 0 deletions
diff --git a/main/gtkglext/APKBUILD b/main/gtkglext/APKBUILD
new file mode 100644
index 000000000..f5b9d6a9f
--- /dev/null
+++ b/main/gtkglext/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer:
+pkgname=gtkglext
+pkgver=1.2.0
+pkgrel=2
+pkgdesc="GTK+ OpenGL Extension"
+url="http://projects.gnome.org/gtkglext/"
+arch="all"
+license="LGPL"
+depends=
+depends_dev="gtk+-dev mesa-dev libice-dev libxxf86vm-dev libxi-dev libx11-dev libxt-dev"
+makedepends="$depends_dev"
+install=
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
+ gtkglext-deprecated.patch"
+
+_builddir="$srcdir/$pkgname-$pkgver"
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="5c3240bfc1b21becd33ce35c5abe6f8d gtkglext-1.2.0.tar.gz
+6305d2938e4084bd9f5221c9459f8bc8 gtkglext-deprecated.patch"
diff --git a/main/gtkglext/gtkglext-deprecated.patch b/main/gtkglext/gtkglext-deprecated.patch
new file mode 100644
index 000000000..997bc804a
--- /dev/null
+++ b/main/gtkglext/gtkglext-deprecated.patch
@@ -0,0 +1,76 @@
+--- gtkglext-1.2.0.orig/gtk/gtkglwidget.c
++++ gtkglext-1.2.0/gtk/gtkglwidget.c
+@@ -127,7 +127,7 @@
+ * 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 @@
+ * 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 @@
+ */
+
+ 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 @@
+ * 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_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_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 @@
+ 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 @@
+ 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);
+ }