[gobolinux-devel] Use flags specification
Jonatan Liljedahl
lijon at kymatica.com
Sun Apr 13 02:30:45 NZST 2008
Daniele Maccari wrote:
> Jonatan Liljedahl wrote:
>> Or something like this:
>>
>> with_gtk1=(
>> "--enable-gtk"
>> "--disable-gtk"
>> )
>>
>> or more self-documenting:
>>
>> useflag_gtk1=(
>> "with=--enable-gtk"
>> "without=--disable-gtk"
>> )
>>
>> Those would be easy parsable by bash itself...
>>
> Sure, the possibilities are infinite :D
> I proposed the single array to be more concise and don't fill the recipe
> with "with_<this>" and "with_<that>" arrays. Anyway the important thing
> is to let useflags override configure.
>> And as said in previous post, we also need a not_using_<flag>() function
>> for more complex cases.
> What would you use that for? Wouldn't pre_* and post_* hooks be enough
> for standard behaviour?
Some flags might need to add multiple configure options, disable others,
add or change makefile variables, etc..
--
/Jonatan [ http://kymatica.com ]
More information about the gobolinux-devel
mailing list