Date: Tue, 08 Jun 2010 14:14:26 -0400 From: Greg Larkin <glarkin@FreeBSD.org> To: Bruce Cran <bruce@cran.org.uk> Cc: Giorgos Tsiapaliokas <terietor@gmail.com>, freebsd-questions@freebsd.org Subject: Re: can i use flags at once? Message-ID: <4C0E8882.1050600@FreeBSD.org> In-Reply-To: <20100608162047.00001b96@unknown> References: <AANLkTim2DznYVnGYn0YJIeFbSTJWjpyBtFyMHwjuKHqm@mail.gmail.com> <20100608162047.00001b96@unknown>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bruce Cran wrote: > On Tue, 8 Jun 2010 13:59:40 +0000 > Giorgos Tsiapaliokas <terietor@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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C0E8882.1050600>