HEADS UP: Ports are not ready for CFLAGS=-O2 in 6.0

Ulrich Spoerlein spoerlein at informatik.uni-wuerzburg.de
Fri Jul 8 09:09:06 GMT 2005


On Wed, 06.07.2005 at 11:16:15 +0200, Thierry Herbelot wrote:
> > > Whats wrong with
> > >
> > > .if ${.CURDIR:M/usr/ports*}
> > > CFLAGS= -O -pipe -foo
> > > .endif
> > >
> > > in /etc/make.conf?
> >
> > Nothing wrong, but it's too tricky for end users.  Only a small amount
> > of person using FreeBSD knows make(1) enough to do this : this requires
> > to know what is ${.CURDIR} and how to match a variable against a
> > pattern.
> 
> and it does not work if he ports tree is "physically" elsewhere (mine is 
> shared over NFS from /files2/ports -> .CURDIR does not begin 
> with /usr/ports).
> 
> Perhaps a better way would be to use a variable set in bsd.ports.mk 
> (BUILDING_PORT="YES")

Perhaps an even better way would be to have bsd.port.mk include
"/etc/ports.conf". I do this in my own make.conf, when I'm inside the
ports tree (wherever that my be, /usr/ports or ~/ports).

But I guess that is too late in the game to include. This is what I get
right now:

% cd /usr/ports/editors/vim
% make -V .MAKEFILE_LIST|tr ' ' '\n'|grep -v '\.\.'
/usr/share/mk/sys.mk
/etc/make.conf
/etc/ports.conf
/usr/share/mk/bsd.compat.mk
/usr/share/mk/bsd.cpu.mk
Makefile
/usr/share/mk/bsd.port.pre.mk
/usr/share/mk/bsd.port.mk
/usr/share/mk/bsd.own.mk
/usr/ports/Mk/bsd.port.mk
/usr/ports/Mk/bsd.gnome.mk
/usr/share/mk/bsd.port.post.mk
/usr/share/mk/bsd.port.mk
/usr/share/mk/bsd.own.mk
/usr/ports/Mk/bsd.port.mk
/usr/ports/Mk/bsd.autotools.mk
/usr/ports/Mk/bsd.gnome.mk
/usr/ports/Mk/bsd.sites.mk


Ulrich Spoerlein
-- 
 PGP Key ID: F0DB9F44				Encrypted mail welcome!
Fingerprint: F1CE D062 0CA9 ADE3 349B  2FE8 980A C6B5 F0DB 9F44
Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn."
didn't you understand?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20050708/d367477f/attachment.bin


More information about the freebsd-current mailing list