Date: Mon, 9 Apr 2012 08:34:11 +0000 From: Chris Rees <crees@FreeBSD.org> To: lev@freebsd.org Cc: ports@freebsd.org Subject: Re: BUILD_DEPENDS and libraries -- how to express build-time-only dependency on library? Message-ID: <CADLo83_1iVLCwq0S5T14An8FbUiMB3zqpwQNoD=taqOxsyhnEw@mail.gmail.com> In-Reply-To: <1372520876.20120401212732@serebryakov.spb.ru> References: <792848519.20120401165840@serebryakov.spb.ru> <4F785246.60804@freebsd.org> <498407961.20120401205358@serebryakov.spb.ru> <CADLo83-nr-QAZ1o7GY6CPMZBW0aEwGJw94bgq59r4NBLiOO_Uw@mail.gmail.com> <322863489.20120401212236@serebryakov.spb.ru> <1372520876.20120401212732@serebryakov.spb.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On 1 April 2012 17:27, Lev Serebryakov <lev@freebsd.org> 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 <bsd.port.pre.mk> # mess with dependencies .include <bsd.port.post.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo83_1iVLCwq0S5T14An8FbUiMB3zqpwQNoD=taqOxsyhnEw>