summaryrefslogtreecommitdiff
path: root/lang/ocaml/patches
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-03-04 06:27:45 +0000
committerminskim <minskim@pkgsrc.org>2004-03-04 06:27:45 +0000
commitdeb2048431e55821421abc39c6c232179acbe386 (patch)
tree1513b4ee11ddd78c171f5a24b5aa8e780b17f663 /lang/ocaml/patches
parent1bdaffed86ebcf85d2018440674c730f35eb659b (diff)
downloadpkgsrc-deb2048431e55821421abc39c6c232179acbe386.tar.gz
Make ocalm build with tk-8.4.
Diffstat (limited to 'lang/ocaml/patches')
-rw-r--r--lang/ocaml/patches/patch-am17
-rw-r--r--lang/ocaml/patches/patch-ao17
2 files changed, 34 insertions, 0 deletions
diff --git a/lang/ocaml/patches/patch-am b/lang/ocaml/patches/patch-am
new file mode 100644
index 00000000000..f71583ef247
--- /dev/null
+++ b/lang/ocaml/patches/patch-am
@@ -0,0 +1,17 @@
+$NetBSD: patch-am,v 1.1 2004/03/04 06:27:45 minskim Exp $
+
+--- otherlibs/labltk/support/cltkImg.c.orig 2002-07-23 09:11:59.000000000 -0500
++++ otherlibs/labltk/support/cltkImg.c
+@@ -99,7 +99,11 @@ camltk_setimgdata_native (value imgname,
+ pib.offset[0] = 0;
+ pib.offset[1] = 1;
+ pib.offset[2] = 2;
+- Tk_PhotoPutBlock(ph,&pib,Int_val(x),Int_val(y),Int_val(w),Int_val(h));
++ Tk_PhotoPutBlock(ph,&pib,Int_val(x),Int_val(y),Int_val(w),Int_val(h)
++#if (TK_MAJOR_VERSION == 8 && TK_MINOR_VERSION >= 4 || TK_MAJOR_VERSION > 8)
++ , TK_PHOTO_COMPOSITE_SET
++#endif
++ );
+ }
+
+ CAMLprim void camltk_setimgdata_bytecode(argv,argn)
diff --git a/lang/ocaml/patches/patch-ao b/lang/ocaml/patches/patch-ao
new file mode 100644
index 00000000000..dc3803b47e4
--- /dev/null
+++ b/lang/ocaml/patches/patch-ao
@@ -0,0 +1,17 @@
+$NetBSD: patch-ao,v 1.1 2004/03/04 06:27:45 minskim Exp $
+
+--- otherlibs/labltk/tkanim/tkAnimGIF.c.orig 2002-07-23 09:12:00.000000000 -0500
++++ otherlibs/labltk/tkanim/tkAnimGIF.c
+@@ -336,7 +336,11 @@ FileReadGIF(interp, f, fileName, formatS
+ }
+ }
+ Tk_PhotoPutBlock(photoHandle, &block, 0, 0,
+- imageWidth, imageHeight);
++ imageWidth, imageHeight
++#if (TK_MAJOR_VERSION == 8 && TK_MINOR_VERSION >= 4 || TK_MAJOR_VERSION > 8)
++ , TK_PHOTO_COMPOSITE_SET
++#endif
++ );
+ #ifdef TKANIM_DEBUG
+ fprintf(stderr, " Retrieving result\n");
+ #endif