From owner-freebsd-ports@FreeBSD.ORG Sun Apr 1 17:22:44 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C0E9F1065674; Sun, 1 Apr 2012 17:22:44 +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 728938FC19; Sun, 1 Apr 2012 17:22:44 +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 7BF314AC1C; Sun, 1 Apr 2012 21:22:43 +0400 (MSK) Date: Sun, 1 Apr 2012 21:22:36 +0400 From: Lev Serebryakov Organization: FreeBSD Project X-Priority: 3 (Normal) Message-ID: <322863489.20120401212236@serebryakov.spb.ru> To: Chris Rees In-Reply-To: References: <792848519.20120401165840@serebryakov.spb.ru> <4F785246.60804@freebsd.org> <498407961.20120401205358@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: ports@freebsd.org, Julien Laffaye 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:22:44 -0000 Hello, Chris. You wrote 1 =D0=B0=D0=BF=D1=80=D0=B5=D0=BB=D1=8F 2012 =D0=B3., 20:59:18: >>>> =C2=A0 =C2=A0Is it possible to express build-time-only dependency on l= ibrary? >>> 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 ${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 :( --=20 // Black Lion AKA Lev Serebryakov