OCaml Forge

Detail: [#522] Use pkg-config

Feature Requests: Browse | Download .csv | Monitor

[#522] Use pkg-config

Date:
2010-02-03 13:49
Priority:
3
State:
Open
Submitted by:
Sylvain Le Gall (gildor-admin)
Assigned to:
Sylvain Le Gall (gildor-admin)
Resolution:
None
Due in version:
0.3.0
Product:
None
Component:
None
Operating System:
None
 
Summary:
Use pkg-config

Detailed description
For C libraries, we should use pkg-config, just as ocamlfind.

Followup

Message
Date: 2013-08-15 22:43
Sender: Sylvain Le Gall

See zlib-includ-libdir.patch attached for an example of implementation with configure flags --zlib-include and --zlib-libdir.
Date: 2011-05-15 14:37
Sender: Christophe Troestler

Another example, using a modified setup.ml to pass variables to myocamlbuild.ml (and special tags as indicated earlier to associate flags to files).
https://forge.ocamlcore.org/scm/viewvc.php/cairo/myocamlbuild.ml?view=markup&revision=242&root=archimedes
Date: 2011-05-04 07:08
Sender: Christophe Troestler

For an example of this (using a post-configure script), you can have a look to https://forge.ocamlcore.org/scm/viewvc.php/trunk/?root=ml-gammu
Date: 2011-01-11 09:48
Sender: Sylvain Le Gall

Discussion about ocsigen libev.

There are possible solution customizing setup.ml/_tags/myocamlbuild.ml. Basically, what you need to do:
- add your own detection code in setup.ml to be run at configure. Just run pkg-config and save cflags/libs in ev_cflags/ev_libs (it will go to setup.data
- add a use_libev in _tags to the matching files/libraries in _tags
- load ev_cflags/ev_libs and apply them to flag[use_libev;...] & ... in myocamlbuild.ml
Date: 2011-01-11 09:42
Sender: Sylvain Le Gall

See the discussion with Anastasia Gornostaeva:
https://sympa-roc.inria.fr/wws/arc/caml-list/2010-11/msg00356.html

Attached Files:

Attachments:
zlib-includ-libdir.patch

Changes:

Field Old Value Date By
File Added225: zlib-includ-libdir.patch2013-08-15 22:42gildor-admin
Due in versionNone2010-11-05 16:19gildor-admin
assigned_tonone2010-02-03 14:00gildor-admin