aboutsummaryrefslogtreecommitdiffstats
path: root/lang/clang-devel
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2010-12-10 23:09:00 +0800
committerbrooks <brooks@FreeBSD.org>2010-12-10 23:09:00 +0800
commitad9c863648a8b22df64034e5bc8c7bb50f146f3a (patch)
tree22ab3ee8c34bea636337608bdb275df84f4d9837 /lang/clang-devel
parentc0c7550a7ce349b3d876ce2175db6a2098441a75 (diff)
downloadfreebsd-ports-gnome-ad9c863648a8b22df64034e5bc8c7bb50f146f3a.tar.gz
freebsd-ports-gnome-ad9c863648a8b22df64034e5bc8c7bb50f146f3a.tar.zst
freebsd-ports-gnome-ad9c863648a8b22df64034e5bc8c7bb50f146f3a.zip
Rather than relying on some hackish patches use thre --disable-docs
configure option in the NOPORTDOCS case. This should result in no changes to packages.
Diffstat (limited to 'lang/clang-devel')
-rw-r--r--lang/clang-devel/Makefile6
-rw-r--r--lang/clang-devel/files/patch-Makefile14
-rw-r--r--lang/clang-devel/files/patch-tools_clang_Makefile14
3 files changed, 1 insertions, 33 deletions
diff --git a/lang/clang-devel/Makefile b/lang/clang-devel/Makefile
index 714ad322cfdd..0439f2c2a440 100644
--- a/lang/clang-devel/Makefile
+++ b/lang/clang-devel/Makefile
@@ -58,9 +58,7 @@ CONFIGURE_ARGS+= --enable-optimized
.endif
.if defined(NOPORTDOCS)
-DOCSRCDIR=
-.else
-DOCSRCDIR= docs
+CONFIGURE_ARGS+= --disable-docs
.endif
MAN1= clang.1
@@ -97,8 +95,6 @@ post-patch:
${WRKSRC}/Makefile.config.in
${REINPLACE_CMD} -e 's|\(PROJ_mandir.*:=\).*$$|\1${MANPREFIX}/man|g' \
${WRKSRC}/Makefile.config.in
- ${REINPLACE_CMD} -e 's|%%DOCSRCDIR%%|${DOCSRCDIR}|' \
- ${WRKSRC}/Makefile ${WRKSRC}/tools/clang/Makefile
${REINPLACE_CMD} -e 's|/usr/bin/env perl|${PERL}|' \
-e 's|%%DATADIR%%|${DATADIR}|' \
${WRKSRC}/tools/clang/tools/scan-build/ccc-analyzer \
diff --git a/lang/clang-devel/files/patch-Makefile b/lang/clang-devel/files/patch-Makefile
deleted file mode 100644
index d056dceae2e2..000000000000
--- a/lang/clang-devel/files/patch-Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-
-$FreeBSD$
-
---- Makefile.orig
-+++ Makefile
-@@ -31,7 +31,7 @@
- OPTIONAL_DIRS :=
- else
- DIRS := lib/Support utils lib/VMCore lib tools/llvm-shlib \
-- tools/llvm-config tools runtime docs unittests
-+ tools/llvm-config tools runtime %%DOCSRCDIR%% unittests
- OPTIONAL_DIRS := projects bindings
- endif
-
diff --git a/lang/clang-devel/files/patch-tools_clang_Makefile b/lang/clang-devel/files/patch-tools_clang_Makefile
deleted file mode 100644
index 331b1a29c15e..000000000000
--- a/lang/clang-devel/files/patch-tools_clang_Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-
-$FreeBSD$
-
---- tools/clang/Makefile.orig
-+++ tools/clang/Makefile
-@@ -14,7 +14,7 @@
-
- IS_TOP_LEVEL := 1
- CLANG_LEVEL := .
--DIRS := include lib tools runtime docs
-+DIRS := include lib tools runtime %%DOCSRCDIR%%
-
- PARALLEL_DIRS :=
-