summaryrefslogtreecommitdiff
path: root/lang/clang-static-analyzer
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2016-03-10 15:01:52 +0000
committertnn <tnn@pkgsrc.org>2016-03-10 15:01:52 +0000
commit80a9629db9070d8296a7ed683318f857b6af4fbf (patch)
tree90b47c11610c464b8a241db18cb4262181952ebb /lang/clang-static-analyzer
parent2c7f4264bd1ae14e7705895ef0e48ef26d68e96a (diff)
downloadpkgsrc-80a9629db9070d8296a7ed683318f857b6af4fbf.tar.gz
Update to clang-3.8.0. Split out llvm tools to lang/llvm.
Packaged in pkgsrc-wip by myself and Kamil. Remove stale pkgsrc/SunOS bread crumbs that were difficult to merge following the build framework switch. Needs to be redone. (Sorry!) Summary of significant changes in LLVM: - switch build framework from autoconf to CMake - llvm-ar now supports thin archives. - llvm doesn t produce .data.rel.ro.local or .data.rel sections anymore. - opional support for linking clang and the LLVM tools with a single libLLVM shared library pkgsrc note: we have this library in lang/libLLVM, but we don't currently use it. We may do so in the future if/when the API matures. - The optimization to move the prologue and epilogue of functions in colder code path (shrink-wrapping) is now enabled by default - new target-independent gcc-compatible emulated Thread Local Storage mode - various target specific optimizations Summary of significant changes in Clang: - new compiler flags for tuning what DWARF information is included - better strict alignment handling - better support for __builtin_object_size
Diffstat (limited to 'lang/clang-static-analyzer')
-rw-r--r--lang/clang-static-analyzer/Makefile41
-rw-r--r--lang/clang-static-analyzer/PLIST20
2 files changed, 21 insertions, 40 deletions
diff --git a/lang/clang-static-analyzer/Makefile b/lang/clang-static-analyzer/Makefile
index ff931e8e68b..9008962cc0d 100644
--- a/lang/clang-static-analyzer/Makefile
+++ b/lang/clang-static-analyzer/Makefile
@@ -1,38 +1,19 @@
-# $NetBSD: Makefile,v 1.2 2015/12/05 21:25:47 adam Exp $
+# $NetBSD: Makefile,v 1.3 2016/03/10 15:01:52 tnn Exp $
-PKGNAME= ${DISTNAME:S/clang/clang-static-analyzer/}
+PKGNAME= ${DISTNAME:S/cfe/clang-static-analyzer/:S/.src//}
-DEPENDS+= clang>=${PKGVERSION_NOREV}:../../lang/clang
-
-INSTALLATION_DIRS+= bin
-INSTALLATION_DIRS+= libexec
-INSTALLATION_DIRS+= ${PKGMANDIR}/man1
-INSTALLATION_DIRS+= share/llvm/static-analyzer
-INSTALLATION_DIRS+= share/llvm/static-analyzer/Resources
+DEPENDS+= clang-${PKGVERSION_NOREV}{,nb*}:../../lang/clang
USE_TOOLS+= perl:run
-REPLACE_PERL+= tools/clang/tools/scan-build/c++-analyzer
-REPLACE_PERL+= tools/clang/tools/scan-build/ccc-analyzer
-REPLACE_PERL+= tools/clang/tools/scan-build/scan-build
-REPLACE_PYTHON+= tools/clang/tools/scan-view/scan-view
-PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # not yet ported as of 3.5
-.include "../../lang/python/application.mk"
+BUILD_TARGET= clang-check scan-build scan-view
+
+INSTALL_DIRS= ../build/tools/clang-check ../build/tools/scan-build ../build/tools/scan-view
-do-build:
- ${ECHO} '#!/bin/sh' > ${WRKSRC}/scan-view
- ${ECHO} "${PREFIX}/share/llvm/static-analyzer/scan-view "'"$$@"' >> ${WRKSRC}/scan-view
-
-do-install:
- cd ${WRKSRC}/tools/clang/tools/scan-build && \
- ${INSTALL_SCRIPT} scan-build ${DESTDIR}${PREFIX}/bin; \
- ${INSTALL_SCRIPT} c++-analyzer ccc-analyzer ${DESTDIR}${PREFIX}/libexec; \
- ${INSTALL_DATA} scan-build.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1; \
- ${INSTALL_DATA} scanview.css sorttable.js ${DESTDIR}${PREFIX}/share/llvm/static-analyzer
- cd ${WRKSRC}/tools/clang/tools/scan-view && \
- ${INSTALL_DATA} Resources/* ${DESTDIR}${PREFIX}/share/llvm/static-analyzer/Resources; \
- ${INSTALL_SCRIPT} scan-view ${DESTDIR}${PREFIX}/share/llvm/static-analyzer; \
- ${INSTALL_DATA} *.py ${DESTDIR}${PREFIX}/share/llvm/static-analyzer
- ${INSTALL_SCRIPT} ${WRKSRC}/scan-view ${DESTDIR}${PREFIX}/bin
+CMAKE_ARGS+= -DCLANG_ENABLE_STATIC_ANALYZER=ON
+REPLACE_PYTHON= # empty
+PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # not yet ported as of 3.5
+
+.include "../../lang/python/application.mk"
.include "../../lang/clang/Makefile.common"
diff --git a/lang/clang-static-analyzer/PLIST b/lang/clang-static-analyzer/PLIST
index bcd245caf81..35ed2ab4fe4 100644
--- a/lang/clang-static-analyzer/PLIST
+++ b/lang/clang-static-analyzer/PLIST
@@ -1,15 +1,15 @@
-@comment $NetBSD: PLIST,v 1.1 2015/11/06 13:50:05 wiz Exp $
+@comment $NetBSD: PLIST,v 1.2 2016/03/10 15:01:52 tnn Exp $
+bin/clang-check
bin/scan-build
bin/scan-view
libexec/c++-analyzer
libexec/ccc-analyzer
man/man1/scan-build.1
-share/llvm/static-analyzer/Reporter.py
-share/llvm/static-analyzer/Resources/FileRadar.scpt
-share/llvm/static-analyzer/Resources/GetRadarVersion.scpt
-share/llvm/static-analyzer/Resources/bugcatcher.ico
-share/llvm/static-analyzer/ScanView.py
-share/llvm/static-analyzer/scan-view
-share/llvm/static-analyzer/scanview.css
-share/llvm/static-analyzer/sorttable.js
-share/llvm/static-analyzer/startfile.py
+share/scan-build/scanview.css
+share/scan-build/sorttable.js
+share/scan-view/FileRadar.scpt
+share/scan-view/GetRadarVersion.scpt
+share/scan-view/Reporter.py
+share/scan-view/ScanView.py
+share/scan-view/bugcatcher.ico
+share/scan-view/startfile.py