Subject: Re: options.mk in buildlink files?
To: Geert Hendrickx , Todd Vierling <tv@duh.org>
From: Christian Hattemer <c.hattemer@arcor.de>
List: tech-pkg
Date: 04/20/2006 17:23:01
Hello Geert,

On 19.04.06, you wrote:

> I don't like how this is done.  It assumes options are set permanently.
>  I often set options on the make command-line (e.g. "make
> PKG_OPTIONS.foo=-bar install") and this would break with such
> constructs.  

It does work. With my changes (or respectively in aalib) do:
% cd /usr/pkgsrc/graphics/cairo
% make show-options
Any of the following general options may be selected:
        glitz    Enable glitz backend.
 
These options are enabled by default:
        glitz
 
These options are currently enabled:
        glitz
% make PKG_OPTIONS.cairo=-glitz show-options
Any of the following general options may be selected:
        glitz    Enable glitz backend.
 
These options are enabled by default:
        glitz
 
These options are currently enabled:
%

What do you see?

Bye, Chris