From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 87F22BBAF for ; Sat, 27 Nov 2010 14:10:30 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnMGAI+R8EzZCiKb/2dsb2JhbACDUJE7jnJGrgYGkByBH4MzdQSEV4YK X-IronPort-AV: E=Sophos;i="4.59,266,1288566000"; d="scan'208";a="68170683" Received: from av6800.comex.ru (HELO home.mk.pp.ru) ([217.10.34.155]) by mail3-smtp-sop.national.inria.fr with ESMTP; 27 Nov 2010 14:10:29 +0100 Received: from ermine.home (ermine.home [192.168.2.2]) by home.mk.pp.ru (Postfix) with ESMTP id 8009C20BD2 for ; Sat, 27 Nov 2010 16:10:28 +0300 (MSK) Received: by ermine.home (Postfix, from userid 1002) id 06E422E082; Sat, 27 Nov 2010 16:10:06 +0300 (MSK) Date: Sat, 27 Nov 2010 16:10:05 +0300 From: Anastasia Gornostaeva To: caml-list@inria.fr Subject: Re: [Caml-list] Re: oasis Message-ID: <20101127131005.GA2407@ermine.home> References: <20101126183832.GA10787@ermine.home> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam: no; 0.00; freetype:01 freetype:01 cflags:01 libs:01 librares:01 flags:01 didnt:98 wrote:01 wrote:01 macosx:01 caml-list:01 data:02 data:02 define:02 variables:02 On Sat, Nov 27, 2010 at 10:20:38AM +0000, Sylvain Le Gall wrote: > Hi, > > On 26-11-2010, Anastasia Gornostaeva wrote: > > Hello. > > > > How can I substitute in setup.ml (not in _oasis file) values for > > CCOpt and CCLib fields? I think it is better to substitute them from > > setup.data, if I could to put proper values to setup.data. > > For example: > > CCOpt: $freetype_ccopt > > and put to setup.data output of `freetype-config --clib` for field > > freetype_ccopt. > > As I answer you in private: there will be pkg-config support in 0.3.0. > This will solve this issue, at least. > (e.g. you will be able to define: > BuildDepends: freetype2 (pkg-config), oUnit, ...) Sorry, but i didnt receive your mail.. And pkg-config probably is not best solution on bsd and macosx systems because it does not guarante nothing. The best (and common) solution is CFLAGS and LIBS env variables. :-) Or this pkg-config will allow custom paths for those C librares that do not depend on pkg-config at concrete systems? [...] > > I need a way to substitute paths. > > > > A last solution, you can apply right now, is to override this call: > let () = setup ();; > (last line of setup.ml) > > by > > let f pkg = > (* Call freetype-config and add flags where > needed in pkg > *) > ... > > let () = BaseSetup.setup (f setup_t);; Interesting way. Thanks, I'll ckeck it right how. Thanks. ermine