Subject: Re: and library dependancies
To: None <>
From: Lubomir Sedlacik <>
List: tech-pkg
Date: 01/23/2006 12:43:13
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jan 23, 2006 at 01:37:30PM +1100, wrote:
> The ffmpeg package has a number of compile time option dependancies,
> for example: faad, faac, a52, lame etc. The transcode program requires
> ffmpeg to build and will fail if ffmpeg cannot be found or linked
> properly. Currently I have most options in use for my ffmpeg pkg but
> when transcode tries to test the existance and usability of ffmpeg,
> the configure test fails to compile because transcode doesn't know
> that ffmpeg needs additional linker flags to pull in the optional
> dependancies of ffmpeg. What is the suggested way of
> passing additional linker flags around depending on PKG_OPTIONS
> selected? At the moment I am playing with just setting a variable
> myself in the ffmpeg file and using it in transcode, but
> I wonder if there is a way of doing this within the buildlink3
> framework. Couldn't find anything in the doc/pkgsrc.txt file.

include files for the dependencies into ffmpeg's file based on the PKG_BUILD_OPTIONS values.  see e.g.,
wip/xmms2 for an example.


-- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org>   --

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.4.2 (NetBSD)