From owner-freebsd-ports@FreeBSD.ORG Tue Sep 14 11:23:39 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E79C16A4CE for ; Tue, 14 Sep 2004 11:23:39 +0000 (GMT) Received: from outpost.globcon.net (outpost.globcon.net [62.141.88.161]) by mx1.FreeBSD.org (Postfix) with SMTP id 4705F43D2F for ; Tue, 14 Sep 2004 11:23:38 +0000 (GMT) (envelope-from sergei@FreeBSD.org) Received: (qmail 52187 invoked from network); 14 Sep 2004 11:23:36 -0000 Received: from tirith.elendil.ru ([195.68.151.124]) by outpost.globcon.net ([62.141.88.161]) with SMTP via TCP; 14 Sep 2004 11:23:36 -0000 Received: (qmail 51174 invoked from network); 14 Sep 2004 11:23:36 -0000 Received: from narsil.elendil.ru ([10.19.72.1]) by tirith.elendil.ru ([10.19.72.4]) with SMTP via TCP; 14 Sep 2004 11:23:36 -0000 Received: (qmail 56046 invoked by uid 1001); 14 Sep 2004 11:23:03 -0000 Date: Tue, 14 Sep 2004 15:23:03 +0400 From: Sergei Kolobov To: Jeremie Le Hen Message-ID: <20040914112303.GA55752@elendil.ru> Mail-Followup-To: Jeremie Le Hen , freebsd-ports@freebsd.org References: <20040914093252.GB799@garak.epita.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040914093252.GB799@garak.epita.fr> User-Agent: Mutt/1.5.6i cc: freebsd-ports@freebsd.org Subject: Re: Depending on a static library X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2004 11:23:39 -0000 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