--- gtkglextmm-1.2.0.orig/debian/rules
+++ gtkglextmm-1.2.0/debian/rules
@@ -0,0 +1,66 @@
+#!/usr/bin/make -f
+
+include /usr/share/quilt/quilt.make
+
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -O2 -Wall
+LDFLAGS = -Wl,--as-needed
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp: $(QUILT_STAMPFN)
+	dh_testdir
+	LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)" ./configure --prefix=/usr \
+		--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
+	touch "$@"
+
+build: build-stamp
+build-stamp: configure
+	dh_testdir
+	$(MAKE)
+	touch "$@"
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+	[ ! -f Makefile ] || $(MAKE) distclean
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
+	for file in debian/tmp/usr/lib/*.la; do \
+		sed -i "/dependency_libs/ s/'.*'/''/" $$file ; \
+	done
+
+binary-indep: build install
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs
+	dh_install --fail-missing
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps -V "libgtkglextmm0 (>= 1.2.0)"
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- gtkglextmm-1.2.0.orig/debian/libgtkglextmm-x11-1.2-dev.install
+++ gtkglextmm-1.2.0/debian/libgtkglextmm-x11-1.2-dev.install
@@ -0,0 +1,11 @@
+debian/tmp/usr/include/* usr/include
+debian/tmp/usr/lib/libgtkglextmm-x11-1.2.a usr/lib
+debian/tmp/usr/lib/libgtkglextmm-x11-1.2.la usr/lib
+debian/tmp/usr/lib/libgtkglextmm-x11-1.2.so usr/lib
+debian/tmp/usr/lib/libgdkglextmm-x11-1.2.a usr/lib
+debian/tmp/usr/lib/libgdkglextmm-x11-1.2.la usr/lib
+debian/tmp/usr/lib/libgdkglextmm-x11-1.2.so usr/lib
+debian/tmp/usr/lib/pkgconfig/* usr/lib/pkgconfig/
+debian/tmp/usr/share/aclocal/* usr/share/aclocal/
+#debian/tmp/usr/lib/gtkglextmm-1.2/* usr/include/gtkglextmm-1.2/
+debian/tmp/usr/lib/gtkglextmm-1.2 usr/lib/
--- gtkglextmm-1.2.0.orig/debian/copyright
+++ gtkglextmm-1.2.0/debian/copyright
@@ -0,0 +1,84 @@
+Author: Naofumi Yasufuku
+Download: http://sourceforge.net/projects/gtkglext
+
+Files: *
+Copyright: (C) 2002-2003  Naofumi Yasufuku
+License: LGPL-2.1+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation; either version 2.1 of the License, or (at
+ your option) any later version.
+ .
+ This library is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
+ License for more details.
+
+Files:
+ examples/trackball.c
+ examples/trackball.h
+Copyright: (C) 1993, 1994, Silicon Graphics, Inc.
+License: Other
+ Permission to use, copy, modify, and distribute this software for any
+ purpose and without fee is hereby granted, provided that the above
+ copyright notice appear in all copies and that both the copyright notice
+ and this permission notice appear in supporting documentation, and that
+ the name of Silicon Graphics, Inc. not be used in advertising or publicity
+ pertaining to distribution of the software without specific, written prior
+ permission.
+ .
+ THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS" AND
+ WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, INCLUDING
+ WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A
+ PARTICULAR PURPOSE.  IN NO EVENT SHALL SILICON GRAPHICS, INC.  BE LIABLE
+ TO YOU OR ANYONE ELSE FOR ANY DIRECT, SPECIAL, INCIDENTAL, INDIRECT OR
+ CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING
+ WITHOUT LIMITATION, LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR
+ THE CLAIMS OF THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC.  HAS
+ BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE POSSESSION,
+ USE OR PERFORMANCE OF THIS SOFTWARE.
+ .
+ US Government Users Restricted Rights
+ Use, duplication, or disclosure by the Government is subject to
+ restrictions set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii)
+ of the Rights in Technical Data and Computer Software clause at DFARS
+ 252.227-7013 and/or in similar or successor clauses in the FAR or the DOD
+ or NASA FAR Supplement.
+ Unpublished-- rights reserved under the copyright laws of the United
+ States.  Contractor/manufacturer is Silicon Graphics, Inc., 2011 N.
+ Shoreline Blvd., Mountain View, CA 94039-7311.
+ .
+ OpenGL(TM) is a trademark of Silicon Graphics, Inc.
+
+Files: tools/extra_defs_gen/generate_defs_gtkglext.cc
+Copyright: (C) 2001 The Free Software Foundation
+License: GPL-2+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the Free
+ Software Foundation; either version 2 of the License, or (at your option)
+ any later version.
+ .
+ This library is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
+ License for more details.
+
+Files: debian/*
+Copyright: (C) 2008 Bradley Smith <brad@brad-smith.co.uk>
+License: GPL-2+.
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+
+On Debian systems, the complete text of the GNU General Public License
+can be found in `/usr/share/common-licenses/GPL-2'.
+
+On Debian GNU/Linux systems, the full text of the GNU Lesser General Public
+License can be found in the file /usr/share/common-licenses/LGPL.
--- gtkglextmm-1.2.0.orig/debian/compat
+++ gtkglextmm-1.2.0/debian/compat
@@ -0,0 +1 @@
+7
--- gtkglextmm-1.2.0.orig/debian/libgtkglextmm-x11-1.2-doc.install
+++ gtkglextmm-1.2.0/debian/libgtkglextmm-x11-1.2-doc.install
@@ -0,0 +1 @@
+debian/tmp/usr/share/doc/gtkglextmm-1.2/html usr/share/doc/libgtkglextmm-x11-1.2-doc/
--- gtkglextmm-1.2.0.orig/debian/libgtkglextmm-x11-1.2-0.install
+++ gtkglextmm-1.2.0/debian/libgtkglextmm-x11-1.2-0.install
@@ -0,0 +1,2 @@
+debian/tmp/usr/lib/libgtkglextmm-x11-1.2.so.* usr/lib
+debian/tmp/usr/lib/libgdkglextmm-x11-1.2.so.* usr/lib
--- gtkglextmm-1.2.0.orig/debian/control
+++ gtkglextmm-1.2.0/debian/control
@@ -0,0 +1,40 @@
+Source: gtkglextmm
+Section: devel
+Priority: extra
+Maintainer: Bradley Smith <bradsmith@debian.org>
+Build-Depends: debhelper (>= 7), libgtkglext1-dev (>= 1.0.0), libgtkmm-2.4-dev (>= 2.4.0), quilt
+Standards-Version: 3.8.0
+Homepage: http://www.k-3d.org/gtkglext/
+Vcs-Git: http://git.brad-smith.co.uk/git/debian/pkg-gtkglextmm.git
+Vcs-Browser: http://git.brad-smith.co.uk/?p=debian/pkg-gtkglextmm.git
+
+Package: libgtkglextmm-x11-1.2-0
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: C++ bindings for GtkGLExt (Shared libraries)
+ GtkGLExtmm is a C++ wrapper for GtkGLExt. C++ programmers can use it to
+ write GTK+-based OpenGL applications using Gtkmm 2.
+ .
+ This package contains the shared libraries.
+
+Package: libgtkglextmm-x11-1.2-dev
+Section: libdevel
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libgtkglextmm-x11-1.2-0 (= ${binary:Version}), libgtkglext1-dev
+Description: C++ bindings for GtkGLExt (Development files)
+ GtkGLExtmm is a C++ wrapper for GtkGLExt. C++ programmers can use it to
+ write GTK+-based OpenGL applications using Gtkmm 2.
+ .
+ This package contains the development files.
+
+Package: libgtkglextmm-x11-1.2-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}
+Recommends: libgtkglextmm-x11-1.2-dev (= ${binary:Version})
+Description: C++ bindings for GtkGLExt (Documentation)
+ GtkGLExtmm is a C++ wrapper for GtkGLExt. C++ programmers can use it to
+ write GTK+-based OpenGL applications using Gtkmm 2.
+ .
+ This package contains documentation and examples.
--- gtkglextmm-1.2.0.orig/debian/changelog
+++ gtkglextmm-1.2.0/debian/changelog
@@ -0,0 +1,38 @@
+gtkglextmm (1.2.0-4.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Remove references to other libraries from dependency_libs field
+    (Closes: #620633).
+  * Define GdkSpanFunc (Closes: #621976).
+
+ -- Luk Claes <luk@debian.org>  Mon, 27 Jun 2011 08:17:17 +0200
+
+gtkglextmm (1.2.0-4) unstable; urgency=low
+
+  * Switch libgtkglextmm-x11-1.2-doc to arch all. Closes: #517606.
+
+ -- Bradley Smith <bradsmith@debian.org>  Sat, 28 Feb 2009 21:14:06 +0000
+
+gtkglextmm (1.2.0-3) unstable; urgency=low
+
+  * Update maintainer email address.
+  * Update compat version to 7 and upgrade debhelper Build-Depends.
+  * Add Vcs-* fields.
+  * Convert copyright to machine readable format.
+
+ -- Bradley Smith <bradsmith@debian.org>  Tue, 30 Dec 2008 21:53:43 +0000
+
+gtkglextmm (1.2.0-2) unstable; urgency=low
+
+  * Add missing dependency on libgtkglext1-dev. Closes: #493381.
+  * Bump Standards-Version to 3.8.0 (No changes).
+
+ -- Bradley Smith <brad@brad-smith.co.uk>  Sat, 02 Aug 2008 18:24:43 +0100
+
+gtkglextmm (1.2.0-1) unstable; urgency=low
+
+  * Initial release. Closes: #476293
+  * Add fix_as-needed patch
+   - Fix ordering for --as-needed in libtool
+
+ -- Bradley Smith <brad@brad-smith.co.uk>  Sun, 11 May 2008 16:12:00 +0100
--- gtkglextmm-1.2.0.orig/debian/watch
+++ gtkglextmm-1.2.0/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/gtkglext/gtkglextmm-(\d+\.\d+\.\d+)\.tar\.gz
--- gtkglextmm-1.2.0.orig/debian/patches/fix_ftbfs_gtk_2_20
+++ gtkglextmm-1.2.0/debian/patches/fix_ftbfs_gtk_2_20
@@ -0,0 +1,28 @@
+Description: Fix FTBFS due to missing GdkSpanFunc definition
+ .
+ The sequence of #include directives is important - if gtk/gtkglwidget.h
+ is included first, before widget.h, it includes gdk.h without undefing
+ GDK_DISABLE_DEPRECATED - this leads to GdkSpanFunc not being defined
+ and compilation errors. 
+ The fix is to first include widget.h which includes the right gdkmm header
+ which defines GDK_DISABLE_DEPRECATED before including gdk.h.
+Forwarded: no
+Bug-Ubuntu: http://launchpad.net/bugs/662572
+
+Index: gtkglextmm-1.2.0/gtkglext/gtkmm/gl/widget.cc
+===================================================================
+--- gtkglextmm-1.2.0.orig/gtkglext/gtkmm/gl/widget.cc	2010-12-08 13:31:59.651270000 +0100
++++ gtkglextmm-1.2.0/gtkglext/gtkmm/gl/widget.cc	2010-12-08 13:32:10.871270000 +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
--- gtkglextmm-1.2.0.orig/debian/patches/fix_as-needed
+++ gtkglextmm-1.2.0/debian/patches/fix_as-needed
@@ -0,0 +1,30 @@
+--- a/ltmain.sh.orig	2006-03-29 15:45:36.000000000 +0200
++++ b/ltmain.sh	2006-03-29 16:39:30.000000000 +0200
+@@ -1802,6 +1802,11 @@
+ 	arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
+ 	;;
+ 
++      -Wl,--as-needed)
++	deplibs="$deplibs $arg"
++	continue
++	;;
++      
+       -Wl,*)
+ 	args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
+ 	arg=
+@@ -2142,6 +2147,15 @@
+ 	lib=
+ 	found=no
+ 	case $deplib in
++	-Wl,--as-needed)
++	  if test "$linkmode,$pass" = "prog,link"; then
++	    compile_deplibs="$deplib $compile_deplibs"
++	    finalize_deplibs="$deplib $finalize_deplibs"
++	  else
++	    deplibs="$deplib $deplibs"
++	  fi
++	  continue
++	  ;;
+ 	-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
+ 	  if test "$linkmode,$pass" = "prog,link"; then
+ 	    compile_deplibs="$deplib $compile_deplibs"
--- gtkglextmm-1.2.0.orig/debian/patches/series
+++ gtkglextmm-1.2.0/debian/patches/series
@@ -0,0 +1,2 @@
+fix_as-needed
+fix_ftbfs_gtk_2_20
