configuring ports via Makefile.local

Ulrich Spoerlein q at
Tue Jul 27 02:19:24 PDT 2004

On Thu, 22.07.2004 at 23:49:29 +0300, Ion-Mihai Tetcu wrote:
> > >> end of "configuring ports via Makefile.local" from Radim Kolar <<
> > Are you sure that /etc/make.conf isn't more what you're looking for?
> Not sure about what he's looking, but I'm sure I would want this. The
> trouble with make.conf is name-space pollution. I don't what all my
> ports compiled with WITH_DEBUG, for example.

Easy. I use the following snippet in make.conf:

.if ${.CURDIR:M*/usr/ports*}
CFLAGS+=        -O2
MASTER_SORT_REGEX?= ://[^/]*\.de[/.] ://[^/]*\.se[/.] ://[^/]*\.nl[/.] ://[^/]*\.ch[/.] ://[^/]*\.at[/.]
.include "/etc/ports.conf"

And my ports.conf looks like this:

BATCH=          true

.if ${.CURDIR:M*/audio/abcde}
WITH_DAGRAB=    true
WITH_FLAC=      true
WITH_SPEEX=     true

.if ${.CURDIR:M*/graphics/gimp*}
WITH_PYTHON=    true


You get the idea...

Ulrich Spoerlein
PGP Key ID: F0DB9F44				Get it while it's hot!
PGP Fingerprint: F1CE D062 0CA9 ADE3 349B  2FE8 980A C6B5 F0DB 9F44
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."	-- Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-ports mailing list