From owner-freebsd-ports@FreeBSD.ORG Fri Nov 25 09:28:11 2005 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 7190216A420 for ; Fri, 25 Nov 2005 09:28:11 +0000 (GMT) (envelope-from freebsd.nospam@mekanix.dk) Received: from pfepc.post.tele.dk (pfepc.post.tele.dk [195.41.46.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id D005F43D60 for ; Fri, 25 Nov 2005 09:28:08 +0000 (GMT) (envelope-from freebsd.nospam@mekanix.dk) Received: from desktop.home (x1-6-00-50-7f-27-a4-fc.k432.webspeed.dk [83.89.17.231]) by pfepc.post.tele.dk (Postfix) with ESMTP id A063B26288C for ; Fri, 25 Nov 2005 10:28:06 +0100 (CET) From: Bjarne Wichmann Petersen To: freebsd-ports@freebsd.org Date: Fri, 25 Nov 2005 10:28:28 +0100 User-Agent: KMail/1.8.3 References: <200511210625.16973.ringworm01@gmail.com> In-Reply-To: <200511210625.16973.ringworm01@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511251028.29199.freebsd.nospam@mekanix.dk> Subject: Re: FreeBSD ccache port is wonderfiul! 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: Fri, 25 Nov 2005 09:28:11 -0000 On Monday 21 November 2005 15:25, Michael C. Shultz wrote: > ps: I cc'ed freebsd-ports@freebsd.org in case others like myself haven't > heard of this program yet, it may be found in /usr/ports/devel/ccache. I'm looking at it now, and have a small question. Reading the howto-freebsd I'll have to insert the following into etc/make.conf: .if !defined(NOCCACHE) .if ${.CURDIR:M/usr/src*} CC=/usr/local/libexec/ccache/cc CXX=/usr/local/libexec/ccache/c++ .else CC=cc CXX=c++ .endif .else CC=/usr/bin/cc CXX=/usr/bin/c++ .endif I don't know much shell-scripting, so I'm not entirely sure what ${.CURDIR:M/usr/src*} does. But to me it looks like ccache will be called upon only when the current directory is beneath /usr/src; ie. world/kernel-builds. Should I make another if-statement for /usr/ports? Or do I have it all wrong? Bjarne