pkgsrc-Users archive

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

Re: PKG_DEFAULT_OPTIONS



On Mon, May 02, 2016 at 10:50:25AM +0200, Thomas Klausner wrote:
> On Mon, May 02, 2016 at 09:28:58AM +0100, Patrick Welche wrote:
> > If the user sets PKG_DEFAULT_OPTIONS or PKG_OPTIONS.libsoup to gssapi
> > libsoup-2.4.so.1.8.0 depends on libkrb5 and friends. options.mk
> > tests PKG_OPTIONS which will contain gssapi whichever of those
> > 2 variables are set.
> > 
> > Now build gvfs which doesn't have a gssapi option. PKG_OPTIONS now
> > doesn't have gssapi set, so libsoup's buildink3.mk file has to
> > test both of the above 2 variables to pull in the krb5 libraries.
> 
> Ah, that's what you want.
> 
> There's a standard solution for that, look e.g. in devel/ucommon:
> 
> pkgbase := ucommon
> .include "../../mk/pkg-build-options.mk"
> 
> .if !empty(PKG_BUILD_OPTIONS.ucommon:Mgnutls)
> .include "../../security/gnutls/buildlink3.mk"
> .endif
> 
> That includes gnutls/bl3.mk if ucommon was built with the gnutls
> option.

Thanks (also doc/pkgsrc.txt 16.4 Determining the options of dependencies)

Patrick


Home | Main Index | Thread Index | Old Index