Depending on a static library

Sergei Kolobov sergei at
Tue Sep 14 04:23:39 PDT 2004


On 2004-09-14 at 11:32 +0200, Jeremie Le Hen wrote:
> I would like to have a port depending on a static library (using a shared
> one is not an option here) but it seems that the LIB_DEPENDS statement
> in the Makefile only support shared ones.  I google'd for a while but I
> did'nt find something relevant.
> I'm truly convinced this is possible, but the Porter's handbook does not
> say anything about it.  The only way I found is using the DEPENDS statement,
> but if I understood correctly while reading, this is not a
> conditional inclusion, it simply make a target in the specified directory.
> Is there any clean way to achieve this ?

I think you need something like this:

BUILD_DEPENDS=  ${LOCALBASE}/lib/libbg.a:${PORTSDIR}/devel/bglibs \

(taken from mail/mailfront port).

Hope this helps.


More information about the freebsd-ports mailing list