From owner-freebsd-ports@FreeBSD.ORG Mon Apr 9 08:34:43 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 2287E106566C; Mon, 9 Apr 2012 08:34:43 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 745D08FC12; Mon, 9 Apr 2012 08:34:42 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so4105752bkc.13 for ; Mon, 09 Apr 2012 01:34:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=Y5VAD1+aELc8jnthULaQaEuarBYEBsw9B33REslyi6w=; b=RS3m9Qrbm7FztL/R/HwsokK6SgJmzskr7Q1LNseWAOLlgimEQ5FEA5jTH8ioFrpYMP BeNFlqKqPVAFOtvYSEeyNQFiBLc0y7pX6HI+1BvqbMR4pVsL+L5A6cOepnKEX/LHlVi6 Cvo/tK16kCTKO2xeMA9VCKOErL8MtVsY6O7gj62RePK7gujo6G0hZKE+pHR//CMOm7qd YK+9zIK/Rt3RzQ3xle9u4OtwmtbZgogycjStfPKFIobpY2c+SD8RHI7s8Bn+d98QSJYS 5DeA1IIS7w3+2AduaFIJu9MMF2fzq6Z6isHAM8uCeF7+HCxEbOtk+mG1Il6LRW11eSQp eeig== Received: by 10.205.117.15 with SMTP id fk15mr2680148bkc.133.1333960481588; Mon, 09 Apr 2012 01:34:41 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.204.202.142 with HTTP; Mon, 9 Apr 2012 01:34:11 -0700 (PDT) In-Reply-To: <1372520876.20120401212732@serebryakov.spb.ru> References: <792848519.20120401165840@serebryakov.spb.ru> <4F785246.60804@freebsd.org> <498407961.20120401205358@serebryakov.spb.ru> <322863489.20120401212236@serebryakov.spb.ru> <1372520876.20120401212732@serebryakov.spb.ru> From: Chris Rees Date: Mon, 9 Apr 2012 08:34:11 +0000 X-Google-Sender-Auth: HgEnct1IUoj4TheGuIRDWVLvS-0 Message-ID: To: lev@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: ports@freebsd.org 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 List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Apr 2012 08:34:43 -0000 On 1 April 2012 17:27, Lev Serebryakov wrote: > 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? =C2=A0In that case it needs >>> registering. =C2=A0Otherwise iconv and gettext should have their deps >>> fixed.... >> =C2=A0 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 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ${OLD_LIB_DEPENDS} >> LIB_DEPENDS=3D >> =C2=A0I have proper BUILD_DEPENDS which is built from MY libraries, but >> iconv, gettext & Ko are in LIB_DEPENDS anyway :( > =C2=A0USE_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 :( I suppose bsd.port.pre.mk doesn't help here, does it? USE_ICONV=3D yes USE_BDB=3D yes .include # mess with dependencies .include