Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Feb 2008 06:33:37 -0600
From:      "Scot Hetzel" <swhetzel@gmail.com>
To:        "Jeremy Chadwick" <koitsu@freebsd.org>
Cc:        freebsd-stable@freebsd.org, "Chris H." <chris#@1command.com>
Subject:   Re: make KNOBS
Message-ID:  <790a9fff0802260433y63f887e8y56dea11f36270b2e@mail.gmail.com>
In-Reply-To: <20080226080349.GA20881@eos.sc1.parodius.com>
References:  <20080225215522.r3jb5v548o0scks8@webmail.1command.com> <20080226070516.GB32690@team.vega.ru> <20080225233523.acl5s1lo8wgsw4wg@webmail.1command.com> <20080226080349.GA20881@eos.sc1.parodius.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 26, 2008 at 2:03 AM, Jeremy Chadwick <koitsu@freebsd.org> wrote:
> Additionally, the WITH/WITHOUT variables seen in the Makefile are not
> always what they seem.  For ports that use OPTIONS, you cannot define
> these on the command-line (e.g. make WITHOUT_FRUIT=yes); you absolutely
> MUST do 'make config' and then toggle them there.  (This is one piece of
> the OPTIONS framework which I have always disliked, because some of us
> use /etc/make.conf to define WITH/WITHOUT variables, and prefer to do
> "cd /usr/ports/whatever && make clean && make && make install" and not
> have something interactive pop up.  That's for another discussion
> though...)
>
You should be able to do:

cd /usr/ports/whatever && make clean && make -DBATCH && make -DBATCH install

Check the port to see if it disables parts of its build/install
process when BATCH is defined.

Another way would be to define _OPTIONS_OK=yes in /etc/make.conf, but
this is an internal variable to bsd.ports.mk.

Also defining WITH/WITHOUT variables in /etc/make.conf and/or
${PREFIX}/etc/ports.conf (sysutils/portconf) should work with ports
that use the OPTIONS framework.

Scot



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0802260433y63f887e8y56dea11f36270b2e>