Date: Sat, 17 Jan 2004 09:44:45 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: alexandream@infolink.com.br Cc: freebsd-questions@freebsd.org Subject: Re: Compile Options Message-ID: <20040117094445.GB67751@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20040116234750.E0B4C1A8752@smtp.infolink.com.br> References: <20040116234750.E0B4C1A8752@smtp.infolink.com.br>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040117094445.GB67751>