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

From: Ulrich Spoerlein <spoerlein_at_informatik.uni-wuerzburg.de>
Date: Fri, 8 Jul 2005 11:08:56 +0200
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?

Received on Fri Jul 08 2005 - 07:09:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:38 UTC