Date: Tue, 14 Sep 2004 15:23:03 +0400 From: Sergei Kolobov <sergei@FreeBSD.org> To: Jeremie Le Hen <jeremie.le-hen@epita.fr> Cc: freebsd-ports@freebsd.org Subject: Re: Depending on a static library Message-ID: <20040914112303.GA55752@elendil.ru> In-Reply-To: <20040914093252.GB799@garak.epita.fr> References: <20040914093252.GB799@garak.epita.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
Jeremie, 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 bsd.port.mk, 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 \ ${LOCALBASE}/lib/libcvm-client.a:${PORTSDIR}/security/cvm (taken from mail/mailfront port). Hope this helps. Sergei
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040914112303.GA55752>