Using LIB_DEPENDS

Adam Weinberger adamw at FreeBSD.org
Sat Jun 12 23:46:28 GMT 2004


>> (06.12.2004 @ 1935 PST): clayton rollins said, in 1.1K: <<
> Hi all,
> 
> I'm in a situation where I think I have to use LIB_DEPENDS,
> but want some advice before moving forward.
> 
> The specific library I'm trying to link to is devel/icu2. Is
> there a convenient way to include this? (Say,
> USE_ICU2=yes, which I didn't  see.) Or, am I stuck using
> LIB_DEPENDS?

You need to use LIB_DEPENDS.

> If I'm stuck with LIB_DEPENDS, is there a way dynamically
> support the dependency? ICU 2.6 and greater will work,
> can I tell LIB_DEPENDS this somehow, or do have to link to
> the version in ports and update this Makefile for each
> update to icu2?

LIB_DEPENDS=	iculx:${PORTSDIR}/devel/libicu2

That will work because libiculx.so exists as a symlink. 

> Also, do libraries registered with LIB_DEPENDS count as
> runtime depencies, or should I explicitely include that?
> I assume it does, but figured I'd ask since I'm writing
> anyways.
>> end of "Using LIB_DEPENDS" from clayton rollins <<

LIB_DEPENDS implies both a BUILD_DEPEND and a RUN_DEPEND.

# Adam


--
Adam Weinberger
adamw at magnesium.net || adamw at FreeBSD.org
adamw at vectors.cx    ||   adamw at gnome.org
http://www.vectors.cx


More information about the freebsd-ports mailing list