From owner-freebsd-ports@FreeBSD.ORG Tue Sep 14 13:21:20 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 5938016A4CE; Tue, 14 Sep 2004 13:21:20 +0000 (GMT) Received: from atlas.informatik.rwth-aachen.de (atlas.informatik.RWTH-Aachen.DE [137.226.194.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2D8843D2F; Tue, 14 Sep 2004 13:21:19 +0000 (GMT) (envelope-from stolz@i2.informatik.rwth-aachen.de) Received: from i2.informatik.rwth-aachen.de (menelaos.informatik.RWTH-Aachen.DE [137.226.194.73]) with ESMTP id i8EDLIZB012758; Tue, 14 Sep 2004 15:21:18 +0200 Received: (from stolz@localhost)i8EDLIgu063723; Tue, 14 Sep 2004 15:21:18 +0200 (CEST) (envelope-from stolz) Date: Tue, 14 Sep 2004 15:21:18 +0200 From: Volker Stolz To: freebsd-ports@freebsd.org Message-ID: <20040914132118.GA63716@i2.informatik.rwth-aachen.de> References: <20040914093252.GB799@garak.epita.fr> <20040914112303.GA55752@elendil.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040914112303.GA55752@elendil.ru> X-PGP-Key: finger vs@foldr.org X-PGP-Id: 0x3FD1B6B5 User-Agent: Mutt/1.5.6i cc: Sergei Kolobov 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 13:21:20 -0000 In gmane.os.freebsd.devel.ports, you wrote: >> 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 ? > > BUILD_DEPENDS= ${LOCALBASE}/lib/libbg.a:${PORTSDIR}/devel/bglibs \ > ${LOCALBASE}/lib/libcvm-client.a:${PORTSDIR}/security/cvm That's right. Just to state the obvious: There's no way of making sure you get the "correct version" of a static library since there's neither the notion of versioning them nor does the ports infrastructure provide an alternative. Volker -- http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME Two more month.