summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2012-01-20 21:29:57 +0000
committerBrooks Davis <brooks@FreeBSD.org>2012-01-20 21:29:57 +0000
commitb9e7659ec8ffa276fd47b86d2d2074a46f06f65b (patch)
tree4f9362eb1c7d7ad04cae7b6a4ac5f70f6ac3101d /lang
parentThis a port of the nss_ldap libraries for linux. (diff)
Upgrade LLVM and Clang to 3.0.
Enable shared libraries in LLVM and build with REQUIRES_RTTI=1 as requires by some consumers. PR: ports/164324, ports/164325
Notes
Notes: svn path=/head/; revision=289548
Diffstat (limited to 'lang')
-rw-r--r--lang/clang/Makefile32
-rw-r--r--lang/clang/distinfo8
-rw-r--r--lang/clang/pkg-plist87
3 files changed, 91 insertions, 36 deletions
diff --git a/lang/clang/Makefile b/lang/clang/Makefile
index 7bde1b72a43d..302be2fc332c 100644
--- a/lang/clang/Makefile
+++ b/lang/clang/Makefile
@@ -6,10 +6,9 @@
#
PORTNAME= clang
-PORTVERSION= 2.9
+PORTVERSION= 3.0
CATEGORIES= lang devel
MASTER_SITES= http://llvm.org/releases/${PORTVERSION}/
-EXTRACT_SUFX= .tgz
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
${LLVM_SOURCE}
EXTRACT_ONLY= ${LLVM_SOURCE}
@@ -24,7 +23,7 @@ CLANG_SOURCE= ${CLANG_NAME}${EXTRACT_SUFX}
LLVM_NAME= llvm-${PORTVERSION}
LLVM_SOURCE= ${LLVM_NAME}${EXTRACT_SUFX}
-WRKSRC= ${WRKDIR}/${LLVM_NAME}
+WRKSRC= ${WRKDIR}/${LLVM_NAME}.src
BUILD_WRKSRC= ${WRKSRC}/tools/clang
INSTALL_WRKSRC= ${WRKSRC}/tools/clang
@@ -45,10 +44,13 @@ USE_PERL5= yes
USE_PYTHON= yes
MAKE_JOBS_SAFE= yes
-MAKE_ARGS= LLVMIncDir=${LOCALBASE}/include \
+MAKE_ARGS= CLANG_TBLGEN=${WRKSRC}/Release/bin/clang-tblgen \
+ LLVMIncDir=${LOCALBASE}/include \
LLVMToolDir=${LOCALBASE}/bin \
LLVMLibDir=${LOCALBASE}/lib
+CONFIGURE_ARGS+= --enable-shared
+
.if defined(MAINTAINER_MODE)
CONFIGURE_ARGS+= --with-f2c=${LOCALBASE}
.else
@@ -59,6 +61,8 @@ CONFIGURE_ARGS+= --enable-optimized
CONFIGURE_ARGS+= --disable-docs
.endif
+PLIST_SUB+= PORTVERSION=${PORTVERSION}
+
MAN1= clang.1
.include <bsd.port.pre.mk>
@@ -70,7 +74,7 @@ BROKEN= Does not compile on sparc64
post-extract:
cd ${WRKSRC}/tools && \
tar xf ${DISTDIR}/${CLANG_SOURCE} && \
- ${MV} ${CLANG_NAME} clang
+ ${MV} ${CLANG_NAME}.src clang
post-patch:
${REINPLACE_CMD} -e 's|\(PROJ_docsdir.*:=\).*$$|\1${DOCSDIR}|g' \
@@ -86,8 +90,17 @@ post-patch:
${WRKSRC}/tools/clang/tools/scan-view/scan-view
pre-build:
- ${LN} -sf ${LOCALBASE}/include/llvm/Intrinsics.gen ${WRKSRC}/include/llvm/
- cd ${WRKSRC}/utils/unittest && ${GMAKE}
+ ${LN} -sf ${LOCALBASE}/include/llvm/Intrinsics.gen \
+ ${WRKSRC}/include/llvm/
+ ${MKDIR} ${WRKSRC}/Release/lib
+ ${LN} -sf ${LOCALBASE}/lib/libLLVM-${PORTVERSION}.so \
+ ${WRKSRC}/Release/lib/
+ ${LN} -sf ${LOCALBASE}/lib/libLLVMTableGen.a \
+ ${WRKSRC}/Release/lib/
+ ${LN} -sf ${LOCALBASE}/lib/libLLVMSupport.a \
+ ${WRKSRC}/Release/lib/
+ cd ${WRKSRC}/utils/unittest/UnitTestMain && ${GMAKE}
+ cd ${WRKSRC}/utils/unittest/googletest && ${GMAKE}
.if defined(NOPORTDOCS)
post-build:
@@ -129,6 +142,8 @@ PLIST_FILE_LIST= bin/ccc-analyzer \
bin/c++-analyzer \
bin/clang \
bin/clang++ \
+ bin/clang-tblgen \
+ bin/c-index-test \
bin/scan-build \
bin/scan-view \
lib/libclang*
@@ -145,7 +160,7 @@ build-plist:
${RM} -f ${PLIST}
cd ${PREFIX} && \
(ls ${PLIST_FILE_LIST}; ${FIND} ${PLIST_DIR_LIST} -type f) | \
- ${SORT} >> ${PLIST}
+ ${SED} -e 's|${PORTVERSION}|%%PORTVERSION%%|' | ${SORT} >> ${PLIST}
${FIND} ${DATADIR} ${DOCSDIR} -type f | \
${SED} -e 's|${DATADIR}|%%DATADIR%%|' \
-e 's|${DOCSDIR}|%%PORTDOCS%%%%DOCSDIR%%|' | ${SORT} >> ${PLIST}
@@ -154,6 +169,7 @@ build-plist:
${SED} -e 's|^|%%PYTHON_SITELIBDIR%%/|' >> ${PLIST}
cd ${PREFIX} && \
${FIND} ${PLIST_DIR_LIST} -type d | \
+ ${SED} -e 's|${PORTVERSION}|%%PORTVERSION%%|' | \
${SORT} -r | ${SED} -e 's|^|@dirrm |' >> ${PLIST}
cd ${PYTHONPREFIX_SITELIBDIR} && \
${FIND} ${PLIST_PYDIR_LIST} -type d | ${SORT} -r | \
diff --git a/lang/clang/distinfo b/lang/clang/distinfo
index 2702663a0017..1a058a452db6 100644
--- a/lang/clang/distinfo
+++ b/lang/clang/distinfo
@@ -1,4 +1,4 @@
-SHA256 (clang-2.9.tgz) = 70c41f3f782a71cbaa7bc8d6ea29fce4263ad3e8558dfecc6dc11cdef17909df
-SIZE (clang-2.9.tgz) = 6243772
-SHA256 (llvm-2.9.tgz) = 661236cfa17428b48cfa9cbb9909f7569c64b8ecd219fd91dbc00e3b557b3779
-SIZE (llvm-2.9.tgz) = 9574781
+SHA256 (clang-3.0.tar.gz) = b64e72da356d7c3428cfd7ac620d49ec042c84eaee13c26024879f555f4e126d
+SIZE (clang-3.0.tar.gz) = 7240578
+SHA256 (llvm-3.0.tar.gz) = 519eb11d3499ce99c6ffdb8718651fc91425ed7690eac91c8d6853474f7c0477
+SIZE (llvm-3.0.tar.gz) = 10350539
diff --git a/lang/clang/pkg-plist b/lang/clang/pkg-plist
index 2af2781663cc..e8de5def3ee8 100644
--- a/lang/clang/pkg-plist
+++ b/lang/clang/pkg-plist
@@ -1,10 +1,15 @@
bin/c++-analyzer
+bin/c-index-test
bin/ccc-analyzer
bin/clang
bin/clang++
+bin/clang-tblgen
bin/scan-build
bin/scan-view
include/clang-c/Index.h
+include/clang/ARCMigrate/ARCMT.h
+include/clang/ARCMigrate/ARCMTActions.h
+include/clang/ARCMigrate/FileRemapper.h
include/clang/AST/APValue.h
include/clang/AST/AST.h
include/clang/AST/ASTConsumer.h
@@ -16,6 +21,7 @@ include/clang/AST/ASTVector.h
include/clang/AST/Attr.h
include/clang/AST/AttrImpl.inc
include/clang/AST/Attrs.inc
+include/clang/AST/BaseSubobject.h
include/clang/AST/CXXInheritance.h
include/clang/AST/CanonicalType.h
include/clang/AST/CharUnits.h
@@ -37,6 +43,7 @@ include/clang/AST/Expr.h
include/clang/AST/ExprCXX.h
include/clang/AST/ExprObjC.h
include/clang/AST/ExternalASTSource.h
+include/clang/AST/GlobalDecl.h
include/clang/AST/Mangle.h
include/clang/AST/NestedNameSpecifier.h
include/clang/AST/OperationKinds.h
@@ -45,6 +52,7 @@ include/clang/AST/PrettyPrinter.h
include/clang/AST/RecordLayout.h
include/clang/AST/RecursiveASTVisitor.h
include/clang/AST/Redeclarable.h
+include/clang/AST/SelectorLocationsKind.h
include/clang/AST/Stmt.h
include/clang/AST/StmtCXX.h
include/clang/AST/StmtGraphTraits.h
@@ -63,13 +71,15 @@ include/clang/AST/TypeOrdering.h
include/clang/AST/TypeVisitor.h
include/clang/AST/UnresolvedSet.h
include/clang/AST/UsuallyTinyPtrVector.h
+include/clang/AST/VTTBuilder.h
+include/clang/AST/VTableBuilder.h
include/clang/Analysis/Analyses/CFGReachabilityAnalysis.h
include/clang/Analysis/Analyses/FormatString.h
include/clang/Analysis/Analyses/LiveVariables.h
include/clang/Analysis/Analyses/PseudoConstantAnalysis.h
include/clang/Analysis/Analyses/ReachableCode.h
+include/clang/Analysis/Analyses/ThreadSafety.h
include/clang/Analysis/Analyses/UninitializedValues.h
-include/clang/Analysis/Analyses/UninitializedValuesV2.h
include/clang/Analysis/AnalysisContext.h
include/clang/Analysis/AnalysisDiagnostic.h
include/clang/Analysis/CFG.h
@@ -85,33 +95,43 @@ include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h
include/clang/Analysis/Visitors/CFGRecStmtVisitor.h
include/clang/Analysis/Visitors/CFGStmtVisitor.h
include/clang/Basic/ABI.h
+include/clang/Basic/AddressSpaces.h
include/clang/Basic/AttrKinds.h
include/clang/Basic/AttrList.inc
include/clang/Basic/Builtins.def
include/clang/Basic/Builtins.h
include/clang/Basic/BuiltinsARM.def
include/clang/Basic/BuiltinsPPC.def
+include/clang/Basic/BuiltinsPTX.def
include/clang/Basic/BuiltinsX86.def
include/clang/Basic/ConvertUTF.h
+include/clang/Basic/DelayedCleanupPool.h
include/clang/Basic/Diagnostic.h
include/clang/Basic/DiagnosticASTKinds.inc
include/clang/Basic/DiagnosticAnalysisKinds.inc
+include/clang/Basic/DiagnosticCategories.h
include/clang/Basic/DiagnosticCommonKinds.inc
include/clang/Basic/DiagnosticDriverKinds.inc
include/clang/Basic/DiagnosticFrontendKinds.inc
include/clang/Basic/DiagnosticGroups.inc
include/clang/Basic/DiagnosticIDs.h
+include/clang/Basic/DiagnosticIndexName.inc
include/clang/Basic/DiagnosticLexKinds.inc
include/clang/Basic/DiagnosticParseKinds.inc
include/clang/Basic/DiagnosticSemaKinds.inc
+include/clang/Basic/ExceptionSpecificationType.h
+include/clang/Basic/ExpressionTraits.h
include/clang/Basic/FileManager.h
include/clang/Basic/FileSystemOptions.h
include/clang/Basic/FileSystemStatCache.h
include/clang/Basic/IdentifierTable.h
+include/clang/Basic/LLVM.h
+include/clang/Basic/LangOptions.def
include/clang/Basic/LangOptions.h
include/clang/Basic/Linkage.h
include/clang/Basic/MacroBuilder.h
include/clang/Basic/OnDiskHashTable.h
+include/clang/Basic/OpenCL.h
include/clang/Basic/OpenCLExtensions.def
include/clang/Basic/OperatorKinds.def
include/clang/Basic/OperatorKinds.h
@@ -130,6 +150,7 @@ include/clang/Basic/TokenKinds.h
include/clang/Basic/TypeTraits.h
include/clang/Basic/Version.h
include/clang/Basic/Version.inc
+include/clang/Basic/VersionTuple.h
include/clang/Basic/Visibility.h
include/clang/Basic/arm_neon.inc
include/clang/CodeGen/BackendUtil.h
@@ -147,6 +168,7 @@ include/clang/Driver/Driver.h
include/clang/Driver/DriverDiagnostic.h
include/clang/Driver/HostInfo.h
include/clang/Driver/Job.h
+include/clang/Driver/ObjCRuntime.h
include/clang/Driver/OptSpecifier.h
include/clang/Driver/OptTable.h
include/clang/Driver/Option.h
@@ -162,7 +184,7 @@ include/clang/Frontend/ASTConsumers.h
include/clang/Frontend/ASTUnit.h
include/clang/Frontend/Analyses.def
include/clang/Frontend/AnalyzerOptions.h
-include/clang/Frontend/ChainedDiagnosticClient.h
+include/clang/Frontend/ChainedDiagnosticConsumer.h
include/clang/Frontend/CodeGenOptions.h
include/clang/Frontend/CommandLineSourceLoc.h
include/clang/Frontend/CompilerInstance.h
@@ -177,13 +199,14 @@ include/clang/Frontend/FrontendPluginRegistry.h
include/clang/Frontend/HeaderSearchOptions.h
include/clang/Frontend/LangStandard.h
include/clang/Frontend/LangStandards.def
+include/clang/Frontend/LogDiagnosticPrinter.h
include/clang/Frontend/MultiplexConsumer.h
include/clang/Frontend/PreprocessorOptions.h
include/clang/Frontend/PreprocessorOutputOptions.h
include/clang/Frontend/TextDiagnosticBuffer.h
include/clang/Frontend/TextDiagnosticPrinter.h
include/clang/Frontend/Utils.h
-include/clang/Frontend/VerifyDiagnosticsClient.h
+include/clang/Frontend/VerifyDiagnosticConsumer.h
include/clang/FrontendTool/Utils.h
include/clang/Index/ASTLocation.h
include/clang/Index/Analyzer.h
@@ -208,6 +231,7 @@ include/clang/Lex/LexDiagnostic.h
include/clang/Lex/Lexer.h
include/clang/Lex/LiteralSupport.h
include/clang/Lex/MacroInfo.h
+include/clang/Lex/ModuleLoader.h
include/clang/Lex/MultipleIncludeOpt.h
include/clang/Lex/PPCallbacks.h
include/clang/Lex/PTHLexer.h
@@ -220,6 +244,7 @@ include/clang/Lex/ScratchBuffer.h
include/clang/Lex/Token.h
include/clang/Lex/TokenConcatenation.h
include/clang/Lex/TokenLexer.h
+include/clang/Parse/AttrLateParsed.inc
include/clang/Parse/ParseAST.h
include/clang/Parse/ParseDiagnostic.h
include/clang/Parse/Parser.h
@@ -242,7 +267,9 @@ include/clang/Sema/Designator.h
include/clang/Sema/ExternalSemaSource.h
include/clang/Sema/IdentifierResolver.h
include/clang/Sema/Initialization.h
+include/clang/Sema/LocInfoType.h
include/clang/Sema/Lookup.h
+include/clang/Sema/MultiInitializer.h
include/clang/Sema/ObjCMethodList.h
include/clang/Sema/Overload.h
include/clang/Sema/Ownership.h
@@ -253,25 +280,34 @@ include/clang/Sema/ScopeInfo.h
include/clang/Sema/Sema.h
include/clang/Sema/SemaConsumer.h
include/clang/Sema/SemaDiagnostic.h
+include/clang/Sema/SemaFixItUtils.h
include/clang/Sema/SemaInternal.h
include/clang/Sema/Template.h
include/clang/Sema/TemplateDeduction.h
+include/clang/Sema/TypoCorrection.h
+include/clang/Sema/Weak.h
include/clang/Serialization/ASTBitCodes.h
include/clang/Serialization/ASTDeserializationListener.h
include/clang/Serialization/ASTReader.h
-include/clang/Serialization/ASTSerializationListener.h
include/clang/Serialization/ASTWriter.h
include/clang/Serialization/AttrPCHRead.inc
include/clang/Serialization/AttrPCHWrite.inc
+include/clang/Serialization/ChainedIncludesSource.h
+include/clang/Serialization/ContinuousRangeMap.h
+include/clang/Serialization/Module.h
+include/clang/Serialization/ModuleManager.h
+include/clang/StaticAnalyzer/Checkers/ClangCheckers.h
include/clang/StaticAnalyzer/Checkers/DereferenceChecker.h
include/clang/StaticAnalyzer/Checkers/LocalCheckers.h
include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
+include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h
include/clang/StaticAnalyzer/Core/BugReporter/BugType.h
include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h
include/clang/StaticAnalyzer/Core/Checker.h
include/clang/StaticAnalyzer/Core/CheckerManager.h
-include/clang/StaticAnalyzer/Core/CheckerProvider.h
-include/clang/StaticAnalyzer/Core/PathDiagnosticClients.h
+include/clang/StaticAnalyzer/Core/CheckerOptInfo.h
+include/clang/StaticAnalyzer/Core/CheckerRegistry.h
+include/clang/StaticAnalyzer/Core/PathDiagnosticConsumers.h
include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h
include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h
include/clang/StaticAnalyzer/Core/PathSensitive/BlockCounter.h
@@ -283,33 +319,35 @@ include/clang/StaticAnalyzer/Core/PathSensitive/Environment.h
include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h
include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h
include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngineBuilders.h
-include/clang/StaticAnalyzer/Core/PathSensitive/GRState.h
-include/clang/StaticAnalyzer/Core/PathSensitive/GRStateTrait.h
include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
include/clang/StaticAnalyzer/Core/PathSensitive/ObjCMessage.h
+include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h
+include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h
include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h
include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
include/clang/StaticAnalyzer/Core/PathSensitive/Store.h
+include/clang/StaticAnalyzer/Core/PathSensitive/StoreRef.h
include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h
include/clang/StaticAnalyzer/Core/PathSensitive/SummaryManager.h
include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h
-include/clang/StaticAnalyzer/Core/PathSensitive/TransferFuncs.h
include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h
include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h
include/clang/StaticAnalyzer/Frontend/FrontendActions.h
-lib/clang/2.9/include/arm_neon.h
-lib/clang/2.9/include/emmintrin.h
-lib/clang/2.9/include/immintrin.h
-lib/clang/2.9/include/mm_malloc.h
-lib/clang/2.9/include/mmintrin.h
-lib/clang/2.9/include/nmmintrin.h
-lib/clang/2.9/include/pmmintrin.h
-lib/clang/2.9/include/smmintrin.h
-lib/clang/2.9/include/tmmintrin.h
-lib/clang/2.9/include/wmmintrin.h
-lib/clang/2.9/include/xmmintrin.h
+lib/clang/%%PORTVERSION%%/include/arm_neon.h
+lib/clang/%%PORTVERSION%%/include/emmintrin.h
+lib/clang/%%PORTVERSION%%/include/immintrin.h
+lib/clang/%%PORTVERSION%%/include/mm3dnow.h
+lib/clang/%%PORTVERSION%%/include/mm_malloc.h
+lib/clang/%%PORTVERSION%%/include/mmintrin.h
+lib/clang/%%PORTVERSION%%/include/nmmintrin.h
+lib/clang/%%PORTVERSION%%/include/pmmintrin.h
+lib/clang/%%PORTVERSION%%/include/smmintrin.h
+lib/clang/%%PORTVERSION%%/include/tmmintrin.h
+lib/clang/%%PORTVERSION%%/include/wmmintrin.h
+lib/clang/%%PORTVERSION%%/include/xmmintrin.h
lib/libclang.a
lib/libclang.so
+lib/libclangARCMigrate.a
lib/libclangAST.a
lib/libclangAnalysis.a
lib/libclangBasic.a
@@ -330,17 +368,17 @@ lib/libclangStaticAnalyzerFrontend.a
%%DATADIR%%/sorttable.js
%%PORTDOCS%%%%DOCSDIR%%/html.tar.gz
%%PORTDOCS%%%%DOCSDIR%%/html/AnalyzerRegions.html
+%%PORTDOCS%%%%DOCSDIR%%/html/AutomaticReferenceCounting.html
%%PORTDOCS%%%%DOCSDIR%%/html/DriverInternals.html
%%PORTDOCS%%%%DOCSDIR%%/html/InternalsManual.html
%%PORTDOCS%%%%DOCSDIR%%/html/LanguageExtensions.html
%%PORTDOCS%%%%DOCSDIR%%/html/PCHInternals.html
%%PORTDOCS%%%%DOCSDIR%%/html/PTHInternals.html
+%%PORTDOCS%%%%DOCSDIR%%/html/ReleaseNotes.html
%%PORTDOCS%%%%DOCSDIR%%/html/UsersManual.html
%%PORTDOCS%%%%DOCSDIR%%/html/clang/clang.html
%%PORTDOCS%%%%DOCSDIR%%/html/clang/manpage.css
%%PORTDOCS%%%%DOCSDIR%%/html/doxygen.css
-%%PORTDOCS%%%%DOCSDIR%%/html/index.html
-%%PORTDOCS%%%%DOCSDIR%%/html/libIndex.html
%%PORTDOCS%%%%DOCSDIR%%/ps/clang.ps
%%PYTHON_SITELIBDIR%%/Reporter.py
%%PYTHON_SITELIBDIR%%/Resources/FileRadar.scpt
@@ -348,8 +386,8 @@ lib/libclangStaticAnalyzerFrontend.a
%%PYTHON_SITELIBDIR%%/Resources/bugcatcher.ico
%%PYTHON_SITELIBDIR%%/ScanView.py
%%PYTHON_SITELIBDIR%%/startfile.py
-@dirrm lib/clang/2.9/include
-@dirrm lib/clang/2.9
+@dirrm lib/clang/%%PORTVERSION%%/include
+@dirrm lib/clang/%%PORTVERSION%%
@dirrm lib/clang
@dirrm include/clang/StaticAnalyzer/Frontend
@dirrm include/clang/StaticAnalyzer/Core/PathSensitive
@@ -375,6 +413,7 @@ lib/libclangStaticAnalyzerFrontend.a
@dirrm include/clang/Analysis/Analyses
@dirrm include/clang/Analysis
@dirrm include/clang/AST
+@dirrm include/clang/ARCMigrate
@dirrm include/clang-c
@dirrm include/clang
@dirrm %%PYTHON_SITELIBDIR%%/Resources