Subject: Re: options.mk in buildlink files?
To: Christian Hattemer <c.hattemer@arcor.de>
From: Todd Vierling <tv@duh.org>
List: tech-pkg
Date: 04/19/2006 13:11:38
On Wed, 19 Apr 2006, Christian Hattemer wrote:

> it annoys me that cairo builds glitz, which isn't really necessary to use it
> with gtk. So I added cairo an option to disable glitz. This works fine when
> doing cd pkgsrc/graphics/cairo && make.
>
> However when another pkg, e.g. pango, builds on cairo it will pull in glitz
> from cairo's buildlink3.mk and build it anyway. If I remove the line that
> includes the glitz buildlink in cairo's buildlink3.mk it's fine. But it has
> to be done conditionally since it will break when the option is turned on
> and cairo is built with glitz again.

Do dependencies of cairo *actually* break when built without the line in
cairo/buildlink3.mk?  (The point here is that if cairo hides the glitz API
from cairo's dependents, then the dependents don't need the .include in
cairo/buildlink3.mk.)

> It seems this isn't the right way to go. How is it done?

See graphics/aalib/buildlink3.mk for an example.

-- 
-- Todd Vierling <tv@duh.org> <tv@pobox.com> <todd@vierling.name>