".if defined" within dependencies

Thierry Thomas thierry at pompo.net
Tue Jul 1 10:33:27 PDT 2003


Le Mar  1 jul 03 à 17:59:02 +0200, Alexander Leidinger <Alexander at Leidinger.net>
 écrivait :
> > > > So, how can I depend on ocaml with WITHOUT_X11 set?
> > > 
> > > If ocaml isn't build already and WITHOUT_GUI is specified for mldonkey,
> > > you want to have ocaml build WITHOUT_X11?
> > > 
> > > I haven't tested it, but perhaps setting
> > >  MAKEFLAGS=$(MAKEFLAGS) -DWITHOUT_X11
> > > does what you want.
> > 
> >     the problem is you can't do that with *_DEPENDS.
> 
> You can't do it for just one of them, you have to do it for all... and
> you perhaps have to play with bsd.port.{pre,post}.mk.

I have a machine WITHOUT_X11: this is a global config key, and it is
defined in /etc/make.conf.
-- 
Th. Thomas.


More information about the freebsd-ports mailing list