Date: Mon, 24 Dec 2012 13:25:33 +0000 (UTC) From: Niclas Zeising <zeising@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r309459 - head/devel/gccmakedep Message-ID: <201212241325.qBODPXhN013126@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: zeising Date: Mon Dec 24 13:25:33 2012 New Revision: 309459 URL: http://svnweb.freebsd.org/changeset/ports/309459 Log: Attempt to fix build when clang is used. Add depenency on ucpp and use that as cpp when clang is cc. [1] While here, trim makefile headers. [2] Submitted by: kevlo [1], zeising [2] Approved by: kwm, miwi (mentors, implicit) Modified: head/devel/gccmakedep/Makefile Modified: head/devel/gccmakedep/Makefile ============================================================================== --- head/devel/gccmakedep/Makefile Mon Dec 24 13:01:09 2012 (r309458) +++ head/devel/gccmakedep/Makefile Mon Dec 24 13:25:33 2012 (r309459) @@ -1,9 +1,5 @@ -# New ports collection makefile for: gccmakedep -# Date created: Nov 18 2006 -# Whom: Dave Grochowski -# +# Created by: Dave Grochowski # $FreeBSD$ -# PORTNAME= gccmakedep PORTVERSION= 1.0.2 @@ -18,4 +14,12 @@ MAN1= gccmakedep.1 PLIST_FILES= bin/gccmakedep -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if defined(CC) && ${CC:T:M*clang*} == "clang" || ${OSVERSION} >= 1000024 +BUILD_DEPENDS+= ucpp:${PORTSDIR}/devel/ucpp +RUN_DEPENDS+= ucpp:${PORTSDIR}/devel/ucpp +CONFIGURE_ENV+= ac_cv_path_RAWCPP="ucpp -s" +.endif + +.include <bsd.port.post.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212241325.qBODPXhN013126>