Subject: Re: (structural?) devel/SDL: broken option handling on Slackware
To: None <zeurkous@nichten.info>
From: Roland Illig <rillig@NetBSD.org>
List: pkgsrc-users
Date: 10/07/2007 23:53:11
De Zeurkous wrote:
> Haai,
> 
> For some reason, devel/SDL's options.mk doesn't completely adhere to
> option selection. To quote the file in question:
> 
> [snip]
> .if !empty(PKG_OPTIONS:Marts)
> CONFIGURE_ARGS+=        --enable-arts
> .include "../../audio/arts/buildlink3.mk"
> .else
> CONFIGURE_ARGS+=        --disable-arts
> .endif
> [!snip]

This is completely correct. What's wrong is your understanding of how 
the selection of options works.

When you set PKG_OPTIONS.SDL to an empty value, that means "do nothing 
special for this package". But the thing you had in mind was: "disable 
arts". To achieve this, you need to say:

     PKG_OPTIONS.SDL=   -arts

http://www.netbsd.org/docs/pkgsrc/configuring.html#selecting-build-options

(I must admit that the text could be a little clearer on this issue, 
since many users understand it wrong.)

Roland