Index: devel/gccmakedep/Makefile =================================================================== --- devel/gccmakedep/Makefile (revision 315238) +++ devel/gccmakedep/Makefile (working copy) @@ -16,16 +16,13 @@ .include -.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" - -post-build: - ${REINPLACE_CMD} -e 's|^CC= *|CC=|' \ - -e 's|^RM= *|RM=|' \ - -e 's|^LN= *|LN=|' \ - -e 's|^MV= *|MV=|' ${WRKSRC}/gccmakedep +# Attempt to force use of GNU cpp, if it is installed as /usr/bin/gcpp. +.if (${OSVERSION} >= 900506 && ${OSVERSION} < 1000000) || \ + ${OSVERSION} >= 1000010 +CONFIGURE_ENV+= ac_cv_path_RAWCPP="gcpp" .endif +post-patch: + @${REINPLACE_CMD} 's/test.*-traditional.*;/true;/' ${WRKSRC}/configure + .include Index: devel/imake/Makefile =================================================================== --- devel/imake/Makefile (revision 315242) +++ devel/imake/Makefile (working copy) @@ -1,8 +1,8 @@ -# Created by: Eric Anholt +# Created by: anholt # $FreeBSD$ PORTNAME= imake -PORTVERSION= 1.0.4 +PORTVERSION= 1.0.5 PORTEPOCH= 1 CATEGORIES= devel @@ -11,13 +11,17 @@ RUN_DEPENDS= gccmakedep:${PORTSDIR}/devel/gccmakedep \ makedepend:${PORTSDIR}/devel/makedepend \ - ${PREFIX}/lib/X11/config/xorg.cf:${PORTSDIR}/x11/xorg-cf-files + ${LOCALBASE}/lib/X11/config/xorg.cf:${PORTSDIR}/x11/xorg-cf-files USE_PERL5= yes XORG_CAT= util USE_XORG= xproto +# clang's cpp destroys whitespace, particularly hard tabs in makefiles, +# which is fatal for imake. +CPPFLAGS+= -DDEFAULT_CC=\\\"gcc\\\" + .ifdef USE_IMAKE .error You have `USE_IMAKE' variable defined either in environment or in make(1) arguments. Please undefine and try again. .endif @@ -34,16 +38,14 @@ post-patch: @${PERL} -pi -e 's,^#!/usr/bin/perl,#!${PERL},' ${WRKSRC}/mkhtmlindex.pl + @${REINPLACE_CMD} 's/test.*-traditional.*;/true;/' ${WRKSRC}/configure .include -.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" - -post-build: - ${REINPLACE_CMD} -e 's|^configdirspec= *|configdirspec=|' ${WRKSRC}/xmkmf +# Attempt to force use of GNU cpp, if it is installed as /usr/bin/gcpp. +.if (${OSVERSION} >= 900506 && ${OSVERSION} < 1000000) || \ + ${OSVERSION} >= 1000010 +CONFIGURE_ENV+= ac_cv_path_RAWCPP="gcpp" .endif .include Index: devel/imake/distinfo =================================================================== --- devel/imake/distinfo (revision 315242) +++ devel/imake/distinfo (working copy) @@ -1,2 +1,2 @@ -SHA256 (xorg/util/imake-1.0.4.tar.bz2) = acb27ff09e3083000441a8d555fbedbf35ecb4ad52d2bd5b8680dce853f146fe -SIZE (xorg/util/imake-1.0.4.tar.bz2) = 140773 +SHA256 (xorg/util/imake-1.0.5.tar.bz2) = 99ce77ce73892d262522ee621032cef2fad2d30a36088b1305a156af4ee21cc1 +SIZE (xorg/util/imake-1.0.5.tar.bz2) = 148503 Index: devel/imake/files/patch-xmkmf.cpp =================================================================== --- devel/imake/files/patch-xmkmf.cpp (revision 315242) +++ devel/imake/files/patch-xmkmf.cpp (working copy) @@ -1,17 +1,6 @@ ---- work/imake-1.0.2/xmkmf.cpp 2004-04-23 18:42:00.000000000 +0000 -+++ xmkmf.cpp 2009-12-14 20:51:01.695597560 +0000 -@@ -53,6 +53,10 @@ - args="-I$topdir/config/cf -DTOPDIR=$topdir -DCURDIR=$curdir" - fi - -+if [ -n "$CPP" -a -z "$IMAKECPP" ];then -+ export IMAKECPP=$CPP -+fi -+ - echo imake $imake_defines $args - case "$do_all" in - yes) -@@ -68,3 +72,12 @@ +--- xmkmf.cpp.orig 2012-03-08 06:47:32.000000000 +0100 ++++ xmkmf.cpp 2013-03-17 22:53:14.000000000 +0100 +@@ -64,3 +64,12 @@ imake $imake_defines $args ;; esac