[Pkg-ocaml-maint-commits] [SCM] lablgl packaging branch, master, updated. debian/1.04-3-2-g8e8466b

Ralf Treinen treinen at free.fr
Thu Dec 3 21:02:19 UTC 2009


The following commit has been merged in the master branch:
commit 6e3de335fc267d930b949fbe886506c1afd186ad
Author: Ralf Treinen <treinen at free.fr>
Date:   Thu Dec 3 21:52:13 2009 +0100

    source format 3.0, fix Makefile in the examples

diff --git a/debian/patches/compilation-examples b/debian/patches/compilation-examples
new file mode 100644
index 0000000..ffaccd4
--- /dev/null
+++ b/debian/patches/compilation-examples
@@ -0,0 +1,34 @@
+Index: lablgl/Togl/examples/Makefile
+===================================================================
+--- lablgl.orig/Togl/examples/Makefile	2009-12-03 21:44:29.000000000 +0100
++++ lablgl/Togl/examples/Makefile	2009-12-03 21:45:29.000000000 +0100
+@@ -1,4 +1,16 @@
+ # Makefile for examples subdir
+ 
++PACKAGES = lablgl.togl,unix
++DERIVEDML = $(patsubst %.ml.gz,%.ml,$(wildcard *.ml.gz))
++
++all: $(patsubst %.ml,%.opt,$(wildcard *.ml) $(DERIVEDML))
++
++%.ml : %.ml.gz
++	gunzip -c $^ > $@
++
++%.opt : %.ml
++	ocamlfind ocamlopt -package $(PACKAGES) -c  $^
++	ocamlfind ocamlopt -package $(PACKAGES) -linkpkg -o $@ $^
++
+ clean:
+-	rm -f *.cm* *.o *.opt
++	rm -f *.cm* *.o *.opt $(DERIVEDML)
+Index: lablgl/Togl/examples/planet.ml
+===================================================================
+--- lablgl.orig/Togl/examples/planet.ml	2009-12-03 21:44:34.000000000 +0100
++++ lablgl/Togl/examples/planet.ml	2009-12-03 21:44:39.000000000 +0100
+@@ -1,6 +1,6 @@
+ (* $Id: planet.ml,v 1.17 2001/09/07 06:50:01 garrigue Exp $ *)
+ 
+-#load"unix.cma";;
++open Unix
+ 
+ class planet togl = object (self)
+   val togl = togl
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..dbe16b3
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+compilation-examples
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)

-- 
lablgl packaging



More information about the Pkg-ocaml-maint-commits mailing list