tech-pkg archive

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

Re: lablgtk & optional buildlinking

On Sat, Oct 29, 2011 at 06:04:53PM +0000, David Holland 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/, to wit:

pkgbase := kdelibs
.include "../../mk/"

.if !empty(PKG_BUILD_OPTIONS.kdelibs:Mcups)
.  include "../../print/cups/"


Home | Main Index | Thread Index | Old Index