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

Ralf Treinen treinen at free.fr
Thu Dec 3 21:10:03 UTC 2009


The following commit has been merged in the master branch:
commit a6a7309dff692a14a43856c7b4e772b9040854bf
Author: Ralf Treinen <treinen at free.fr>
Date:   Thu Dec 3 22:08:32 2009 +0100

    now also apply the patch in the master branch !

diff --git a/Togl/examples/Makefile b/Togl/examples/Makefile
index 86fe6ca..da2168f 100644
--- a/Togl/examples/Makefile
+++ b/Togl/examples/Makefile
@@ -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)
diff --git a/Togl/examples/planet.ml b/Togl/examples/planet.ml
index b5b9aaa..751cf94 100644
--- a/Togl/examples/planet.ml
+++ b/Togl/examples/planet.ml
@@ -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

-- 
lablgl packaging



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