Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 May 2009 17:40:41 +0200
From:      Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net>
To:        freebsd-questions@freebsd.org
Cc:        Anton Shterenlikht <mexas@bristol.ac.uk>
Subject:   Re: make - reassign variable using if-then ?
Message-ID:  <200905061740.41949.mel.flynn%2Bfbsd.questions@mailing.thruhere.net>
In-Reply-To: <20090506093117.GA64688@mech-cluster238.men.bris.ac.uk>
References:  <20090506083152.GA48658@mech-cluster238.men.bris.ac.uk> <200905061115.07888.mel.flynn%2Bfbsd.questions@mailing.thruhere.net> <20090506093117.GA64688@mech-cluster238.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 06 May 2009 11:31:17 Anton Shterenlikht wrote:

> I'm trying to build gcc43 on alpha 6.4.
> In /usr/ports/lang/gcc43/Makefile I have:
>
> # grep NOT_FOR_ARCHS /usr/ports/lang/gcc43/Makefile
> NOT_FOR_ARCHS=  alpha ia64 powerpc
> #
>
> In /etc/make.conf I have:
>
> .if ${.CURDIR:M*/lang/gcc43*}
> NOT_FOR_ARCHS= ia64
> USE_GCC=4.3+
> .endif
>
> This used to work fine until some update. Not anymore.
> The second setting is being used, i.e. the port is being built
> with gcc43. But the NOT_FOR_ARCHS is not changed, so I have
> to do it manually each time.
>
> So I tried to experiment with changing variable values withing if-then.

Your only option is overriding in /usr/portslang/gcc43/Makefile.local. This is 
because make.conf is read *before* the Makefile and the Makefile simply 
overrides your values. Makefile.local is read *after* the Makefile.
csup will leave it alone, however portsnap will delete the entire directory 
before upgrading the port, so your Makefile.local will be shot.
-- 
Mel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905061740.41949.mel.flynn%2Bfbsd.questions>