tech-pkg archive

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

Re: hplip and avahi-enabled cups-base



On Fri, Jun 22, 2018 at 07:31:32PM +0200, Joerg Sonnenberger wrote:
> On Fri, Jun 22, 2018 at 04:28:27PM +0200, Manuel Bouyer wrote:
> > Hello,
> > when cups-base is built with avahi-support, hplip fails to build because
> > the ahavi libraries are not in the buildlink directory (havali libs are
> > pulled in by libtool from cups's libraries I guess).
> > Adding
> > .include "../../net/avahi/buildlink3.mk"
> > 
> > to hplip's Makefile fixes it, but it needs to be done only when cups is
> > built with avahi support. how can I do that ?
> 
> Take a look at x11/qt4-libs/b3.mk.

thanks

but there seems to be already the logic in print/cups-base/buildlink3.mk:
pkgbase := cups-base
.include "../../mk/pkg-build-options.mk"

.if !empty(PKG_BUILD_OPTIONS.cups:Mkerberos)
.include "../../mk/krb5.buildlink3.mk"
.endif

.if !empty(PKG_BUILD_OPTIONS.cups:Mdnssd)
.include "../../net/mDNSResponder/buildlink3.mk"
.endif

.if ${OPSYS} != "Darwin" && !empty(PKG_BUILD_OPTIONS.cups:Mavahi)
.include "../../net/avahi/buildlink3.mk"
.endif

so there's something not working as expected here.
Is it because pkgbase is set to "cups-base" while options use "cups" ?

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index