Subject: conditionally including packages in buildlink3.mk based upon selected options
To: None <pkgsrc-users@netbsd.org>
From: Blair Sadewitz <blair.sadewitz@gmail.com>
List: pkgsrc-users
Date: 01/23/2007 02:25:39
I'm working on a libX11-1.1.1 package, and I have an option which
selects either phreads or xcb.

If xcb is selected, then another package needs to be included in
libX11's buildlink3.mk.  However, I cannot just blindly do this, as if
xcb is not used this will cause all sorts of problems.

What is the most elegant way to take care of this?
I have found many possible hints at solutions in the documentation,
but nothing concrete--and I'd like to learn the right way from the
get-go.

Thanks,

--Blair
-- 
Support WFMU-FM: free-form radio for the masses!

<http://www.wfmu.org/>
91.1 FM Jersey City, NJ
90.1 FM Mt. Hope, NY

"The Reggae Schoolroom":
<http://www.wfmu.org/playlists/RS/>