diff options
author | dinoex <dinoex@FreeBSD.org> | 2011-12-03 00:20:10 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2011-12-03 00:20:10 +0800 |
commit | 48c1126312ec516fb8149da42dd0cacb3f362c96 (patch) | |
tree | ec6803739122f5fa3326655146f53aaffa983a76 /x11 | |
parent | ca83fa57f796d45b7a1f0eca1ead7b3d67b2d6e8 (diff) | |
download | freebsd-ports-gnome-48c1126312ec516fb8149da42dd0cacb3f362c96.tar.gz freebsd-ports-gnome-48c1126312ec516fb8149da42dd0cacb3f362c96.tar.zst freebsd-ports-gnome-48c1126312ec516fb8149da42dd0cacb3f362c96.zip |
- let imake use ucpp instead of clang to generates its Makefile
depenency on ucpp was not added,
neither configure modify this file, nor it is used in this port.
imake has now an explicit dependency on ucpp when build with clang.
Approved by: eadler
Feature safe: yes
Diffstat (limited to 'x11')
-rw-r--r-- | x11/xorg-cf-files/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/x11/xorg-cf-files/Makefile b/x11/xorg-cf-files/Makefile index deec23b39247..a126070ddd6a 100644 --- a/x11/xorg-cf-files/Makefile +++ b/x11/xorg-cf-files/Makefile @@ -16,8 +16,14 @@ LICENSE= MIT XORG_CAT= util +.include <bsd.port.pre.mk> + post-patch: @${REINPLACE_CMD} 's|\(define ExtraXaw[^ ]*\) [$$].*|\1 /**/|' \ ${WRKSRC}/X11.tmpl +.if defined(CC) && ${CC} == "clang" + ${REINPLACE_CMD} -e 's|/usr/bin/cpp|${LOCALBASE}/bin/ucpp|' \ + -e 's|-traditional|-s|' ${WRKSRC}/FreeBSD.cf +.endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |