pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: (structural?) devel/SDL: broken option handling on Slackware Lunix 10.2



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



Home | Main Index | Thread Index | Old Index