[Pkg-cli-libs-commits] r3497 - in /packages/gtkglarea-sharp/trunk/debian: Makefile libgtkglarea-cil-examples.examples libtao-cil-examples.examples rules

sho at users.alioth.debian.org sho at users.alioth.debian.org
Thu Dec 13 17:55:28 UTC 2007


Author: sho
Date: Thu Dec 13 17:55:28 2007
New Revision: 3497

URL: http://svn.debian.org/wsvn/pkg-cli-libs/?sc=1&rev=3497
Log:
  * Properly install example files in libgtkglarea-cil-examples.
  * Add a simple Makefile to build examples.
  * Do not compress examples.

Added:
    packages/gtkglarea-sharp/trunk/debian/Makefile
    packages/gtkglarea-sharp/trunk/debian/libgtkglarea-cil-examples.examples
      - copied, changed from r3489, packages/gtkglarea-sharp/trunk/debian/libtao-cil-examples.examples
Removed:
    packages/gtkglarea-sharp/trunk/debian/libtao-cil-examples.examples
Modified:
    packages/gtkglarea-sharp/trunk/debian/rules

Added: packages/gtkglarea-sharp/trunk/debian/Makefile
URL: http://svn.debian.org/wsvn/pkg-cli-libs/packages/gtkglarea-sharp/trunk/debian/Makefile?rev=3497&op=file
==============================================================================
--- packages/gtkglarea-sharp/trunk/debian/Makefile (added)
+++ packages/gtkglarea-sharp/trunk/debian/Makefile Thu Dec 13 17:55:28 2007
@@ -1,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
+

Copied: packages/gtkglarea-sharp/trunk/debian/libgtkglarea-cil-examples.examples (from r3489, packages/gtkglarea-sharp/trunk/debian/libtao-cil-examples.examples)
URL: http://svn.debian.org/wsvn/pkg-cli-libs/packages/gtkglarea-sharp/trunk/debian/libgtkglarea-cil-examples.examples?rev=3497&op=diff
==============================================================================
--- packages/gtkglarea-sharp/trunk/debian/libtao-cil-examples.examples (original)
+++ packages/gtkglarea-sharp/trunk/debian/libgtkglarea-cil-examples.examples Thu Dec 13 17:55:28 2007
@@ -1,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

Modified: packages/gtkglarea-sharp/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-cli-libs/packages/gtkglarea-sharp/trunk/debian/rules?rev=3497&op=diff
==============================================================================
--- packages/gtkglarea-sharp/trunk/debian/rules (original)
+++ packages/gtkglarea-sharp/trunk/debian/rules Thu Dec 13 17:55:28 2007
@@ -46,11 +46,12 @@
 	dh_installchangelogs
 	dh_installdocs
 	dh_clifixperms
-	dh_installexamples
+	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
+	dh_compress -X examples
 	dh_fixperms
 	dh_installdeb
 	dh_makeclilibs -m $(UPVERSION) -l $(NEXT_UPVERSION)




More information about the Pkg-cli-libs-commits mailing list