summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-libs/gtkglext')
-rw-r--r--x11-libs/gtkglext/Manifest1
-rw-r--r--x11-libs/gtkglext/files/gtkglext-1.2.0-gl-configure.patch358
-rw-r--r--x11-libs/gtkglext/gtkglext-1.2.0-r2.ebuild59
-rw-r--r--x11-libs/gtkglext/gtkglext-1.2.0-r3.ebuild66
-rw-r--r--x11-libs/gtkglext/metadata.xml8
5 files changed, 492 insertions, 0 deletions
diff --git a/x11-libs/gtkglext/Manifest b/x11-libs/gtkglext/Manifest
new file mode 100644
index 000000000000..235d366952a1
--- /dev/null
+++ b/x11-libs/gtkglext/Manifest
@@ -0,0 +1 @@
+DIST gtkglext-1.2.0.tar.bz2 703821 SHA256 16bd736074f6b14180f206b7e91263fc721b49912ea3258ab5f094cfa5497f51 SHA512 c5452b7594195da3c1428dc3021a041d70bb8079a514b7310fe7b66f638748ad2399adead36047b52b60b033757581e72f0532c0301e033019bf909f7365071d WHIRLPOOL 2be1308abd4a73a838942ab9fac4d733239b4fe5ba0b50f542510be24088d6697868d2d900b77f8c8e973efd46a5fbb4d2ffd53c7aea8a07d9326bf276908c4f
diff --git a/x11-libs/gtkglext/files/gtkglext-1.2.0-gl-configure.patch b/x11-libs/gtkglext/files/gtkglext-1.2.0-gl-configure.patch
new file mode 100644
index 000000000000..78c2c05f95ca
--- /dev/null
+++ b/x11-libs/gtkglext/files/gtkglext-1.2.0-gl-configure.patch
@@ -0,0 +1,358 @@
+From 6eaa9b0dc18e6ddff093c2e99a3c7d5eeb9c8f5d Mon Sep 17 00:00:00 2001
+From: Alexandre Rostovtsev <tetromino@gentoo.org>
+Date: Sun, 15 Mar 2015 14:42:25 -0400
+Subject: [PATCH] Backport some git master fixes for GL/GLU detection to 1.2.0
+
+---
+ configure.in | 313 +++++++++--------------------------------------------------
+ 1 file changed, 44 insertions(+), 269 deletions(-)
+
+diff --git a/configure.in b/configure.in
+index e5b678c..5aa1b7d 100644
+--- a/configure.in
++++ b/configure.in
+@@ -502,274 +502,58 @@ AC_SUBST([GDKGLEXT_WIN_EXTRA_DEFS])
+ # Checks for OpenGL
+ ##################################################
+
+-GL_CFLAGS=""
+-GL_LDFLAGS=""
+-GL_LIBS=""
+-
+-AC_ARG_WITH([gl-prefix],
+- [AC_HELP_STRING([--with-gl-prefix=DIR],
+- [OpenGL (Mesa) is installed in DIR [default=auto]])], ,
+- [with_gl_prefix=auto])
+-
+-AC_ARG_WITH([gl-includedir],
+- [AC_HELP_STRING([--with-gl-includedir=DIR],
+- [OpenGL (Mesa) headers are in DIR [default=auto]])], ,
+- [with_gl_includedir=auto])
+-
+-AC_ARG_WITH([gl-libdir],
+- [AC_HELP_STRING([--with-gl-libdir=DIR],
+- [OpenGL (Mesa) libraries are in DIR [default=auto]])], ,
+- [with_gl_libdir=auto])
+-
+-if test "x$with_gl_includedir" != "xauto"; then
+- GL_CFLAGS="-I$with_gl_includedir"
+-elif test "x$with_gl_prefix" != "xauto"; then
+- GL_CFLAGS="-I$with_gl_prefix/include"
++if test "x$gdktarget" = "xx11"; then
++ with_gl=x
+ fi
+
+-if test "x$with_gl_libdir" != "xauto"; then
+- GL_LDFLAGS="-L$with_gl_libdir"
+-elif test "x$with_gl_prefix" != "xauto"; then
+- GL_LDFLAGS="-L$with_gl_prefix/lib"
++AX_CHECK_GL
++AS_IF([test X$no_gl = Xyes],
++ [AC_MSG_FAILURE([OpenGL is required.])])
++AX_CHECK_GLU
++# FIXME: AX_CHECK_GLU's behavior diverges from common autoconf conventions
++AM_CONDITIONAL([GLU],[test "$no_glu" != yes])
++
++# Checks for some types in gdk/GL/glxext.h
++
++# GLXFBConfigSGIX
++GDKGLEXT_NEED_GLXFBCONFIGSGIX_TYPEDEF=no
++AC_CHECK_TYPES([GLXFBConfigSGIX], , ,
++ [#include <GL/glx.h>])
++if test "x$ac_cv_type_GLXFBConfigSGIX" = "xno" ; then
++ GDKGLEXT_NEED_GLXFBCONFIGSGIX_TYPEDEF=yes
+ fi
+
+-save_CPPFLAGS="$CPPFLAGS"
+-CPPFLAGS="$CPPFLAGS $GL_CFLAGS $WINDOWING_CFLAGS"
+-save_LIBS="$LIBS"
+-LIBS="$LIBS $GL_LDFLAGS $WINDOWING_LIBS $MATH_LIB"
+-
+-if test "x$gdktarget" = "xx11"; then
+- AC_CHECK_HEADERS([GL/glx.h], ,
+- [AC_MSG_ERROR([Cannot find GLX header])])
++# GLXFBConfigIDSGIX
++GDKGLEXT_NEED_GLXFBCONFIGIDSGIX_TYPEDEF=no
++AC_CHECK_TYPES([GLXFBConfigIDSGIX], , ,
++ [#include <GL/glx.h>])
++if test "x$ac_cv_type_GLXFBConfigIDSGIX" = "xno" ; then
++ GDKGLEXT_NEED_GLXFBCONFIGIDSGIX_TYPEDEF=yes
+ fi
+
+-AC_CHECK_HEADERS([GL/gl.h GL/glu.h], ,
+- [AC_MSG_ERROR([Cannot find OpenGL headers])])
+-
+-if test "x$gdktarget" = "xx11"; then
+-
+- # for X11
+-
+- THREAD_LIB="-lpthread"
+- STDCXX_LIB="-lstdc++"
+-
+- have_GL=no
+- GL_LIB_NAME=GL
+-
+- # GLcore and GL (SGI)
+- AC_CHECK_LIB([GLcore], [glVertex3d],
+- [GL_LIBS="-lGLcore"])
+- if test "x$ac_cv_lib_GLcore_glVertex3d" = "xyes" ; then
+- # if GLcore found, then also check for GL
+- AC_CHECK_LIB([GL], [glXCreateContext],
+- [GL_LIBS="-lGL $GL_LIBS"
+- have_GL=yes])
+- fi
+-
+- # GL
+- if test "x$have_GL" = "xno" ; then
+- # if no GLcore and GL, check for GL
+- AC_CHECK_LIB([GL], [glVertex3d],
+- [GL_LIBS="-lGL"
+- have_GL=yes])
+- if test "x$ac_cv_lib_GL_glVertex3d" = "xno" ; then
+- # GL may need to be linked with the thread library explicitly
+- AC_CHECK_LIB([GL], [glVertex3f],
+- [GL_LIBS="-lGL $THREAD_LIB"
+- have_GL=yes], ,
+- [$THREAD_LIB])
+- if test "x$ac_cv_lib_GL_glVertex3f" = "xno" ; then
+- # GL may need to be linked with std C++ library explicitly
+- AC_CHECK_LIB([GL], [glVertex3i],
+- [GL_LIBS="-lGL $STDCXX_LIB"
+- have_GL=yes], ,
+- [$STDCXX_LIB])
+- if test "x$ac_cv_lib_GL_glVertex3i" = "xno" ; then
+- # GL may need to be linked with std C++ and thread libraries explicitly
+- AC_CHECK_LIB([GL], [glVertex3s],
+- [GL_LIBS="-lGL $STDCXX_LIB $THREAD_LIB"
+- have_GL=yes], ,
+- [$STDCXX_LIB $THREAD_LIB])
+- fi
+- fi
+- fi
+- fi
+-
+- # MesaGL
+- if test "x$have_GL" = "xno" ; then
+- # if no GL, check for MesaGL
+- AC_CHECK_LIB([MesaGL], [glVertex3d],
+- [GL_LIBS="-lMesaGL"
+- have_GL=yes
+- GL_LIB_NAME=MesaGL])
+- fi
+-
+- if test "x$have_GL" = "xno" ; then
+- # no GL found
+- AC_MSG_ERROR([Cannot find GL library])
+- fi
+-
+- # GLU
+-
+- have_GLU=no
+- have_SGI_GLU=no
+-
+- AC_CHECK_LIB([GLU], [gluSphere],
+- [GL_LIBS="-lGLU $GL_LIBS"
+- have_GLU=yes], ,
+- [$GL_LIBS])
+- if test "x$ac_cv_lib_GLU_gluSphere" = "xno" ; then
+- # GLU may need to be linked with the thread library explicitly
+- AC_CHECK_LIB([GLU], [gluCylinder],
+- [GL_LIBS="-lGLU $GL_LIBS $THREAD_LIB"
+- have_GLU=yes], ,
+- [$GL_LIBS $THREAD_LIB])
+- if test "x$ac_cv_lib_GLU_gluCylinder" = "xno" ; then
+- # GLU may need to be linked with std C++ library explicitly
+- AC_CHECK_LIB([GLU], [gluDisk],
+- [GL_LIBS="-lGLU $GL_LIBS $STDCXX_LIB"
+- have_GLU=yes
+- have_SGI_GLU=yes], ,
+- [$GL_LIBS $STDCXX_LIB])
+- if test "x$ac_cv_lib_GLU_gluDisk" = "xno" ; then
+- # GLU may need to be linked with std C++ and thread libraries explicitly
+- AC_CHECK_LIB([GLU], [gluPartialDisk],
+- [GL_LIBS="-lGLU $GL_LIBS $STDCXX_LIB $THREAD_LIB"
+- have_GLU=yes
+- have_SGI_GLU=yes], ,
+- [$GL_LIBS $STDCXX_LIB $THREAD_LIB])
+- fi
+- fi
+- fi
+-
+- if test "x$have_GLU" = "xno" ; then
+- # if no GLU, check for MesaGLU
+- AC_CHECK_LIB([MesaGLU], [gluSphere],
+- [GL_LIBS="-lMesaGLU $GL_LIBS"
+- have_GLU=yes], ,
+- [$GL_LIBS])
+- fi
+-
+- if test "x$have_GLU" = "xno" ; then
+- # no GLU found
+- AC_MSG_ERROR([Cannot find GLU library])
+- fi
+-
+- # Checks for SGI's GLU library
+- if test "x$have_SGI_GLU" = "xno" ; then
+- # Try static linking
+- save_LDFLAGS="$LDFLAGS"
+- LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
+-
+- AC_CHECK_LIB([GLU], [gluBeginCurve],
+- [have_SGI_GLU=no], ,
+- [$GL_LIBS])
+- if test "x$ac_cv_lib_GLU_gluBeginCurve" = "xno" ; then
+- AC_CHECK_LIB([GLU], [gluBeginPolygon],
+- [GL_LIBS="$GL_LIBS $STDCXX_LIB"
+- have_SGI_GLU=yes], ,
+- [$GL_LIBS $STDCXX_LIB])
+- fi
+-
+- LDFLAGS="$save_LDFLAGS"
+- fi
+-
+- AC_MSG_CHECKING([whether libGLU needs to be linked with the std C++ library])
+- AC_MSG_RESULT([$have_SGI_GLU])
+-
+- # Checks for some types in gdk/GL/glxext.h
+-
+- # GLXFBConfigSGIX
+- GDKGLEXT_NEED_GLXFBCONFIGSGIX_TYPEDEF=no
+- AC_CHECK_TYPES([GLXFBConfigSGIX], , ,
+- [#include <GL/glx.h>])
+- if test "x$ac_cv_type_GLXFBConfigSGIX" = "xno" ; then
+- GDKGLEXT_NEED_GLXFBCONFIGSGIX_TYPEDEF=yes
+- fi
+-
+- # GLXFBConfigIDSGIX
+- GDKGLEXT_NEED_GLXFBCONFIGIDSGIX_TYPEDEF=no
+- AC_CHECK_TYPES([GLXFBConfigIDSGIX], , ,
+- [#include <GL/glx.h>])
+- if test "x$ac_cv_type_GLXFBConfigIDSGIX" = "xno" ; then
+- GDKGLEXT_NEED_GLXFBCONFIGIDSGIX_TYPEDEF=yes
+- fi
+-
+- # GLXPbufferSGIX
+- GDKGLEXT_NEED_GLXPBUFFERSGIX_TYPEDEF=no
+- AC_CHECK_TYPES([GLXPbufferSGIX], , ,
+- [#include <GL/glx.h>])
+- if test "x$ac_cv_type_GLXPbufferSGIX" = "xno" ; then
+- GDKGLEXT_NEED_GLXPBUFFERSGIX_TYPEDEF=yes
+- fi
+-
+- # GLXVideoSourceSGIX
+- GDKGLEXT_NEED_GLXVIDEOSOURCESGIX_TYPEDEF=no
+- AC_CHECK_TYPES([GLXVideoSourceSGIX], , ,
+- [#include <GL/glx.h>])
+- if test "x$ac_cv_type_GLXVideoSourceSGIX" = "xno" ; then
+- GDKGLEXT_NEED_GLXVIDEOSOURCESGIX_TYPEDEF=yes
+- fi
+-
+- # __GLXextFuncPtr
+- GDKGLEXT_NEED_GLXEXTFUNCPTR_TYPEDEF=no
+- AC_CHECK_TYPES([__GLXextFuncPtr], , ,
+- [#include <GL/glx.h>])
+- if test "x$ac_cv_type___GLXextFuncPtr" = "xno" ; then
+- GDKGLEXT_NEED_GLXEXTFUNCPTR_TYPEDEF=yes
+- fi
+-
+-else
+-
+- # for Win32
+-
+- AC_MSG_CHECKING([for glNewList in -lopengl32])
+- have_opengl32=no
+- LIBS="-lopengl32 $LIBS"
+- AC_TRY_LINK([#include <windows.h>
+- #include <GL/gl.h>],
+- [glVertex3d(0.0, 0.0, 0.0);],
+- [GL_LIBS="-lopengl32"
+- have_opengl32=yes])
+- AC_MSG_RESULT([$have_opengl32])
+- if test "x$have_opengl32" = "xno" ; then
+- AC_MSG_ERROR([Cannot find GL library])
+- fi
+-
+- AC_MSG_CHECKING([for gluNewQuadric in -lglu32])
+- have_glu32=no
+- LIBS="-lglu32 $LIBS"
+- AC_TRY_LINK([#include <windows.h>
+- #include <GL/gl.h>
+- #include <GL/glu.h>],
+- [gluNewQuadric();],
+- [GL_LIBS="-lglu32 $GL_LIBS"
+- have_glu32=yes])
+- AC_MSG_RESULT([$have_glu32])
+- if test "x$have_glu32" = "xno" ; then
+- AC_MSG_ERROR([Cannot find GLU library])
+- fi
+-
+-dnl AC_CHECK_LIB(opengl32, glNewList,
+-dnl GL_LIBS="-lopengl32",
+-dnl AC_MSG_ERROR(Cannot find GL library))
+-
+-dnl AC_CHECK_LIB(glu32, gluNewQuadric,
+-dnl GL_LIBS="-lglu32 $GL_LIBS",
+-dnl AC_MSG_ERROR(Cannot find GLU library),
+-dnl $GL_LIBS)
++# GLXPbufferSGIX
++GDKGLEXT_NEED_GLXPBUFFERSGIX_TYPEDEF=no
++AC_CHECK_TYPES([GLXPbufferSGIX], , ,
++ [#include <GL/glx.h>])
++if test "x$ac_cv_type_GLXPbufferSGIX" = "xno" ; then
++ GDKGLEXT_NEED_GLXPBUFFERSGIX_TYPEDEF=yes
++fi
+
++# GLXVideoSourceSGIX
++GDKGLEXT_NEED_GLXVIDEOSOURCESGIX_TYPEDEF=no
++AC_CHECK_TYPES([GLXVideoSourceSGIX], , ,
++ [#include <GL/glx.h>])
++if test "x$ac_cv_type_GLXVideoSourceSGIX" = "xno" ; then
++ GDKGLEXT_NEED_GLXVIDEOSOURCESGIX_TYPEDEF=yes
+ fi
+
+-dnl # if using mesa, check for xmesa.h
+-dnl if test "x$ac_cv_lib_MesaGL_glNewList" = "xyes" ; then
+-dnl AC_CHECK_HEADERS([GL/xmesa.h])
+-dnl AM_CONDITIONAL(ENABLE_XMESA_FX, \
+-dnl test "x$ac_cv_header_GL_xmesa_h" = "xyes")
+-dnl else
+-dnl # force a failed check
+-dnl AM_CONDITIONAL(ENABLE_XMESA_FX, test "no" = "yes")
+-dnl fi
++# __GLXextFuncPtr
++GDKGLEXT_NEED_GLXEXTFUNCPTR_TYPEDEF=no
++AC_CHECK_TYPES([__GLXextFuncPtr], , ,
++ [#include <GL/glx.h>])
++if test "x$ac_cv_type___GLXextFuncPtr" = "xno" ; then
++ GDKGLEXT_NEED_GLXEXTFUNCPTR_TYPEDEF=yes
++fi
+
+ # Checks for typedefs in gdk/GL/glext.h
+
+@@ -781,22 +565,13 @@ if test "x$ac_cv_type_GLhalfNV" = "xno" ; then
+ GDKGLEXT_NEED_GLHALFNV_TYPEDEF=yes
+ fi
+
+-GL_LIBS="$GL_LDFLAGS $GL_LIBS"
+-
+-AC_SUBST([GL_CFLAGS])
+-AC_SUBST([GL_LIBS])
+-
+-CPPFLAGS="$save_CPPFLAGS"
+-LIBS="$save_LIBS"
+-
+-
+ ##################################################
+ # CFLAGS and LIBS
+ ##################################################
+
+ GDKGLEXT_PACKAGES="gdk_pkg pango_pkg pangox_pkg gmodule_pkg"
+ GDKGLEXT_EXTRA_CFLAGS="$GL_CFLAGS $GDKGLEXT_WIN_CFLAGS"
+-GDKGLEXT_EXTRA_LIBS="$GL_LIBS $GDKGLEXT_WIN_LIBS"
++GDKGLEXT_EXTRA_LIBS="$GL_LIBS $GLU_LIBS $GDKGLEXT_WIN_LIBS"
+ GDKGLEXT_DEP_CFLAGS="$GDKGLEXT_EXTRA_CFLAGS `$PKG_CONFIG --cflags $GDKGLEXT_PACKAGES`"
+ GDKGLEXT_DEP_LIBS="$GDKGLEXT_EXTRA_LIBS `$PKG_CONFIG --libs $GDKGLEXT_PACKAGES` $MATH_LIB"
+ AC_SUBST([GDKGLEXT_PACKAGES])
+--
+2.3.2
+
diff --git a/x11-libs/gtkglext/gtkglext-1.2.0-r2.ebuild b/x11-libs/gtkglext/gtkglext-1.2.0-r2.ebuild
new file mode 100644
index 000000000000..63f8a9431d75
--- /dev/null
+++ b/x11-libs/gtkglext/gtkglext-1.2.0-r2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+GNOME2_LA_PUNT="yes"
+inherit gnome2 multilib-minimal
+
+DESCRIPTION="GL extensions for Gtk+ 2.0"
+HOMEPAGE="http://gtkglext.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2+ LGPL-2.1+"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND=">=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}]
+ >=x11-libs/gtk+-2.24.23:2[${MULTILIB_USEDEP}]
+ >=x11-libs/pango-1.36.3[X,${MULTILIB_USEDEP}]
+ || (
+ >=x11-libs/pangox-compat-0.0.2[${MULTILIB_USEDEP}]
+ <x11-libs/pango-1.31[X,${MULTILIB_USEDEP}]
+ )
+ >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
+ >=x11-libs/libXmu-1.1.1-r1[${MULTILIB_USEDEP}]
+ >=virtual/glu-9.0-r1[${MULTILIB_USEDEP}]
+ >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]"
+DEPEND="${RDEPEND}
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
+
+src_prepare() {
+ gnome2_src_prepare
+
+ # Remove development knobs, bug #308973
+ sed -i 's:-D\(G.*DISABLE_DEPRECATED\):-D__\1__:g' \
+ examples/Makefile.am examples/Makefile.in \
+ gdk/Makefile.am gdk/Makefile.in \
+ gdk/win32/Makefile.am gdk/win32/Makefile.in \
+ gdk/x11/Makefile.am gdk/x11/Makefile.in \
+ gtk/Makefile.am gtk/Makefile.in \
+ || die "sed failed"
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ gnome2_src_configure \
+ --disable-static
+}
+
+multilib_src_install() {
+ gnome2_src_install
+}
+
+multilib_src_install_all() {
+ local DOCS="AUTHORS ChangeLog* NEWS README TODO"
+ einstalldocs
+}
diff --git a/x11-libs/gtkglext/gtkglext-1.2.0-r3.ebuild b/x11-libs/gtkglext/gtkglext-1.2.0-r3.ebuild
new file mode 100644
index 000000000000..fdade753ae3c
--- /dev/null
+++ b/x11-libs/gtkglext/gtkglext-1.2.0-r3.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+GNOME2_LA_PUNT="yes"
+inherit autotools gnome2 multilib-minimal
+
+DESCRIPTION="GL extensions for Gtk+ 2.0"
+HOMEPAGE="http://gtkglext.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2+ LGPL-2.1+"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND=">=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}]
+ >=x11-libs/gtk+-2.24.23:2[${MULTILIB_USEDEP}]
+ >=x11-libs/pango-1.36.3[X,${MULTILIB_USEDEP}]
+ || (
+ >=x11-libs/pangox-compat-0.0.2[${MULTILIB_USEDEP}]
+ <x11-libs/pango-1.31[X,${MULTILIB_USEDEP}]
+ )
+ >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
+ >=x11-libs/libXmu-1.1.1-r1[${MULTILIB_USEDEP}]
+ >=virtual/glu-9.0-r1[${MULTILIB_USEDEP}]
+ >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]"
+DEPEND="${RDEPEND}
+ >=sys-devel/autoconf-archive-2014.02.28
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
+
+src_prepare() {
+ # Ancient configure.in with broken multilib gl detection (bug #543050)
+ # Backport some configure updates from upstream git master to fix
+ epatch "${FILESDIR}/${P}-gl-configure.patch"
+ mv configure.{in,ac} || die "mv failed"
+ eautoreconf
+
+ gnome2_src_prepare
+
+ # Remove development knobs, bug #308973
+ sed -i 's:-D\(G.*DISABLE_DEPRECATED\):-D__\1__:g' \
+ examples/Makefile.am examples/Makefile.in \
+ gdk/Makefile.am gdk/Makefile.in \
+ gdk/win32/Makefile.am gdk/win32/Makefile.in \
+ gdk/x11/Makefile.am gdk/x11/Makefile.in \
+ gtk/Makefile.am gtk/Makefile.in \
+ || die "sed failed"
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ gnome2_src_configure \
+ --disable-static
+}
+
+multilib_src_install() {
+ gnome2_src_install
+}
+
+multilib_src_install_all() {
+ local DOCS="AUTHORS ChangeLog* NEWS README TODO"
+ einstalldocs
+}
diff --git a/x11-libs/gtkglext/metadata.xml b/x11-libs/gtkglext/metadata.xml
new file mode 100644
index 000000000000..c77e80cdedf9
--- /dev/null
+++ b/x11-libs/gtkglext/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>gnome</herd>
+ <upstream>
+ <remote-id type="sourceforge">gtkglext</remote-id>
+ </upstream>
+</pkgmetadata>