Check for clang correctly

This commit is contained in:
Eitan Adler 2012-01-16 16:45:00 +00:00
parent 5ea23d797f
commit 6d0c20c401
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=289337

View File

@ -21,7 +21,7 @@ XORG_CAT= util
post-patch: post-patch:
@${REINPLACE_CMD} 's|\(define ExtraXaw[^ ]*\) [$$].*|\1 /**/|' \ @${REINPLACE_CMD} 's|\(define ExtraXaw[^ ]*\) [$$].*|\1 /**/|' \
${WRKSRC}/X11.tmpl ${WRKSRC}/X11.tmpl
.if defined(CC) && ${CC} == "clang" .if defined(CC) && ${CC:T:M*clang*} == "clang"
${REINPLACE_CMD} -e 's|/usr/bin/cpp|${LOCALBASE}/bin/ucpp|' \ ${REINPLACE_CMD} -e 's|/usr/bin/cpp|${LOCALBASE}/bin/ucpp|' \
-e 's|-traditional|-s|' ${WRKSRC}/FreeBSD.cf -e 's|-traditional|-s|' ${WRKSRC}/FreeBSD.cf
.endif .endif