From owner-freebsd-questions@FreeBSD.ORG Sat Jan 17 01:45:03 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0638716A4CF for ; Sat, 17 Jan 2004 01:45:03 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF03F43D6B for ; Sat, 17 Jan 2004 01:44:51 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i0H9ikfn077651 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 17 Jan 2004 09:44:46 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i0H9ijNk077650; Sat, 17 Jan 2004 09:44:45 GMT (envelope-from matthew) Date: Sat, 17 Jan 2004 09:44:45 +0000 From: Matthew Seaman To: alexandream@infolink.com.br Message-ID: <20040117094445.GB67751@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , alexandream@infolink.com.br, freebsd-questions@freebsd.org References: <20040116234750.E0B4C1A8752@smtp.infolink.com.br> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cmJC7u66zC7hs+87" Content-Disposition: inline In-Reply-To: <20040116234750.E0B4C1A8752@smtp.infolink.com.br> User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.61 X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: Compile Options X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jan 2004 09:45:03 -0000 --cmJC7u66zC7hs+87 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 16, 2004 at 10:47:51PM -0200, alexandream@infolink.com.br wrote: > I've just installed my brand new FreeBSD 5.2 system in this machine. I= 've > never used FreeBSD before and I'm quite used to work with linux (specially > Slackware, although the last 4 months I've been using Gentoo for most of = my > daily work). > The Question is that I could not find anything that resembled Gentoo's= USE > Flags, so I'd like to know if THERE IS anything like it, where could I re= ad > 'bout it (I've been checking the ports chapter in the Handbook but.. no l= uck). On FreeBSD there is a conceptual distinction between the system and ports. There are a number of flags you can set in /etc/make.conf to control compilation -- see the example make.conf in /usr/share/examples/etc -- probably the closest equivalent of Gentoo's USE_ variables are the NO_FOO variables used to turn off various parts of the system build, eg: NO_SENDMAIL=3D true Individual ports in the ports system can use any number of WITH_FOO or WITHOUT_FOO flags to control optional parts of compilation. (Actually, there are also USE_FOO make variables in the ports, but those are internal use only and not settable by the end user.) There are also many similar flags from before the convention to use 'WITH' or 'WITHOUT' flags was established. You'll have to read the port Makefile to work out what's available. The WITH_FOO flags in the ports can be set generally for all compilations by including them in /etc/make.conf -- however this is only useful for certain WITH_FOO options that have a generally accepted meaning for all ports. Eg. on one system I use: A4=3D yes PAPER_SIZE=3D a4 =20 WITHOUT_PYTHON=3D yes APACHE_PORT=3D www/apache2 WITH_APACHE2=3D yes However, most of these flags only apply to a single port. You can create a 'Makefile.local' in the port directory for ports specific WITH_FOO options, or if you're a portupgrade(1) user, you can populate the MAKE_ARGS array in /usr/local/etc/pkgtools.conf. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --cmJC7u66zC7hs+87 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFACQQNdtESqEQa7a0RAk0kAKCBcF8pGXTdwJVV8cNrrhzkCmAB+QCeLoa/ III32BXvCeOi4quqaUsymS0= =u8u5 -----END PGP SIGNATURE----- --cmJC7u66zC7hs+87--