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 52437BC57 for ; Mon, 29 Nov 2010 20:46:51 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtcEAD6S80zZCiKb/2dsb2JhbACDUJB/jyxGsUsGkHKBH4MzdQSEV4YK X-IronPort-AV: E=Sophos;i="4.59,276,1288566000"; d="scan'208";a="68442417" Received: from av6800.comex.ru (HELO home.mk.pp.ru) ([217.10.34.155]) by mail3-smtp-sop.national.inria.fr with ESMTP; 29 Nov 2010 20:46:50 +0100 Received: from ermine.home (ermine.home [192.168.2.2]) by home.mk.pp.ru (Postfix) with ESMTP id 409AA20A10; Mon, 29 Nov 2010 22:46:49 +0300 (MSK) Authentication-Results: mk.pp.ru; dkim=none (no signature) header.i=unknown; x-dkim-adsp=none Received: by ermine.home (Postfix, from userid 1002) id 337202E082; Mon, 29 Nov 2010 22:46:22 +0300 (MSK) Date: Mon, 29 Nov 2010 22:46:22 +0300 From: Anastasia Gornostaeva To: Sylvain Le Gall , caml-list@inria.fr Subject: Re: [Caml-list] Re: oasis Message-ID: <20101129194622.GA41946@ermine.home> References: <20101126183832.GA10787@ermine.home> <20101127131005.GA2407@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 variants:01 userspace:01 usr:01 usr:01 flags:01 cflags:01 libs:01 ocaml:01 re-use:01 beginner's:01 ocaml:01 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 freetype2.sh > - in freetype2.sh invoke freetype-config and output flags in setup.data > using "echo 'freetype2_cflags = "$output"' >> setup.data' and > "echo 'freetype2_libs = "$output"' >> setup.data' > - add in _tags a "src/toto.cma: pkg_config_freetype2" > - add in myocamlbuild.ml 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 setup.data and var_get data from it to be public. Right now I attempt to play with your code in myocamlbuild.ml 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. ermine > > Regards, > Sylvain Le Gall > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs