Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jun 2012 07:09:55 -0700
From:      perryh@pluto.rain.com
To:        bapt@freebsd.org
Cc:        ports@freebsd.org, fpeterscom@gmail.com
Subject:   Re: Port system "problems"
Message-ID:  <4feb1433.AnYJ2XYaBfhlzezx%perryh@pluto.rain.com>
In-Reply-To: <20120626065732.GH41054@ithaqua.etoilebsd.net>
References:  <4FE8E4A4.9070507@gmail.com> <20120626065732.GH41054@ithaqua.etoilebsd.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Baptiste Daroussin <bapt@freebsd.org> wrote:
> On Tue, Jun 26, 2012 at 12:22:28AM +0200, Florent Peterschmitt
> wrote:
> > 2. Why do we have to put WITH_NEW_XORG in /etc/make.conf to
> > get it ? Why not put this var in a port configuration file
> > which will be read by all ports needing this var ?
>
> Because this is not that easy, do you have a technical way to
> propose?

It would be almost trivial to move ports configuration in general
out of a file that is located in (and thus arguably belongs to) the
base, into one that is clearly related to ports.  Just add logic
something like this to /etc/make.conf:

  if { exists /usr/local/etc/make.conf && building a port }
    include /usr/local/etc/make.conf
  endif

and put ports configuration in /usr/local/etc/make.conf



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4feb1433.AnYJ2XYaBfhlzezx%perryh>