Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[OSR] Ports-like package management system
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-01-30 (20:23)
From: Bünzli_Daniel <daniel.buenzli@e...>
Subject: Re: [Caml-list] Re: [OSR] Ports-like package management system

Le 30 janv. 08 à 15:13, Sylvain Le Gall a écrit :

> To make a short summary:
> * have a makefile with 4 targets in upstream tarball: opt, byte,  
> clean, install

Add 'doc', it's important.

As long as the makefile can transfer the hard work to ocamlbuild I  
have no objection.

However I would just like to make a case for using ocamlbuild instead  
of make. First it removes a dependency from the port system since  
ocamlbuild is distributed with the bare caml distribution -- it is  
also makes it more Windows friendly altough I'm not particularly  
sensitive to that. Secondly provided you use ocamlbuild as your build  
system it may significantly simplify the _usage_ of ports in our  
projects. I guess most of the time it will be about just adding a _tag  
to the executable to produce, like

exec.native : use_my_package_with_c_bindings

No more tedious link errors, the flags are automatically setup  
properly etc. ocamlbuild's tag system is the right way to manage build  
exceptions, it is declarative and not spagheti like. I urge you to  
have a serious look at it.