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
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-11-29 (19:46)
From: Anastasia Gornostaeva <ermine@e...>
Subject: Re: [Caml-list] Re: oasis
On Sun, Nov 28, 2010 at 05:17:35PM +0000, Sylvain Le Gall wrote:

> My current state about this solution is:
> - defines BuildDepends: freetype2 (pkg-config), to make clear that there
>   is a C build-depends
> - allow to override the defined variable freetype2_cflags and
>   freetype2_libs. If they are both defined by user, don't even call
>   pkg-config for this package

There should be three variants: pkg-config, OS-based userspace policy 
(/usr/include vs. /usr/local/include) and user-defined one.

> Here is a new proposal about this:
> - use a PostConfigureCommand to invoke a shell script
> - in invoke freetype-config and output flags in
>   using "echo 'freetype2_cflags = "$output"' >>' and
>   "echo 'freetype2_libs = "$output"' >>' 
> - add in _tags a "src/toto.cma: pkg_config_freetype2" 
> - add in a "tag [pkg_config_freetyp2; compile; ocaml] &
>   [... (* load the content of freetyp2_cflags *) ... ]"
> This is not simple but this is probably what I will do for the support
> of C libraries in 0.3.0.

But it is the best solution now and partially works for me.
And please make the functions that loads and var_get data from it 
to be public. Right now I attempt to play with your code in 
and re-use it in my piece at bottom of the file.
I'm always ready to test/use oasis from darcs when you put there something new.


> Regards,
> Sylvain Le Gall
> _______________________________________________
> Caml-list mailing list. Subscription management:
> Archives:
> Beginner's list:
> Bug reports: