aboutsummaryrefslogtreecommitdiffstats
path: root/devel/clang
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2010-02-17 02:27:16 +0800
committerbrooks <brooks@FreeBSD.org>2010-02-17 02:27:16 +0800
commit9d2c9203a0dd86b4806e1692a7980649117afede (patch)
treec0d784e43a59d747f0c875cd895fc7b1a92d0f3c /devel/clang
parentbc5184ba730974b7d921bd89a36147f74762234f (diff)
downloadfreebsd-ports-gnome-9d2c9203a0dd86b4806e1692a7980649117afede.tar.gz
freebsd-ports-gnome-9d2c9203a0dd86b4806e1692a7980649117afede.tar.zst
freebsd-ports-gnome-9d2c9203a0dd86b4806e1692a7980649117afede.zip
Only install compiler headers we don't provide as part of the BSD base.
This should fix some compilation problems and we've been doing it in devel/llvm-devel for ages. Feature safe: yes Reported by: rdivacky
Diffstat (limited to 'devel/clang')
-rw-r--r--devel/clang/Makefile2
-rw-r--r--devel/clang/files/patch-tools_clang_lib_Headers_Makefile14
-rw-r--r--devel/clang/pkg-plist8
3 files changed, 15 insertions, 9 deletions
diff --git a/devel/clang/Makefile b/devel/clang/Makefile
index 00f282ed3f02..a07989493ba3 100644
--- a/devel/clang/Makefile
+++ b/devel/clang/Makefile
@@ -7,7 +7,7 @@
PORTNAME= clang
PORTVERSION= 2.6
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= devel lang
MASTER_SITES= http://llvm.org/releases/${PORTVERSION}/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
diff --git a/devel/clang/files/patch-tools_clang_lib_Headers_Makefile b/devel/clang/files/patch-tools_clang_lib_Headers_Makefile
new file mode 100644
index 000000000000..3495644fd523
--- /dev/null
+++ b/devel/clang/files/patch-tools_clang_lib_Headers_Makefile
@@ -0,0 +1,14 @@
+
+$FreeBSD: /tmp/pcvs/ports/devel/clang/files/Attic/patch-tools_clang_lib_Headers_Makefile,v 1.1 2010-02-16 18:27:16 brooks Exp $
+
+--- tools/clang/lib/Headers/Makefile.orig
++++ tools/clang/lib/Headers/Makefile
+@@ -13,7 +13,7 @@
+ # FIXME: Get version from a common place.
+ HeaderDir := $(PROJ_OBJ_ROOT)/$(BuildMode)/lib/clang/1.0/include
+
+-HEADERS := $(notdir $(wildcard $(PROJ_SRC_DIR)/*.h))
++HEADERS := $(notdir $(wildcard $(PROJ_SRC_DIR)/*mm*.h))
+
+ OBJHEADERS := $(addprefix $(HeaderDir)/, $(HEADERS))
+
diff --git a/devel/clang/pkg-plist b/devel/clang/pkg-plist
index 1387c22cc5fe..20a7a0d350e2 100644
--- a/devel/clang/pkg-plist
+++ b/devel/clang/pkg-plist
@@ -2,17 +2,9 @@ bin/ccc-analyzer
bin/clang
bin/scan-build
lib/clang/1.0/include/emmintrin.h
-lib/clang/1.0/include/float.h
-lib/clang/1.0/include/iso646.h
-lib/clang/1.0/include/limits.h
lib/clang/1.0/include/mm_malloc.h
lib/clang/1.0/include/mmintrin.h
lib/clang/1.0/include/pmmintrin.h
-lib/clang/1.0/include/stdarg.h
-lib/clang/1.0/include/stdbool.h
-lib/clang/1.0/include/stddef.h
-lib/clang/1.0/include/stdint.h
-lib/clang/1.0/include/tgmath.h
lib/clang/1.0/include/tmmintrin.h
lib/clang/1.0/include/xmmintrin.h
libexec/clang-cc