From owner-freebsd-questions@FreeBSD.ORG Tue Jun 8 18:14:33 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB32D106566C for ; Tue, 8 Jun 2010 18:14:33 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id C75118FC12 for ; Tue, 8 Jun 2010 18:14:33 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1OM3Jn-0008UG-Pc; Tue, 08 Jun 2010 14:14:32 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id 8A0074108FC5; Tue, 8 Jun 2010 14:14:31 -0400 (EDT) Message-ID: <4C0E8882.1050600@FreeBSD.org> Date: Tue, 08 Jun 2010 14:14:26 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Bruce Cran References: <20100608162047.00001b96@unknown> In-Reply-To: <20100608162047.00001b96@unknown> X-Enigmail-Version: 0.96.0 OpenPGP: id=1C940290 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: 0.1 (/) Cc: Giorgos Tsiapaliokas , freebsd-questions@freebsd.org Subject: Re: can i use flags at once? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jun 2010 18:14:34 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bruce Cran wrote: > On Tue, 8 Jun 2010 13:59:40 +0000 > Giorgos Tsiapaliokas 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_=yes or WITHOUT_=yes instead of USE_. 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-----