From owner-freebsd-ports@FreeBSD.ORG Thu Aug 10 20:34:14 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6EB8516A4DE for ; Thu, 10 Aug 2006 20:34:14 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 64ECD43D6E for ; Thu, 10 Aug 2006 20:34:04 +0000 (GMT) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 10 Aug 2006 20:34:02 -0000 Received: from p54A7CD74.dip.t-dialin.net (EHLO [192.168.0.12]) [84.167.205.116] by mail.gmx.net (mp039) with SMTP; 10 Aug 2006 22:34:02 +0200 X-Authenticated: #5465401 Message-ID: <44DB982F.8030102@gmx.de> Date: Thu, 10 Aug 2006 22:33:51 +0200 From: "[LoN]Kamikaze" Organization: Lords of Nightmare User-Agent: Thunderbird 1.5.0.5 (X11/20060729) MIME-Version: 1.0 To: Scot Hetzel References: <44DB5692.6040005@gmx.de> <20060810214516.7e0ff056@localhost> <44DB72FC.8010009@gmx.de> <20060810224838.639c57e8@localhost> <44DB87FA.4020505@gmx.de> <20060810234844.107d0871@localhost> <790a9fff0608101328j533ca925k8f147f0c9ce80687@mail.gmail.com> In-Reply-To: <790a9fff0608101328j533ca925k8f147f0c9ce80687@mail.gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: freebsd-ports@freebsd.org Subject: Re: ports without configure do not receive CC X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Aug 2006 20:34:14 -0000 Scot Hetzel wrote: > On 8/10/06, Stanislav Sedov wrote: >> On Thu, 10 Aug 2006 21:24:42 +0200 >> "[LoN]Kamikaze" mentioned: >> > That leads to no end of problems if you have different settings for >> different ports, >> > because a port gets its specific settings and will later override >> them with the >> > settings that are set for all ports. >> >> You can use >> .if ${CURDIR:M*usr/ports/CATEGORY/PORTNAME/*} >> CC=XXX >> .endif >> >> like construction to support this. >> > Or use the sysutils/portconf port, and then place your port specific > variables in the /usr/local/etc/port.conf file, no need to clutter > /etc/make.conf. > > CATEGORY/PORTNAME*: CC=XXX > editors/openoffice*: WITH_TTF_BYTECODE_ENABLED > > Scot Portconf wouldn't work on my system, because the location /usr/ports is hard coded, and that's only a link on my system. I'm using buildflags, because that is a lot more flexible. Anyway, it's a fact that normally a port gets CC from the ports framework. And if a port doesn't have a configure target it will not get it from there. That this doesn't actually have an effect for 'most' people doesn't mean that it is not a problem. I think CC and CXX should generally go into MAKE_ENV.