From owner-freebsd-ports@FreeBSD.ORG Sun Nov 25 11:49:27 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 68E27305 for ; Sun, 25 Nov 2012 11:49:27 +0000 (UTC) (envelope-from tobias.rehbein@web.de) Received: from mout.web.de (mout.web.de [212.227.15.4]) by mx1.freebsd.org (Postfix) with ESMTP id EB1C88FC08 for ; Sun, 25 Nov 2012 11:49:26 +0000 (UTC) Received: from oshi.local ([62.227.175.108]) by smtp.web.de (mrweb101) with ESMTPSA (Nemesis) id 0LrarZ-1TG0jy34vd-013kyo; Sun, 25 Nov 2012 12:49:19 +0100 Received: from oshi.local (localhost [127.0.0.1]) by oshi.local (8.14.5/8.14.5) with ESMTP id qAPBnJ4f048759; Sun, 25 Nov 2012 12:49:19 +0100 (CET) (envelope-from tobi@oshi.local) Received: (from tobi@localhost) by oshi.local (8.14.5/8.14.5/Submit) id qAPBnINT048752; Sun, 25 Nov 2012 12:49:18 +0100 (CET) (envelope-from tobi) Date: Sun, 25 Nov 2012 12:49:18 +0100 From: Tobias Rehbein To: freebsd-ports@freebsd.org Subject: How to handle WITH_CLANG_IS_CC in ports Message-ID: <20121125114918.GA35966@oshi.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Provags-ID: V02:K0:w2hq6aAQDsILB7LENfAt/QKq85vH53KXXZcHNp6mpOf 0YK719wIMJp9vwBavZdRgNHp4kudTzAQekC73sxe+ANHoNRoGl ExUcTFe23qQvLSqaib1gS62JVt7v2z0WRLnXDTLiptdRnAT5AH azf/IU9kyKKDyppVp9A9WcKyCGA34GW7x6byBfurLh5Yx5YjzL 9UJv8CVwXmTKXFTQ83IfQ== Cc: Nikolai Lifanov X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Nov 2012 11:49:27 -0000 Hi all, I am the maintainer of ganes/stonesoup. This port builds fine with gcc. It also builds with clang, if the MAKE_ARGS are tweaked. Currently I can check for ${CC:T:M*clang*} to know if I have to change the MAKE_ARGS for building with clang or not. In CURRENT cc is clang and the environment variable CC is no longer set. This lets the build of games/stonesoup fail. My question is how to correctly check if cc is clang or not. My first guess was something along the lines of ${CC:T:M*clang*} || (defined(WITH_CLANG_IS_CC) && ${CC:T:Mcc}) but I guess there is some kind of official way to handle this (ideally warpped in some Mk macro. Regards Tobias