[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Depending on a package with an option?
On Wed, Jan 21, 2009 at 02:11:24PM +0100, Emmanuel Dreyfus wrote:
> Dieter Baron <dillo%danbala.tuwien.ac.at@localhost> wrote:
> > Please use the existing mechanism of PKG_BUILD_OPTIONS.<pkgname>, as
> > described in section 16.4. ``Determining the options of dependencies''
> > of the pkgsrc guide.
> I already tried that, but this mechanism is only available from within a
> buildlink3.mk file.
Ah, I see. Probably because it uses BUILDLINK_PKGSRCDIR.<pkgbase>.
> Here is what I have came to (it works as intended).
Does it also work if openldap-server is not installed when invoking
make in openldap-smbk5pwd? I would guess not.
> pkgsrc/databases/openldap-smbk5pwd/Makefile I have this:
> PKG_BUILD_OPTIONS.openldap-server!= pkg_info -Q PKG_OPTIONS openldap-server
> .if !defined(PKG_BUILD_OPTIONS.openldap-server) || \
> PKG_FAIL_REASON+= "This package requires openldap-server " \
> "to be built with the dso option. Please add " \
> "PKG_OPTIONS.openldap-server+=dso to your " \
> "mk.conf and rebuild databases/openldap-server"
> NB: neither databases/openldap-smbk5pwd nor openldap-server dso option were
> committed in the repository yet.
Main Index |
Thread Index |