tech-pkg archive

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

Re: lablgtk & optional buildlinking



On Sun, Oct 30, 2011 at 03:44:11PM +0100, Thomas Klausner wrote:
 > > So, it seems that lablgtk's bl3 file needs to include gnome-panel's
 > > bl3 file. This fixes the build of monotone-viz and I think some other
 > > ocaml-related packages that fail linking -lnspr4.
 > > 
 > > The problem is, gnome-panel is optional in lablgtk. How (if at all) is
 > > one supposed to put optional things in a package's bl3 file? Is there
 > > a recommended way to work around this type of situation?
 > 
 > There's a standard way, I'm not sure if it's documented. The
 > generic example is in pkgsrc/x11/kdelibs3/buildlink3.mk, to wit:
 > 
 > pkgbase := kdelibs
 > .include "../../mk/pkg-build-options.mk"
 > 
 > .if !empty(PKG_BUILD_OPTIONS.kdelibs:Mcups)
 > .  include "../../print/cups/buildlink3.mk"
 > .endif

Done (finally), thanks...

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index