Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jun 2004 19:46:14 -0400
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        clayton rollins <crollins666@hotmail.com>
Cc:        ports@freebsd.org
Subject:   Re: Using LIB_DEPENDS
Message-ID:  <20040612234614.GJ72578@toxic.magnesium.net>
In-Reply-To: <Sea1-F85D2wjC9B3XrO000153da@hotmail.com>
References:  <Sea1-F85D2wjC9B3XrO000153da@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>> (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@magnesium.net || adamw@FreeBSD.org
adamw@vectors.cx    ||   adamw@gnome.org
http://www.vectors.cx


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040612234614.GJ72578>