diff options
author | brooks <brooks@FreeBSD.org> | 2012-07-17 06:55:45 +0800 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2012-07-17 06:55:45 +0800 |
commit | 7d24fabbd36515f6ebfdd4b783dbe2422b454bcb (patch) | |
tree | 478ae95a5be566d5100e6179506493ea0ebfdb62 /lang | |
parent | 381aff263e0cef456e50aaf66ace59e7cf9b25b9 (diff) | |
download | freebsd-ports-gnome-7d24fabbd36515f6ebfdd4b783dbe2422b454bcb.tar.gz freebsd-ports-gnome-7d24fabbd36515f6ebfdd4b783dbe2422b454bcb.tar.zst freebsd-ports-gnome-7d24fabbd36515f6ebfdd4b783dbe2422b454bcb.zip |
Update to a 3.2 snapshot. OPTIONSng-ify. Reduce diffs with non-devel
ports.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/clang-devel/Makefile | 39 | ||||
-rw-r--r-- | lang/clang-devel/distinfo | 8 | ||||
-rw-r--r-- | lang/clang-devel/pkg-plist | 72 |
3 files changed, 86 insertions, 33 deletions
diff --git a/lang/clang-devel/Makefile b/lang/clang-devel/Makefile index ca1fb685aa24..f66c361578a2 100644 --- a/lang/clang-devel/Makefile +++ b/lang/clang-devel/Makefile @@ -6,7 +6,7 @@ # PORTNAME= clang -PORTVERSION= 3.1.r${SVN_REV} +PORTVERSION= 3.2.r${SVN_REV} CATEGORIES= lang devel MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= brooks @@ -21,6 +21,7 @@ COMMENT= C, Objective-C, and (alpha-quality) C++ compiler CONFLICTS= clang-[23]* CLANG_NAME= clang-${PORTVERSION} +CLANG_RELEASE= ${PORTVERSION:C/\.r[0-9]*//} CLANG_SOURCE= ${CLANG_NAME}${EXTRACT_SUFX} LLVM_NAME= llvm-${PORTVERSION} LLVM_SOURCE= ${LLVM_NAME}${EXTRACT_SUFX} @@ -47,22 +48,40 @@ USE_PERL5= yes USE_PYTHON= yes MAKE_JOBS_SAFE= yes -MAKE_ARGS= CLANG_TBLGEN=${WRKSRC}/Release+Asserts/bin/clang-tblgen \ +MAKE_ARGS= CLANG_TBLGEN=${WRKSRC}/${RELTYPE}/bin/clang-tblgen \ LLVMIncDir=${LOCALBASE}/include \ LLVMToolDir=${LOCALBASE}/bin \ LLVMLibDir=${LOCALBASE}/lib +OPTIONS_DEFINE= ASSERTS DOCS + +ASSERTS_DESC= Enable assertions (thread unsafe) + +MAN1= clang.1 + +PLIST_SUB+= CLANG_RELEASE=${CLANG_RELEASE} + +.include <bsd.port.options.mk> + .if defined(MAINTAINER_MODE) CONFIGURE_ARGS+= --with-f2c=${LOCALBASE} .else CONFIGURE_ARGS+= --enable-optimized .endif -.if defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} +CONFIGURE_ARGS+= --enable-docs +.else CONFIGURE_ARGS+= --disable-docs .endif -MAN1= clang.1 +.if ${PORT_OPTIONS:MASSERTS} +CONFIGURE_ARGS+= --enable-assertions +RELTYPE= Release+Asserts +.else +CONFIGURE_ARGS+= --disable-assertions +RELTYPE= Release +.endif .include <bsd.port.pre.mk> @@ -106,12 +125,12 @@ post-patch: pre-build: ${LN} -sf ${LOCALBASE}/include/llvm/Intrinsics.gen ${WRKSRC}/include/llvm/ - ${MKDIR} ${WRKSRC}/Release+Asserts/lib - ${LN} -sf ${LOCALBASE}/lib/libLLVMTableGen.a ${WRKSRC}/Release+Asserts/lib/ - ${LN} -sf ${LOCALBASE}/lib/libLLVMSupport.a ${WRKSRC}/Release+Asserts/lib/ + ${MKDIR} ${WRKSRC}/${RELTYPE}/lib + ${LN} -sf ${LOCALBASE}/lib/libLLVMTableGen.a ${WRKSRC}/${RELTYPE}/lib/ + ${LN} -sf ${LOCALBASE}/lib/libLLVMSupport.a ${WRKSRC}/${RELTYPE}/lib/ cd ${WRKSRC}/utils/unittest && ${GMAKE} -.if defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} post-build: @cd ${WRKSRC}/tools/clang/docs/tools && ${GMAKE} clang.1 .endif @@ -131,7 +150,7 @@ post-install: @${MKDIR} ${DATADIR} @${INSTALL_DATA} ${WRKSRC}/tools/clang/tools/scan-build/scanview.css ${DATADIR} @${INSTALL_DATA} ${WRKSRC}/tools/clang/tools/scan-build/sorttable.js ${DATADIR} -.if defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${INSTALL_MAN} ${WRKSRC}/tools/clang/docs/tools/clang.1 \ ${MANPREFIX}/man/man1/ .else @@ -169,6 +188,7 @@ build-plist: ${RM} -f ${PLIST} cd ${PREFIX} && \ (ls ${PLIST_FILE_LIST}; ${FIND} ${PLIST_DIR_LIST} -type f) | \ + ${SED} -e 's|${CLANG_RELEASE}|%%CLANG_RELEASE%%|' | \ ${SORT} >> ${PLIST} ${FIND} ${DATADIR} ${DOCSDIR} -type f | \ ${SED} -e 's|${DATADIR}|%%DATADIR%%|' \ @@ -178,6 +198,7 @@ build-plist: ${SED} -e 's|^|%%PYTHON_SITELIBDIR%%/|' >> ${PLIST} cd ${PREFIX} && \ ${FIND} ${PLIST_DIR_LIST} -type d | \ + ${SED} -e 's|${CLANG_RELEASE}|%%CLANG_RELEASE%%|' | \ ${SORT} -r | ${SED} -e 's|^|@dirrm |' >> ${PLIST} cd ${PYTHONPREFIX_SITELIBDIR} && \ ${FIND} ${PLIST_PYDIR_LIST} -type d | ${SORT} -r | \ diff --git a/lang/clang-devel/distinfo b/lang/clang-devel/distinfo index 19ae6a93454b..f4e65a4f516c 100644 --- a/lang/clang-devel/distinfo +++ b/lang/clang-devel/distinfo @@ -1,4 +1,4 @@ -SHA256 (clang-3.1.r154687.tar.bz2) = 02edca20dc4885da5a43b41054b0eee30fab7cb6da74be14e7f17d14a1df175b -SIZE (clang-3.1.r154687.tar.bz2) = 6651541 -SHA256 (llvm-3.1.r154687.tar.bz2) = d63d8bb08c85076d3b7398b062370b3617eb25c24e4a275c1ada7d634b30dc24 -SIZE (llvm-3.1.r154687.tar.bz2) = 8631665 +SHA256 (clang-3.2.r160283.tar.bz2) = 953054836d50c2621e8e3268f8348c787e1b4f37377cb7808cd985e5e1be09dd +SIZE (clang-3.2.r160283.tar.bz2) = 7027147 +SHA256 (llvm-3.2.r160283.tar.bz2) = 3dfae804e7765bfacfb4347ada59e174fa9f4a272ee86b17ae6882e5f3e56ca7 +SIZE (llvm-3.2.r160283.tar.bz2) = 8961712 diff --git a/lang/clang-devel/pkg-plist b/lang/clang-devel/pkg-plist index fbc8b8ba7112..2783655c031e 100644 --- a/lang/clang-devel/pkg-plist +++ b/lang/clang-devel/pkg-plist @@ -6,7 +6,10 @@ bin/clang++ bin/clang-tblgen bin/scan-build bin/scan-view +include/clang-c/CXCompilationDatabase.h +include/clang-c/CXString.h include/clang-c/Index.h +include/clang-c/Platform.h include/clang/ARCMigrate/ARCMT.h include/clang/ARCMigrate/ARCMTActions.h include/clang/ARCMigrate/FileRemapper.h @@ -26,6 +29,14 @@ include/clang/AST/BuiltinTypes.def include/clang/AST/CXXInheritance.h include/clang/AST/CanonicalType.h include/clang/AST/CharUnits.h +include/clang/AST/Comment.h +include/clang/AST/CommentBriefParser.h +include/clang/AST/CommentDiagnostic.h +include/clang/AST/CommentLexer.h +include/clang/AST/CommentNodes.inc +include/clang/AST/CommentParser.h +include/clang/AST/CommentSema.h +include/clang/AST/CommentVisitor.h include/clang/AST/Decl.h include/clang/AST/DeclAccessPair.h include/clang/AST/DeclBase.h @@ -53,6 +64,7 @@ include/clang/AST/NestedNameSpecifier.h include/clang/AST/OperationKinds.h include/clang/AST/ParentMap.h include/clang/AST/PrettyPrinter.h +include/clang/AST/RawCommentList.h include/clang/AST/RecordLayout.h include/clang/AST/RecursiveASTVisitor.h include/clang/AST/Redeclarable.h @@ -76,6 +88,11 @@ include/clang/AST/TypeVisitor.h include/clang/AST/UnresolvedSet.h include/clang/AST/VTTBuilder.h include/clang/AST/VTableBuilder.h +include/clang/ASTMatchers/ASTMatchFinder.h +include/clang/ASTMatchers/ASTMatchers.h +include/clang/ASTMatchers/ASTMatchersInternal.h +include/clang/ASTMatchers/ASTMatchersMacros.h +include/clang/ASTMatchers/RefactoringCallbacks.h include/clang/Analysis/Analyses/CFGReachabilityAnalysis.h include/clang/Analysis/Analyses/Dominators.h include/clang/Analysis/Analyses/FormatString.h @@ -108,15 +125,16 @@ include/clang/Basic/Builtins.def include/clang/Basic/Builtins.h include/clang/Basic/BuiltinsARM.def include/clang/Basic/BuiltinsHexagon.def +include/clang/Basic/BuiltinsMips.def +include/clang/Basic/BuiltinsNVPTX.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/DiagnosticCommentKinds.inc include/clang/Basic/DiagnosticCommonKinds.inc include/clang/Basic/DiagnosticDriverKinds.inc include/clang/Basic/DiagnosticFrontendKinds.inc @@ -140,6 +158,7 @@ include/clang/Basic/LangOptions.h include/clang/Basic/Linkage.h include/clang/Basic/MacroBuilder.h include/clang/Basic/Module.h +include/clang/Basic/ObjCRuntime.h include/clang/Basic/OnDiskHashTable.h include/clang/Basic/OpenCL.h include/clang/Basic/OpenCLExtensions.def @@ -173,12 +192,10 @@ include/clang/Driver/ArgList.h include/clang/Driver/CC1AsOptions.h include/clang/Driver/CC1AsOptions.inc include/clang/Driver/CC1Options.h -include/clang/Driver/CC1Options.inc include/clang/Driver/Compilation.h include/clang/Driver/Driver.h include/clang/Driver/DriverDiagnostic.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 @@ -273,6 +290,7 @@ include/clang/Sema/AttrTemplateInstantiate.inc include/clang/Sema/AttributeList.h include/clang/Sema/CXXFieldCollector.h include/clang/Sema/CodeCompleteConsumer.h +include/clang/Sema/CodeCompleteOptions.h include/clang/Sema/DeclSpec.h include/clang/Sema/DelayedDiagnostic.h include/clang/Sema/Designator.h @@ -320,9 +338,11 @@ include/clang/StaticAnalyzer/Core/CheckerManager.h include/clang/StaticAnalyzer/Core/CheckerOptInfo.h include/clang/StaticAnalyzer/Core/CheckerRegistry.h include/clang/StaticAnalyzer/Core/PathDiagnosticConsumers.h +include/clang/StaticAnalyzer/Core/PathSensitive/APSIntType.h include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h include/clang/StaticAnalyzer/Core/PathSensitive/BlockCounter.h +include/clang/StaticAnalyzer/Core/PathSensitive/Calls.h include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h include/clang/StaticAnalyzer/Core/PathSensitive/CheckerHelpers.h include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h @@ -332,7 +352,6 @@ include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h include/clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.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/ProgramState_Fwd.h @@ -348,25 +367,30 @@ include/clang/StaticAnalyzer/Core/PathSensitive/TaintTag.h include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h include/clang/StaticAnalyzer/Frontend/FrontendActions.h +include/clang/Tooling/ArgumentsAdjusters.h +include/clang/Tooling/CommandLineClangTool.h include/clang/Tooling/CompilationDatabase.h +include/clang/Tooling/Refactoring.h include/clang/Tooling/Tooling.h -lib/clang/3.1/include/arm_neon.h -lib/clang/3.1/include/emmintrin.h -lib/clang/3.1/include/immintrin.h -lib/clang/3.1/include/mm3dnow.h -lib/clang/3.1/include/mm_malloc.h -lib/clang/3.1/include/mmintrin.h -lib/clang/3.1/include/module.map -lib/clang/3.1/include/nmmintrin.h -lib/clang/3.1/include/pmmintrin.h -lib/clang/3.1/include/smmintrin.h -lib/clang/3.1/include/tmmintrin.h -lib/clang/3.1/include/wmmintrin.h -lib/clang/3.1/include/xmmintrin.h +lib/clang/%%CLANG_RELEASE%%/include/ammintrin.h +lib/clang/%%CLANG_RELEASE%%/include/arm_neon.h +lib/clang/%%CLANG_RELEASE%%/include/emmintrin.h +lib/clang/%%CLANG_RELEASE%%/include/immintrin.h +lib/clang/%%CLANG_RELEASE%%/include/mm3dnow.h +lib/clang/%%CLANG_RELEASE%%/include/mm_malloc.h +lib/clang/%%CLANG_RELEASE%%/include/mmintrin.h +lib/clang/%%CLANG_RELEASE%%/include/module.map +lib/clang/%%CLANG_RELEASE%%/include/nmmintrin.h +lib/clang/%%CLANG_RELEASE%%/include/pmmintrin.h +lib/clang/%%CLANG_RELEASE%%/include/smmintrin.h +lib/clang/%%CLANG_RELEASE%%/include/tmmintrin.h +lib/clang/%%CLANG_RELEASE%%/include/wmmintrin.h +lib/clang/%%CLANG_RELEASE%%/include/xmmintrin.h lib/libclang.a lib/libclang.so lib/libclangARCMigrate.a lib/libclangAST.a +lib/libclangASTMatchers.a lib/libclangAnalysis.a lib/libclangBasic.a lib/libclangCodeGen.a @@ -389,13 +413,20 @@ lib/libclangTooling.a %%PORTDOCS%%%%DOCSDIR%%/html/AddressSanitizer.html %%PORTDOCS%%%%DOCSDIR%%/html/AnalyzerRegions.html %%PORTDOCS%%%%DOCSDIR%%/html/AutomaticReferenceCounting.html +%%PORTDOCS%%%%DOCSDIR%%/html/ClangPlugins.html %%PORTDOCS%%%%DOCSDIR%%/html/DriverInternals.html +%%PORTDOCS%%%%DOCSDIR%%/html/HowToSetupToolingForLLVM.html %%PORTDOCS%%%%DOCSDIR%%/html/InternalsManual.html +%%PORTDOCS%%%%DOCSDIR%%/html/JSONCompilationDatabase.html %%PORTDOCS%%%%DOCSDIR%%/html/LanguageExtensions.html +%%PORTDOCS%%%%DOCSDIR%%/html/LibTooling.html %%PORTDOCS%%%%DOCSDIR%%/html/ObjectiveCLiterals.html %%PORTDOCS%%%%DOCSDIR%%/html/PCHInternals.html %%PORTDOCS%%%%DOCSDIR%%/html/PTHInternals.html +%%PORTDOCS%%%%DOCSDIR%%/html/RAVFrontendAction.html %%PORTDOCS%%%%DOCSDIR%%/html/ReleaseNotes.html +%%PORTDOCS%%%%DOCSDIR%%/html/ThreadSanitizer.html +%%PORTDOCS%%%%DOCSDIR%%/html/Tooling.html %%PORTDOCS%%%%DOCSDIR%%/html/UsersManual.html %%PORTDOCS%%%%DOCSDIR%%/html/clang/clang.html %%PORTDOCS%%%%DOCSDIR%%/html/clang/manpage.css @@ -407,8 +438,8 @@ lib/libclangTooling.a %%PYTHON_SITELIBDIR%%/Resources/bugcatcher.ico %%PYTHON_SITELIBDIR%%/ScanView.py %%PYTHON_SITELIBDIR%%/startfile.py -@dirrm lib/clang/3.1/include -@dirrm lib/clang/3.1 +@dirrm lib/clang/%%CLANG_RELEASE%%/include +@dirrm lib/clang/%%CLANG_RELEASE%% @dirrm lib/clang @dirrm include/clang/Tooling @dirrm include/clang/StaticAnalyzer/Frontend @@ -435,6 +466,7 @@ lib/libclangTooling.a @dirrm include/clang/Analysis/DomainSpecific @dirrm include/clang/Analysis/Analyses @dirrm include/clang/Analysis +@dirrm include/clang/ASTMatchers @dirrm include/clang/AST @dirrm include/clang/ARCMigrate @dirrm include/clang-c |