--- gtkglarea-sharp-0.0.17.orig/debian/copyright +++ gtkglarea-sharp-0.0.17/debian/copyright @@ -0,0 +1,50 @@ +This package was debianized by Sam Hocevar on +Tue, 30 Oct 2007 14:25:55 +0000 + +It was downloaded from svn://anonsvn.mono-project.com/source/trunk/gtkglarea-sharp + +Upstream Authors: + (c) Copyright 1993, 1994, Silicon Graphics, Inc. + (c) Copyright 2005-2007 C.J. Collier + (c) Copyright 2005 Alp Toker + (c) Copyright 2005 Remy Fenn + (c) Copyright 2005 Nick + +License: + * All files except Trackball.cs may be licensed under either the LGPL or + * MIT/X11 licences. + * + * On Debian systems, the complete text of the GNU Lesser General + * Public License can be found in `/usr/share/common-licenses/LGPL'. + +License for Trackball.cs: + * (c) Copyright 1993, 1994, Silicon Graphics, Inc. + * Port to C# (c) Copyright 2005 C.J. Collier + * ALL RIGHTS RESERVED + * 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. + +MIT/X11 license: + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + --- gtkglarea-sharp-0.0.17.orig/debian/Makefile +++ gtkglarea-sharp-0.0.17/debian/Makefile @@ -0,0 +1,75 @@ + +MCS = gmcs /debug /nowarn:0169 +PKG = /pkg:gtkglarea-sharp /pkg:gtk-sharp-2.0 /pkg:tao-opengl +FULLPKG = $(PKG) /pkg:glade-sharp-2.0 + +LIBS = gtkglarea-sharp-util.dll shapes.dll GladeExample.dll +PROGS = GladeExample.exe Lesson01.exe Lesson02.exe Lesson03.exe Lesson04.exe Lesson05.exe Lesson06.exe TrackballExample.exe RotateButtonExample.exe PickExample.exe + +all: $(LIBS) $(PROGS) + +clean: + rm -f *.exe *.dll *.mdb + +# +# Libraries +# + +UTIL_DLL_SRC = GLWidget.cs IGLObject.cs GLObjectBase.cs EulerRotation.cs \ + Rotation.cs Vector.cs Quaternion.cs TransformationMatrix.cs +gtkglarea-sharp-util.dll: $(UTIL_DLL_SRC:%=util/%) + $(MCS) /t:library $^ /out:$@ $(PKG) + +SHAPES_DLL_SRC = ColoredSquare.cs ColoredTriangle.cs Cube.cs Pyramid.cs \ + Square.cs Teapot.cs Triangle.cs +shapes.dll: $(SHAPES_DLL_SRC:%=shapes/%) + $(MCS) /t:library $^ /out:$@ /r:gtkglarea-sharp-util.dll $(PKG) + +GLADE_DLL_SRC = GladeExample.cs +GladeExample.dll: $(GLADE_DLL_SRC:%=glade/%) + $(MCS) /t:library $^ /out:$@ /r:gtkglarea-sharp-util.dll $(FULLPKG) \ + /resource:resources/glwidget.glade + +# +# Programs +# + +GladeExample.exe: glade/Engine.cs + $(MCS) /t:winexe $^ /out:$@ $(LIBS:%=/r:%) $(FULLPKG) \ + /resource:resources/glwidget.glade + +Lesson01.exe: NeHe/Lessons/01/Lesson01.cs + $(MCS) /t:winexe $^ /out:$@ $(LIBS:%=/r:%) $(FULLPKG) + +Lesson02.exe: NeHe/Lessons/02/Lesson02.cs + $(MCS) /t:winexe $^ /out:$@ $(LIBS:%=/r:%) $(FULLPKG) + +Lesson03.exe: NeHe/Lessons/03/Lesson03.cs + $(MCS) /t:winexe $^ /out:$@ $(LIBS:%=/r:%) $(FULLPKG) + +Lesson04.exe: NeHe/Lessons/04/Lesson04.cs + $(MCS) /t:winexe $^ /out:$@ $(LIBS:%=/r:%) $(FULLPKG) + +Lesson05.exe: NeHe/Lessons/05/Lesson05.cs + $(MCS) /t:winexe $^ /out:$@ $(LIBS:%=/r:%) $(FULLPKG) + +Lesson06.exe: NeHe/Lessons/06/Lesson06.cs + $(MCS) /t:winexe $^ /out:$@ $(LIBS:%=/r:%) $(FULLPKG) + +TRACKBALL_SRC = TrackballExample.cs TrackballWidget.cs Trackball.cs +TrackballExample.exe: $(TRACKBALL_SRC:%=trackball/%) + $(MCS) /t:winexe $^ /out:$@ $(LIBS:%=/r:%) $(FULLPKG) \ + /resource:resources/glwidget.glade + +ROTATE_SRC = GLObjectRotationController.cs ObjectRotationButton.cs \ + OldGLObjectBase.cs OldTeapot.cs RotateButtonExample.cs +RotateButtonExample.exe: $(ROTATE_SRC:%=rotate-buttons/%) + $(MCS) /t:winexe $^ /out:$@ $(LIBS:%=/r:%) $(FULLPKG) \ + /resource:resources/glwidget.glade \ + /resource:rotate-buttons/rotation-controller.glade + +PICK_SRC = Engine.cs PickWidget.cs ObjectPickExample.cs +PickExample.exe: $(PICK_SRC:%=pick-object/%) + $(MCS) /t:winexe $^ /out:$@ $(LIBS:%=/r:%) $(FULLPKG) \ + /resource:resources/glwidget.glade + --- gtkglarea-sharp-0.0.17.orig/debian/changelog +++ gtkglarea-sharp-0.0.17/debian/changelog @@ -0,0 +1,59 @@ +gtkglarea-sharp (0.0.17-6) unstable; urgency=low + + * Rebuild with Mono 2.10 for CLR 4.0 migration. + + -- Jo Shields Sat, 21 Jan 2012 23:06:12 +0000 + +gtkglarea-sharp (0.0.17-5) unstable; urgency=low + + * debian/control: + + No-change bump to Standards 3.8.3 + * debian/control, + debian/rules: + + use mono-csc from mono-devel 2.4.2.3 + * debian/control, + debian/libgtkglarea0.0-cil.dirs, + debian/libgtkglarea0.0-cil.install, + debian/libgtkglarea-cil-dev.install: + + Introduce unversioned -dev package for pkg-config file to live in + + -- Jo Shields Fri, 20 Nov 2009 15:51:14 +0000 + +gtkglarea-sharp (0.0.17-4) unstable; urgency=low + + [ David Paleino ] + * debian/patches/: + + 200_shared_context.diff and series updated to use the default -p1 instead + of -p0 (Closes: #484947) + + [ Iain Lane ] + * debian/control, debian/rules: Update build-deps and pass + MCS=/usr/bin/csc for Mono 2 transition + * debian/control: Bump s-v to 3.8.0; add Homepage field + * debian/control: Add Vcs-Browser and Vcs-Svn + * debian/contro: Add ${misc:Depends} to packages + + -- Iain Lane Sat, 28 Feb 2009 22:33:09 +0000 + +gtkglarea-sharp (0.0.17-3) unstable; urgency=low + + * debian/control: + + Add missing libgtk2.0-cil to the build dependencies (Closes: #458670), + thanks to Timo Jyrinki and Mirco Bauer. + + -- Sam Hocevar (Debian packages) Sat, 02 Feb 2008 14:41:17 +0000 + +gtkglarea-sharp (0.0.17-2) unstable; urgency=low + + * debian/patches/200_shared_context.diff: + + Patch from Bugzilla (https://bugzilla.novell.com/show_bug.cgi?id=349048) + to share the GL context between GLArea instances. + + -- Sam Hocevar (Debian packages) Mon, 17 Dec 2007 13:37:27 +0000 + +gtkglarea-sharp (0.0.17-1) unstable; urgency=low + + * Initial release (Closes: #456181). + + -- Sam Hocevar (Debian packages) Fri, 14 Dec 2007 15:03:01 +0100 + --- gtkglarea-sharp-0.0.17.orig/debian/libgtkglarea-cil-examples.examples +++ gtkglarea-sharp-0.0.17/debian/libgtkglarea-cil-examples.examples @@ -0,0 +1,14 @@ +debian/Makefile +examples/glade +#examples/license +#examples/lwo +#examples/MdlLoader +examples/NeHe +examples/pick-object +examples/README +examples/resources +examples/rotate-buttons +examples/shapes +examples/trackball +examples/util +#examples/x11_license --- gtkglarea-sharp-0.0.17.orig/debian/libgtkglarea0.0-cil.dirs +++ gtkglarea-sharp-0.0.17/debian/libgtkglarea0.0-cil.dirs @@ -0,0 +1 @@ +/usr/lib/cli/gtkglarea-sharp-0.0/ --- gtkglarea-sharp-0.0.17.orig/debian/libgtkglarea0.0-cil.install +++ gtkglarea-sharp-0.0.17/debian/libgtkglarea0.0-cil.install @@ -0,0 +1,2 @@ +/usr/lib/mono/gac/gtkglarea-sharp/*/*.dll /usr/lib/cli/gtkglarea-sharp-0.0/ +/usr/lib/mono/gac/gtkglarea-sharp/*/*.dll.config /usr/lib/cli/gtkglarea-sharp-0.0/ --- gtkglarea-sharp-0.0.17.orig/debian/libgtkglarea-cil-dev.install +++ gtkglarea-sharp-0.0.17/debian/libgtkglarea-cil-dev.install @@ -0,0 +1 @@ +/usr/lib/pkgconfig/* --- gtkglarea-sharp-0.0.17.orig/debian/libgtkglarea0.0-cil.installcligac +++ gtkglarea-sharp-0.0.17/debian/libgtkglarea0.0-cil.installcligac @@ -0,0 +1 @@ +/usr/lib/cli/gtkglarea-sharp-0.0/gtkglarea-sharp.dll --- gtkglarea-sharp-0.0.17.orig/debian/rules +++ gtkglarea-sharp-0.0.17/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 +export MONO_SHARED_DIR=$(CURDIR) + +UPVERSION = $(shell dpkg-parsechangelog | grep ^Vers | cut -d\ -f2 | sed 's,-.*,,' | sed 's,+.*,,') +NEXT_UPVERSION = $(shell perl -e '$$_=pop; s/(\d+)$$/$$1+1/e; print' $(UPVERSION)) + +configure: configure-stamp +configure-stamp: + dh_testdir + QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2 + ./configure --prefix=/usr MCS=/usr/bin/mono-csc + touch configure-stamp + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + $(MAKE) + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + [ ! -f Makefile ] || $(MAKE) distclean + QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2 + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + dh_install --sourcedir=debian/tmp --list-missing + +binary-arch: + # Do nothing + +binary-indep: build install + dh_testdir + dh_testroot + dh_installcligac + dh_installchangelogs + dh_installdocs + dh_clifixperms + dh_installexamples -p libgtkglarea-cil-examples + find debian/libgtkglarea-cil-examples/*/*/*/*/*/*/ '(' -name '*.dll' -o -name '*.md*' -o -name '*.exe' -o -name '*Makefile*' ')' -exec rm '{}' ';' + dh_installman + dh_link + dh_strip + dh_compress -X /examples/ + dh_fixperms + dh_installdeb + dh_makeclilibs -m $(UPVERSION) -l $(NEXT_UPVERSION) + dh_clideps -d + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep +.PHONY: build clean binary-indep binary install configure --- gtkglarea-sharp-0.0.17.orig/debian/compat +++ gtkglarea-sharp-0.0.17/debian/compat @@ -0,0 +1 @@ +5 --- gtkglarea-sharp-0.0.17.orig/debian/control +++ gtkglarea-sharp-0.0.17/debian/control @@ -0,0 +1,39 @@ +Source: gtkglarea-sharp +Section: libs +Priority: optional +Maintainer: Debian CLI Libraries Team +Uploaders: Sam Hocevar (Debian packages) +Build-Depends: debhelper (>= 5), quilt +Build-Depends-Indep: cli-common-dev (>= 0.4.4), mono-devel (>= 2.4.2.3), libgtkgl2.0-dev, libgtk2.0-cil-dev, libglib2.0-cil-dev +Homepage: http://www.mono-project.com/GtkGLSharp +Standards-Version: 3.8.3 +Vcs-Svn: svn+ssh://svn.debian.org/pkg-cli-libs/packages/gtkglarea-sharp/trunk/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-cli-libs/packages/gtkglarea-sharp/trunk/ + +Package: libgtkglarea0.0-cil +Architecture: all +Depends: ${cli:Depends}, ${misc:Depends} +Description: CLI bindings for the GTK OpenGL area widget + The gtkglarea-sharp bindings allow CLI (.NET) programs to use the GTK OpenGL + area widget to display accelerated 3D graphics in GTK applications. + . + This package contains the runtime assemblies. + +Package: libgtkglarea-cil-dev +Architecture: all +Depends: libgtkglarea0.0-cil (= ${binary:Version}), ${misc:Depends} +Replaces: libgtkglarea0.0-cil (<< 0.0.17-5) +Description: CLI bindings for the GTK OpenGL area widget + The gtkglarea-sharp bindings allow CLI (.NET) programs to use the GTK OpenGL + area widget to display accelerated 3D graphics in GTK applications. + . + This package contains development files, and should be used for compilation + +Package: libgtkglarea-cil-examples +Architecture: all +Depends: ${cli:Depends}, ${misc:Depends} +Description: gtkglarea-sharp examples + The gtkglarea-sharp bindings allow CLI (.NET) programs to use the GTK OpenGL + area widget to display accelerated 3D graphics in GTK applications. + . + This package contains sample code to use the bindings. --- gtkglarea-sharp-0.0.17.orig/debian/patches/300_path_in_pc_file.diff +++ gtkglarea-sharp-0.0.17/debian/patches/300_path_in_pc_file.diff @@ -0,0 +1,11 @@ +Index: gtkglarea-sharp-0.0.17/gtkglarea-sharp.pc.in +=================================================================== +--- gtkglarea-sharp-0.0.17.orig/gtkglarea-sharp.pc.in 2007-12-13 15:00:54.000000000 +0000 ++++ gtkglarea-sharp-0.0.17/gtkglarea-sharp.pc.in 2007-12-13 15:01:03.000000000 +0000 +@@ -6,5 +6,5 @@ + Description: GtkGLArea# - a GTK# OpenGL widget binding + Version: @VERSION@ + Requires: gtk-sharp-2.0 +-Libs: -r:${prefix}/lib/mono/gtkglarea-sharp/gtkglarea-sharp.dll ++Libs: -r:${prefix}/lib/cli/gtkglarea-sharp-0.0/gtkglarea-sharp.dll + --- gtkglarea-sharp-0.0.17.orig/debian/patches/200_shared_context.diff +++ gtkglarea-sharp-0.0.17/debian/patches/200_shared_context.diff @@ -0,0 +1,43 @@ +Index: gtkglarea-sharp-0.0.17/gtkglarea/GLArea.custom +=================================================================== +--- gtkglarea-sharp-0.0.17/gtkglarea/GLArea.custom (revision 91086) ++++ gtkglarea-sharp-0.0.17/gtkglarea/GLArea.custom (working copy) +@@ -6,3 +6,15 @@ + // C.J. Was Here. + Raw = gtk_gl_area_new(attrList); + } ++ ++ [DllImport("libgtkglarea-win32-2.0-0.dll")] ++ static extern IntPtr gtk_gl_area_share_new(int[] attrList, IntPtr share); ++ ++ /* Create a sharing GL context */ ++ public GLArea (System.Int32[] attrList, GLArea share) : base (IntPtr.Zero) ++ { ++ if(share == null) ++ Raw = gtk_gl_area_new(attrList); ++ else ++ Raw = gtk_gl_area_share_new(attrList, share.Handle); ++ } +Index: gtkglarea-sharp-0.0.17/gtkglarea/generated/GLArea.cs +=================================================================== +--- gtkglarea-sharp-0.0.17/gtkglarea/generated/GLArea.cs (revision 91086) ++++ gtkglarea-sharp-0.0.17/gtkglarea/generated/GLArea.cs (working copy) +@@ -93,6 +93,18 @@ + Raw = gtk_gl_area_new(attrList); + } + ++ [DllImport("libgtkglarea-win32-2.0-0.dll")] ++ static extern IntPtr gtk_gl_area_share_new(int[] attrList, IntPtr share); ++ ++ /* Create a sharing GL context */ ++ public GLArea (System.Int32[] attrList, GLArea share) : base (IntPtr.Zero) ++ { ++ if(share == null) ++ Raw = gtk_gl_area_new(attrList); ++ else ++ Raw = gtk_gl_area_share_new(attrList, share.Handle); ++ } ++ + #endregion + } + } --- gtkglarea-sharp-0.0.17.orig/debian/patches/series +++ gtkglarea-sharp-0.0.17/debian/patches/series @@ -0,0 +1,2 @@ +200_shared_context.diff +300_path_in_pc_file.diff