can i use flags at once?

Greg Larkin glarkin at FreeBSD.org
Tue Jun 8 18:14:34 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bruce Cran wrote:
> On Tue, 8 Jun 2010 13:59:40 +0000
> Giorgos Tsiapaliokas <terietor at gmail.com> wrote:
> 
>> hello,
>>
>> i am a gentoo user and now i am trying to install a freebsd on my
>> machine. ports are great but while my machine is compiling i receive
>> messages about the flags.
>>
>> in gentoo i was able via the file /etc/portage/package.use to
>> determine which flags i wanted to enable and which not.
>>
>> is there any way to do this in FreeBSD,since gentoo's portage is
>> based on ports.
> 
> The only similar mechanism is /etc/make.conf where you can put flags
> such as USE_X11=yes or USE_GTK2=yes in order to build ports with X11 or
> Gtk2 support.  Unlike Gentoo there's no central repository of valid
> flags.
> 

Have you looked at /usr/ports/KNOBS?  There a large number of
system-level configuration options in there, and you can set them in
/etc/make.conf or on the make command line.  For instance, I use the
following /etc/make.conf entries when I'm building ports for headless
servers with minimal extra installed files:

WITHOUT_X11=yes
WITHOUT_NLS=yes
NOPORTDOCS=yes
NOPORTEXAMPLES=yes

The entries in KNOBS are enabled/disabled with WITH_<KNOB>=yes or
WITHOUT_<KNOB>=yes instead of USE_<KNOB>.  USE_* directives are
typically included in port Makefiles to indicate a dependency on a
certain package, e.g.:

USE_MYSQL=	yes	# This port depends on MySQL client

There's are more details on all of this here:
http://www.freebsd.org/doc/en/books/porters-handbook/makefile-options.html

Hope that helps,
Greg
- --
Greg Larkin

http://www.FreeBSD.org/           - The Power To Serve
http://www.sourcehosting.net/     - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFMDoiC0sRouByUApARAkPBAKDDZRJPuakRFqp1olkMnYV7r1etDwCfZe5s
dALMLBb6J2XfTzDPN5CRgP0=
=YqHl
-----END PGP SIGNATURE-----



More information about the freebsd-questions mailing list