From owner-freebsd-ports@FreeBSD.ORG Sun Apr 1 17:27:41 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFE641065672; Sun, 1 Apr 2012 17:27:41 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id 985438FC0A; Sun, 1 Apr 2012 17:27:41 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (89.112.15.178.pppoe.eltel.net [89.112.15.178]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 922274AC1C; Sun, 1 Apr 2012 21:27:40 +0400 (MSK) Date: Sun, 1 Apr 2012 21:27:32 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <1372520876.20120401212732@serebryakov.spb.ru> To: Chris Rees , ports@freebsd.org In-Reply-To: <322863489.20120401212236@serebryakov.spb.ru> References: <792848519.20120401165840@serebryakov.spb.ru> <4F785246.60804@freebsd.org> <498407961.20120401205358@serebryakov.spb.ru> <322863489.20120401212236@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: BUILD_DEPENDS and libraries -- how to express build-time-only dependency on library? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2012 17:27:42 -0000 Hello, Chris. You wrote 1 =D0=B0=D0=BF=D1=80=D0=B5=D0=BB=D1=8F 2012 =D0=B3., 21:22:36: >>>>> =C2=A0 =C2=A0Is it possible to express build-time-only dependency on = library? >>>> BUILD_DEPENDS=3D${LOCALBASE}/lib/libfoo.a:${PORTSDIR}/foo/libfoo ? >>> =C2=A0It works, but here are other problem: if iconv or gettext or >>> something like this are used, they added after all libs anyway :( >> Well, don't iconv and gettext require it? In that case it needs >> registering. Otherwise iconv and gettext should have their deps >> fixed.... > My port builds with static linkage. After port is built and > installed, it doesn't need any other ports in system. But if I use > USE_ICONV, and, later do something like this: > OLD_LIB_DEPENDS:=3D =20 > ${LIB_DEPENDS:S!^!${LOCALBASE}/lib/lib!:C!(\.[0-9]+)?:!.a:!} > BUILD_DEPENDS+=3D ${OLD_LIB_DEPENDS} > LIB_DEPENDS=3D > I have proper BUILD_DEPENDS which is built from MY libraries, but > iconv, gettext & Ko are in LIB_DEPENDS anyway :( USE_GETTEXT could be set to "build" but not USE_ICONV and USE_BDB. And all my manipulations with *_DEPENDS goes before effect of these options :( --=20 // Black Lion AKA Lev Serebryakov