cairo-ocaml : update with new ocaml.m4 file from ocaml-autoconf
Submitted by william
Assigned to Carl Worth @cworth
Description
Created attachment 64126 patch file
Hello, I want to submit a patch for cairo-ocaml, but did not find the product in bugzilla, though I saw a bug report with cairo-ocaml product...
As I needed to port my app that uses cairo-ocaml to windows, I integrated it in the MXE framework (set of patches and make commands to cross-compile hundreds of packages). So now I am able to cross-compile it from linux to windows, and I would like to submit the patch now in case future versions of cairo-ocaml are provided.
The patch :
- updates META file : it is used by ocamlfind (findlib). Providing the file upstream is important, otherwise people with godi, debian, cygwin all make their own file, with different options, making it impossible to port a makefile from a platform to an other.
- updates ocaml.m4 with last version of ocaml-autoconf (that allows for cross-compilation)
- update configure.ac to use the updated ocaml.m4 file.
With this, it is now "easy" to cross-compile cairo-ocaml.
To apply the patch : cd cairo-ocaml-1.2.0 patch -p1 < /path/to/ocaml-cairo-1-fixes.patch
Best regards, William
Patch 64126, "patch file":
ocaml-cairo-1-fixes.patch
Version: 1.2.0