aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/Makefile1
-rw-r--r--devel/llvm31/Makefile157
-rw-r--r--devel/llvm31/distinfo2
-rw-r--r--devel/llvm31/files/patch-utils_llvm-build_llvmbuild_main.py20
-rw-r--r--devel/llvm31/pkg-descr10
-rw-r--r--devel/llvm31/pkg-plist763
-rw-r--r--lang/Makefile1
-rw-r--r--lang/clang31/Makefile191
-rw-r--r--lang/clang31/distinfo4
-rw-r--r--lang/clang31/files/patch-tools_clang_include_clang_Analysis_Analyses_FormatString.h16
-rw-r--r--lang/clang31/files/patch-tools_clang_lib_Analysis_PrintfFormatString.cpp26
-rw-r--r--lang/clang31/files/patch-tools_clang_lib_Headers_Makefile14
-rw-r--r--lang/clang31/files/patch-tools_clang_lib_Sema_SemaChecking.cpp45
-rw-r--r--lang/clang31/files/patch-tools_clang_lib_Sema_SemaDeclCXX.cpp37
-rw-r--r--lang/clang31/files/patch-tools_clang_tools_scan-build_scan-build23
-rw-r--r--lang/clang31/files/patch-utils_llvm-build_llvmbuild_main.py20
-rw-r--r--lang/clang31/pkg-descr4
-rw-r--r--lang/clang31/pkg-plist446
18 files changed, 1780 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index b7933bf0e26d..6b608f6c4501 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1122,6 +1122,7 @@
SUBDIR += llvm
SUBDIR += llvm-devel
SUBDIR += llvm29
+ SUBDIR += llvm31
SUBDIR += lmdbg
SUBDIR += lndir
SUBDIR += lockfree-malloc
diff --git a/devel/llvm31/Makefile b/devel/llvm31/Makefile
new file mode 100644
index 000000000000..df1a66192fbf
--- /dev/null
+++ b/devel/llvm31/Makefile
@@ -0,0 +1,157 @@
+# New ports collection makefile for: llvm
+# Date created: 20 Nov 2005
+# Whom: Hye-Shik Chang
+#
+# $FreeBSD$
+#
+
+PORTNAME= llvm31
+PORTVERSION= 3.1
+CATEGORIES= devel lang
+MASTER_SITES= http://llvm.org/releases/${PORTVERSION}/
+DISTNAME= llvm-${PORTVERSION}.src
+
+MAINTAINER= brooks@FreeBSD.org
+COMMENT= Low Level Virtual Machine
+
+LIB_DEPENDS= execinfo:${PORTSDIR}/devel/libexecinfo
+.if defined(PACKAGE_BUILDING) || defined(MAINTAINER_MODE)
+BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
+.endif
+.if defined(MAINTAINER_MODE)
+BUILD_DEPENDS+= f2c:${PORTSDIR}/lang/f2c
+.endif
+
+CONFLICTS= llvm-[3]* llvm-devel-[23]* llvm29-*
+
+GNU_CONFIGURE= yes
+USE_GCC= 4.2+
+USE_GMAKE= yes
+USE_LDCONFIG= yes
+USE_PERL5= yes
+USE_PYTHON_BUILD= yes
+MAKE_JOBS_SAFE= yes
+
+# Suggested tweaks from http://llvm.org/docs/Packaging.html
+CONFIGURE_ARGS+= --enable-shared
+MAKE_ARGS+= REQUIRES_RTTI=1
+LIBNAME= libLLVM-${DISTVERSION:C/\.r[0-9]*//}.so
+
+CONFIGURE_ARGS+= --enable-bindings=none
+
+OPTIONS_DEFINE= ASSERTS DOCS LTOPLUGIN
+
+ASSERTS_DESC= Enable assertions (thread unsafe)
+LTOPLUGIN_DESC= Build LTO plugin (requires gold)
+
+MAN1= bugpoint.1 lit.1 llc.1 lli.1 llvm-ar.1 llvm-as.1 \
+ llvm-bcanalyzer.1 llvm-config.1 llvm-cov.1 llvm-diff.1 \
+ llvm-dis.1 llvm-extract.1 llvm-ld.1 llvm-link.1 llvm-nm.1 \
+ llvm-prof.1 llvm-ranlib.1 llvm-stress.1 opt.1 tblgen.1
+
+PLIST_SUB+= PORTVERSION=${PORTVERSION}
+
+.include <bsd.port.options.mk>
+
+.if defined(MAINTAINER_MODE)
+CONFIGURE_ARGS+= --with-f2c=${LOCALBASE}
+.else
+CONFIGURE_ARGS+= --enable-optimized
+.endif
+
+.if ${PORT_OPTIONS:MDOCS}
+CONFIGURE_ARGS+= --enable-docs
+.else
+CONFIGURE_ARGS+= --disable-docs
+.endif
+
+.if ${PORT_OPTIONS:MASSERTS}
+CONFIGURE_ARGS+= --enable-assertions
+.else
+CONFIGURE_ARGS+= --disable-assertions
+.endif
+
+.if ${PORT_OPTIONS:MLTOPLUGIN}
+BUILD_DEPENDS+= ld.gold:${PORTSDIR}/devel/binutils
+RUN_DEPENDS+= ld.gold:${PORTSDIR}/devel/binutils
+CONFIGURE_ARGS+= --with-binutils-include=${LOCALBASE}/include
+PLIST_FILES+= lib/LLVMgold.so
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "arm"
+BROKEN= Does not compile on arm
+.elif ${ARCH} == "sparc64"
+BROKEN= does not compile on sparc64
+.endif
+
+.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
+CONFIGURE_ARGS+= --enable-pic --with-pic
+.endif
+
+.if ${ARCH} == "i386"
+CONFIGURE_ARGS+= --with-optimize-option=-O2
+.endif
+
+post-patch:
+ ${REINPLACE_CMD} -e 's|\(PROJ_docsdir.*:=\).*$$|\1${DOCSDIR}|g' \
+ ${WRKSRC}/Makefile.config.in
+ ${REINPLACE_CMD} -e 's|\(PROJ_mandir.*:=\).*$$|\1${MANPREFIX}/man|g' \
+ ${WRKSRC}/Makefile.config.in
+
+.if empty(PORT_OPTIONS:MDOCS)
+post-build:
+ @cd ${WRKSRC}/docs/CommandGuide && ${GMAKE} ${MAN1}
+.endif
+
+post-install:
+ ${MV} ${PREFIX}/lib/${LIBNAME} ${PREFIX}/lib/${LIBNAME}.0
+ ${LN} -s ${LIBNAME}.0 ${PREFIX}/lib/${LIBNAME}
+.if empty(PORT_OPTIONS:MDOCS)
+.for man in ${MAN1}
+ @${INSTALL_MAN} ${WRKSRC}/docs/CommandGuide/${man} \
+ ${MANPREFIX}/man/man1/
+.endfor
+.endif
+
+TEST_CMD= '(cd ${WRKSRC}/test; ${SETENV} ${MAKE_ENV} LD_LIBRARY_PATH=${WRKSRC}/Release/lib ${GMAKE} check-local-lit)'
+regression-test: ${BUILD_COOKIE}
+ if [ `${ID} -u` = 0 ]; then \
+ ${CHOWN} -R nobody ${WRKSRC}/test; \
+ su -m nobody -c ${TEST_CMD}; \
+ else \
+ ${SH} -c ${TEST_CMD}; \
+ fi
+
+PLIST_FILE_LIST= bin/bugpoint \
+ bin/llc \
+ bin/lli \
+ bin/llvm* \
+ bin/macho-dump \
+ bin/opt \
+ lib/BugpointPasses.so \
+ lib/LLVMHello.so \
+ lib/libLTO.* \
+ lib/libLLVM* \
+ lib/libprofile_rt.a \
+ lib/libprofile_rt.so
+PLIST_DIR_LIST= include/llvm-c \
+ include/llvm
+build-plist:
+ ${RM} -f ${PLIST}
+ cd ${PREFIX} && \
+ (ls ${PLIST_FILE_LIST}; ${FIND} ${PLIST_DIR_LIST} -type f) | \
+ ${SED} -e 's|${PORTVERSION}|%%PORTVERSION%%|' | \
+ ${SORT} >> ${PLIST}
+ ${FIND} ${DOCSDIR} -type f | \
+ ${SED} -e 's|${DOCSDIR}|%%PORTDOCS%%%%DOCSDIR%%|' | \
+ ${SORT} >> ${PLIST}
+ cd ${PREFIX} && \
+ ${FIND} ${PLIST_DIR_LIST} -type d | \
+ ${SORT} -r | ${SED} -e 's|^|@dirrm |' >> ${PLIST}
+ ${FIND} ${DOCSDIR} -type d | ${SORT} -r | \
+ ${SED} -e 's|${DOCSDIR}|%%DOCSDIR%%|' \
+ -e 's|^|%%PORTDOCS%%@dirrm |' >> ${PLIST}
+
+.include <bsd.port.post.mk>
diff --git a/devel/llvm31/distinfo b/devel/llvm31/distinfo
new file mode 100644
index 000000000000..8b1fbc2b60e2
--- /dev/null
+++ b/devel/llvm31/distinfo
@@ -0,0 +1,2 @@
+SHA256 (llvm-3.1.src.tar.gz) = 1ea05135197b5400c1f88d00ff280d775ce778f8f9ea042e25a1e1e734a4b9ab
+SIZE (llvm-3.1.src.tar.gz) = 11077429
diff --git a/devel/llvm31/files/patch-utils_llvm-build_llvmbuild_main.py b/devel/llvm31/files/patch-utils_llvm-build_llvmbuild_main.py
new file mode 100644
index 000000000000..1e2de0273d55
--- /dev/null
+++ b/devel/llvm31/files/patch-utils_llvm-build_llvmbuild_main.py
@@ -0,0 +1,20 @@
+
+$FreeBSD$
+
+--- utils/llvm-build/llvmbuild/main.py.orig
++++ utils/llvm-build/llvmbuild/main.py
+@@ -633,7 +633,13 @@
+
+ # We handle a few special cases of target names here for historical
+ # reasons, as these are the names configure currently comes up with.
+- native_target_name = { 'x86' : 'X86',
++ native_target_name = { 'amd64' : 'X86',
++ 'arm' : 'ARM',
++ 'i386' : 'X86',
++ 'mips' : 'Mips',
++ 'powerpc' : 'PowerPC',
++ 'sparc64' : 'Sparc',
++ 'x86' : 'X86',
+ 'x86_64' : 'X86',
+ 'Unknown' : None }.get(opts.native_target,
+ opts.native_target)
diff --git a/devel/llvm31/pkg-descr b/devel/llvm31/pkg-descr
new file mode 100644
index 000000000000..909ec01ae626
--- /dev/null
+++ b/devel/llvm31/pkg-descr
@@ -0,0 +1,10 @@
+Low Level Virtual Machine (LLVM) is:
+- A compilation strategy designed to enable effective program
+ optimization across the entire lifetime of a program.
+- A virtual instruction set.
+- A compiler infrastructure.
+- LLVM does not imply things that you would expect from a high-level
+ virtual machine. It does not require garbage collection or run-time
+ code generation.
+
+WWW: http://llvm.org/
diff --git a/devel/llvm31/pkg-plist b/devel/llvm31/pkg-plist
new file mode 100644
index 000000000000..2f71babf1a5c
--- /dev/null
+++ b/devel/llvm31/pkg-plist
@@ -0,0 +1,763 @@
+bin/bugpoint
+bin/llc
+bin/lli
+bin/llvm-ar
+bin/llvm-as
+bin/llvm-bcanalyzer
+bin/llvm-config
+bin/llvm-cov
+bin/llvm-diff
+bin/llvm-dis
+bin/llvm-dwarfdump
+bin/llvm-extract
+bin/llvm-ld
+bin/llvm-link
+bin/llvm-mc
+bin/llvm-nm
+bin/llvm-objdump
+bin/llvm-prof
+bin/llvm-ranlib
+bin/llvm-readobj
+bin/llvm-rtdyld
+bin/llvm-size
+bin/llvm-stress
+bin/llvm-stub
+bin/llvm-tblgen
+bin/macho-dump
+bin/opt
+include/llvm-c/Analysis.h
+include/llvm-c/BitReader.h
+include/llvm-c/BitWriter.h
+include/llvm-c/Core.h
+include/llvm-c/Disassembler.h
+include/llvm-c/EnhancedDisassembly.h
+include/llvm-c/ExecutionEngine.h
+include/llvm-c/Initialization.h
+include/llvm-c/LinkTimeOptimizer.h
+include/llvm-c/Object.h
+include/llvm-c/Target.h
+include/llvm-c/TargetMachine.h
+include/llvm-c/Transforms/IPO.h
+include/llvm-c/Transforms/PassManagerBuilder.h
+include/llvm-c/Transforms/Scalar.h
+include/llvm-c/Transforms/Vectorize.h
+include/llvm-c/lto.h
+include/llvm/ADT/APFloat.h
+include/llvm/ADT/APInt.h
+include/llvm/ADT/APSInt.h
+include/llvm/ADT/ArrayRef.h
+include/llvm/ADT/BitVector.h
+include/llvm/ADT/DAGDeltaAlgorithm.h
+include/llvm/ADT/DeltaAlgorithm.h
+include/llvm/ADT/DenseMap.h
+include/llvm/ADT/DenseMapInfo.h
+include/llvm/ADT/DenseSet.h
+include/llvm/ADT/DepthFirstIterator.h
+include/llvm/ADT/EquivalenceClasses.h
+include/llvm/ADT/FoldingSet.h
+include/llvm/ADT/GraphTraits.h
+include/llvm/ADT/Hashing.h
+include/llvm/ADT/ImmutableIntervalMap.h
+include/llvm/ADT/ImmutableList.h
+include/llvm/ADT/ImmutableMap.h
+include/llvm/ADT/ImmutableSet.h
+include/llvm/ADT/InMemoryStruct.h
+include/llvm/ADT/IndexedMap.h
+include/llvm/ADT/IntEqClasses.h
+include/llvm/ADT/IntervalMap.h
+include/llvm/ADT/IntrusiveRefCntPtr.h
+include/llvm/ADT/NullablePtr.h
+include/llvm/ADT/Optional.h
+include/llvm/ADT/OwningPtr.h
+include/llvm/ADT/PackedVector.h
+include/llvm/ADT/PointerIntPair.h
+include/llvm/ADT/PointerUnion.h
+include/llvm/ADT/PostOrderIterator.h
+include/llvm/ADT/PriorityQueue.h
+include/llvm/ADT/SCCIterator.h
+include/llvm/ADT/STLExtras.h
+include/llvm/ADT/ScopedHashTable.h
+include/llvm/ADT/SetOperations.h
+include/llvm/ADT/SetVector.h
+include/llvm/ADT/SmallBitVector.h
+include/llvm/ADT/SmallPtrSet.h
+include/llvm/ADT/SmallSet.h
+include/llvm/ADT/SmallString.h
+include/llvm/ADT/SmallVector.h
+include/llvm/ADT/SparseBitVector.h
+include/llvm/ADT/SparseSet.h
+include/llvm/ADT/Statistic.h
+include/llvm/ADT/StringExtras.h
+include/llvm/ADT/StringMap.h
+include/llvm/ADT/StringRef.h
+include/llvm/ADT/StringSet.h
+include/llvm/ADT/StringSwitch.h
+include/llvm/ADT/TinyPtrVector.h
+include/llvm/ADT/Trie.h
+include/llvm/ADT/Triple.h
+include/llvm/ADT/Twine.h
+include/llvm/ADT/UniqueVector.h
+include/llvm/ADT/ValueMap.h
+include/llvm/ADT/VariadicFunction.h
+include/llvm/ADT/edit_distance.h
+include/llvm/ADT/ilist.h
+include/llvm/ADT/ilist_node.h
+include/llvm/Analysis/AliasAnalysis.h
+include/llvm/Analysis/AliasSetTracker.h
+include/llvm/Analysis/BlockFrequencyImpl.h
+include/llvm/Analysis/BlockFrequencyInfo.h
+include/llvm/Analysis/BranchProbabilityInfo.h
+include/llvm/Analysis/CFGPrinter.h
+include/llvm/Analysis/CallGraph.h
+include/llvm/Analysis/CaptureTracking.h
+include/llvm/Analysis/CodeMetrics.h
+include/llvm/Analysis/ConstantFolding.h
+include/llvm/Analysis/ConstantsScanner.h
+include/llvm/Analysis/DIBuilder.h
+include/llvm/Analysis/DOTGraphTraitsPass.h
+include/llvm/Analysis/DebugInfo.h
+include/llvm/Analysis/DomPrinter.h
+include/llvm/Analysis/DominanceFrontier.h
+include/llvm/Analysis/DominatorInternals.h
+include/llvm/Analysis/Dominators.h
+include/llvm/Analysis/FindUsedTypes.h
+include/llvm/Analysis/IVUsers.h
+include/llvm/Analysis/InlineCost.h
+include/llvm/Analysis/InstructionSimplify.h
+include/llvm/Analysis/Interval.h
+include/llvm/Analysis/IntervalIterator.h
+include/llvm/Analysis/IntervalPartition.h
+include/llvm/Analysis/LazyValueInfo.h
+include/llvm/Analysis/LibCallAliasAnalysis.h
+include/llvm/Analysis/LibCallSemantics.h
+include/llvm/Analysis/Lint.h
+include/llvm/Analysis/Loads.h
+include/llvm/Analysis/LoopDependenceAnalysis.h
+include/llvm/Analysis/LoopInfo.h
+include/llvm/Analysis/LoopIterator.h
+include/llvm/Analysis/LoopPass.h
+include/llvm/Analysis/MemoryBuiltins.h
+include/llvm/Analysis/MemoryDependenceAnalysis.h
+include/llvm/Analysis/PHITransAddr.h
+include/llvm/Analysis/Passes.h
+include/llvm/Analysis/PathNumbering.h
+include/llvm/Analysis/PathProfileInfo.h
+include/llvm/Analysis/PostDominators.h
+include/llvm/Analysis/ProfileInfo.h
+include/llvm/Analysis/ProfileInfoLoader.h
+include/llvm/Analysis/ProfileInfoTypes.h
+include/llvm/Analysis/RegionInfo.h
+include/llvm/Analysis/RegionIterator.h
+include/llvm/Analysis/RegionPass.h
+include/llvm/Analysis/RegionPrinter.h
+include/llvm/Analysis/ScalarEvolution.h
+include/llvm/Analysis/ScalarEvolutionExpander.h
+include/llvm/Analysis/ScalarEvolutionExpressions.h
+include/llvm/Analysis/ScalarEvolutionNormalization.h
+include/llvm/Analysis/SparsePropagation.h
+include/llvm/Analysis/Trace.h
+include/llvm/Analysis/ValueTracking.h
+include/llvm/Analysis/Verifier.h
+include/llvm/Argument.h
+include/llvm/Assembly/AssemblyAnnotationWriter.h
+include/llvm/Assembly/Parser.h
+include/llvm/Assembly/PrintModulePass.h
+include/llvm/Assembly/Writer.h
+include/llvm/Attributes.h
+include/llvm/AutoUpgrade.h
+include/llvm/BasicBlock.h
+include/llvm/Bitcode/Archive.h
+include/llvm/Bitcode/BitCodes.h
+include/llvm/Bitcode/BitstreamReader.h
+include/llvm/Bitcode/BitstreamWriter.h
+include/llvm/Bitcode/LLVMBitCodes.h
+include/llvm/Bitcode/ReaderWriter.h
+include/llvm/CallGraphSCCPass.h
+include/llvm/CallingConv.h
+include/llvm/CodeGen/Analysis.h
+include/llvm/CodeGen/AsmPrinter.h
+include/llvm/CodeGen/CalcSpillWeights.h
+include/llvm/CodeGen/CallingConvLower.h
+include/llvm/CodeGen/DFAPacketizer.h
+include/llvm/CodeGen/EdgeBundles.h
+include/llvm/CodeGen/FastISel.h
+include/llvm/CodeGen/FunctionLoweringInfo.h
+include/llvm/CodeGen/GCMetadata.h
+include/llvm/CodeGen/GCMetadataPrinter.h
+include/llvm/CodeGen/GCStrategy.h
+include/llvm/CodeGen/GCs.h
+include/llvm/CodeGen/ISDOpcodes.h
+include/llvm/CodeGen/IntrinsicLowering.h
+include/llvm/CodeGen/JITCodeEmitter.h
+include/llvm/CodeGen/LatencyPriorityQueue.h
+include/llvm/CodeGen/LexicalScopes.h
+include/llvm/CodeGen/LinkAllAsmWriterComponents.h
+include/llvm/CodeGen/LinkAllCodegenComponents.h
+include/llvm/CodeGen/LiveInterval.h
+include/llvm/CodeGen/LiveIntervalAnalysis.h
+include/llvm/CodeGen/LiveRangeEdit.h
+include/llvm/CodeGen/LiveStackAnalysis.h
+include/llvm/CodeGen/LiveVariables.h
+include/llvm/CodeGen/MachORelocation.h
+include/llvm/CodeGen/MachineBasicBlock.h
+include/llvm/CodeGen/MachineBlockFrequencyInfo.h
+include/llvm/CodeGen/MachineBranchProbabilityInfo.h
+include/llvm/CodeGen/MachineCodeEmitter.h
+include/llvm/CodeGen/MachineCodeInfo.h
+include/llvm/CodeGen/MachineConstantPool.h
+include/llvm/CodeGen/MachineDominators.h
+include/llvm/CodeGen/MachineFrameInfo.h
+include/llvm/CodeGen/MachineFunction.h
+include/llvm/CodeGen/MachineFunctionAnalysis.h
+include/llvm/CodeGen/MachineFunctionPass.h
+include/llvm/CodeGen/MachineInstr.h
+include/llvm/CodeGen/MachineInstrBuilder.h
+include/llvm/CodeGen/MachineInstrBundle.h
+include/llvm/CodeGen/MachineJumpTableInfo.h
+include/llvm/CodeGen/MachineLoopInfo.h
+include/llvm/CodeGen/MachineLoopRanges.h
+include/llvm/CodeGen/MachineMemOperand.h
+include/llvm/CodeGen/MachineModuleInfo.h
+include/llvm/CodeGen/MachineModuleInfoImpls.h
+include/llvm/CodeGen/MachineOperand.h
+include/llvm/CodeGen/MachinePassRegistry.h
+include/llvm/CodeGen/MachineRegisterInfo.h
+include/llvm/CodeGen/MachineRelocation.h
+include/llvm/CodeGen/MachineSSAUpdater.h
+include/llvm/CodeGen/MachineScheduler.h
+include/llvm/CodeGen/PBQP/Graph.h
+include/llvm/CodeGen/PBQP/HeuristicBase.h
+include/llvm/CodeGen/PBQP/HeuristicSolver.h
+include/llvm/CodeGen/PBQP/Heuristics/Briggs.h
+include/llvm/CodeGen/PBQP/Math.h
+include/llvm/CodeGen/PBQP/Solution.h
+include/llvm/CodeGen/Passes.h
+include/llvm/CodeGen/ProcessImplicitDefs.h
+include/llvm/CodeGen/PseudoSourceValue.h
+include/llvm/CodeGen/RegAllocPBQP.h
+include/llvm/CodeGen/RegAllocRegistry.h
+include/llvm/CodeGen/RegisterScavenging.h
+include/llvm/CodeGen/ResourcePriorityQueue.h
+include/llvm/CodeGen/RuntimeLibcalls.h
+include/llvm/CodeGen/ScheduleDAG.h
+include/llvm/CodeGen/ScheduleDAGInstrs.h
+include/llvm/CodeGen/ScheduleHazardRecognizer.h
+include/llvm/CodeGen/SchedulerRegistry.h
+include/llvm/CodeGen/ScoreboardHazardRecognizer.h
+include/llvm/CodeGen/SelectionDAG.h
+include/llvm/CodeGen/SelectionDAGISel.h
+include/llvm/CodeGen/SelectionDAGNodes.h
+include/llvm/CodeGen/SlotIndexes.h
+include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
+include/llvm/CodeGen/ValueTypes.h
+include/llvm/CodeGen/ValueTypes.td
+include/llvm/Config/AsmParsers.def
+include/llvm/Config/AsmPrinters.def
+include/llvm/Config/Disassemblers.def
+include/llvm/Config/Targets.def
+include/llvm/Config/config.h
+include/llvm/Config/llvm-config.h
+include/llvm/Constant.h
+include/llvm/Constants.h
+include/llvm/DebugInfo/DIContext.h
+include/llvm/DefaultPasses.h
+include/llvm/DerivedTypes.h
+include/llvm/ExecutionEngine/ExecutionEngine.h
+include/llvm/ExecutionEngine/GenericValue.h
+include/llvm/ExecutionEngine/IntelJITEventsWrapper.h
+include/llvm/ExecutionEngine/Interpreter.h
+include/llvm/ExecutionEngine/JIT.h
+include/llvm/ExecutionEngine/JITEventListener.h
+include/llvm/ExecutionEngine/JITMemoryManager.h
+include/llvm/ExecutionEngine/MCJIT.h
+include/llvm/ExecutionEngine/OProfileWrapper.h
+include/llvm/ExecutionEngine/RuntimeDyld.h
+include/llvm/Function.h
+include/llvm/GVMaterializer.h
+include/llvm/GlobalAlias.h
+include/llvm/GlobalValue.h
+include/llvm/GlobalVariable.h
+include/llvm/InitializePasses.h
+include/llvm/InlineAsm.h
+include/llvm/InstrTypes.h
+include/llvm/Instruction.def
+include/llvm/Instruction.h
+include/llvm/Instructions.h
+include/llvm/IntrinsicInst.h
+include/llvm/Intrinsics.gen
+include/llvm/Intrinsics.h
+include/llvm/Intrinsics.td
+include/llvm/IntrinsicsARM.td
+include/llvm/IntrinsicsCellSPU.td
+include/llvm/IntrinsicsHexagon.td
+include/llvm/IntrinsicsPTX.td
+include/llvm/IntrinsicsPowerPC.td
+include/llvm/IntrinsicsX86.td
+include/llvm/IntrinsicsXCore.td
+include/llvm/LLVMContext.h
+include/llvm/LinkAllPasses.h
+include/llvm/LinkAllVMCore.h
+include/llvm/Linker.h
+include/llvm/MC/EDInstInfo.h
+include/llvm/MC/MCAsmBackend.h
+include/llvm/MC/MCAsmInfo.h
+include/llvm/MC/MCAsmInfoCOFF.h
+include/llvm/MC/MCAsmInfoDarwin.h
+include/llvm/MC/MCAsmLayout.h
+include/llvm/MC/MCAssembler.h
+include/llvm/MC/MCAtom.h
+include/llvm/MC/MCCodeEmitter.h
+include/llvm/MC/MCCodeGenInfo.h
+include/llvm/MC/MCContext.h
+include/llvm/MC/MCDirectives.h
+include/llvm/MC/MCDisassembler.h
+include/llvm/MC/MCDwarf.h
+include/llvm/MC/MCELFObjectWriter.h
+include/llvm/MC/MCELFSymbolFlags.h
+include/llvm/MC/MCExpr.h
+include/llvm/MC/MCFixup.h
+include/llvm/MC/MCFixupKindInfo.h
+include/llvm/MC/MCInst.h
+include/llvm/MC/MCInstPrinter.h
+include/llvm/MC/MCInstrAnalysis.h
+include/llvm/MC/MCInstrDesc.h
+include/llvm/MC/MCInstrInfo.h
+include/llvm/MC/MCInstrItineraries.h
+include/llvm/MC/MCLabel.h
+include/llvm/MC/MCMachOSymbolFlags.h
+include/llvm/MC/MCMachObjectWriter.h
+include/llvm/MC/MCModule.h
+include/llvm/MC/MCObjectFileInfo.h
+include/llvm/MC/MCObjectStreamer.h
+include/llvm/MC/MCObjectWriter.h
+include/llvm/MC/MCParser/AsmCond.h
+include/llvm/MC/MCParser/AsmLexer.h
+include/llvm/MC/MCParser/MCAsmLexer.h
+include/llvm/MC/MCParser/MCAsmParser.h
+include/llvm/MC/MCParser/MCAsmParserExtension.h
+include/llvm/MC/MCParser/MCParsedAsmOperand.h
+include/llvm/MC/MCRegisterInfo.h
+include/llvm/MC/MCSection.h
+include/llvm/MC/MCSectionCOFF.h
+include/llvm/MC/MCSectionELF.h
+include/llvm/MC/MCSectionMachO.h
+include/llvm/MC/MCStreamer.h
+include/llvm/MC/MCSubtargetInfo.h
+include/llvm/MC/MCSymbol.h
+include/llvm/MC/MCTargetAsmLexer.h
+include/llvm/MC/MCTargetAsmParser.h
+include/llvm/MC/MCValue.h
+include/llvm/MC/MCWin64EH.h
+include/llvm/MC/MCWinCOFFObjectWriter.h
+include/llvm/MC/MachineLocation.h
+include/llvm/MC/SectionKind.h
+include/llvm/MC/SubtargetFeature.h
+include/llvm/Metadata.h
+include/llvm/Module.h
+include/llvm/Object/Archive.h
+include/llvm/Object/Binary.h
+include/llvm/Object/COFF.h
+include/llvm/Object/ELF.h
+include/llvm/Object/Error.h
+include/llvm/Object/MachO.h
+include/llvm/Object/MachOFormat.h
+include/llvm/Object/MachOObject.h
+include/llvm/Object/ObjectFile.h
+include/llvm/OperandTraits.h
+include/llvm/Operator.h
+include/llvm/Pass.h
+include/llvm/PassAnalysisSupport.h
+include/llvm/PassManager.h
+include/llvm/PassManagers.h
+include/llvm/PassRegistry.h
+include/llvm/PassSupport.h
+include/llvm/Support/AIXDataTypesFix.h
+include/llvm/Support/AlignOf.h
+include/llvm/Support/Allocator.h
+include/llvm/Support/Atomic.h
+include/llvm/Support/BlockFrequency.h
+include/llvm/Support/BranchProbability.h
+include/llvm/Support/CFG.h
+include/llvm/Support/COFF.h
+include/llvm/Support/CallSite.h
+include/llvm/Support/Capacity.h
+include/llvm/Support/Casting.h
+include/llvm/Support/CodeGen.h
+include/llvm/Support/CommandLine.h
+include/llvm/Support/Compiler.h
+include/llvm/Support/ConstantFolder.h
+include/llvm/Support/ConstantRange.h
+include/llvm/Support/CrashRecoveryContext.h
+include/llvm/Support/DOTGraphTraits.h
+include/llvm/Support/DataExtractor.h
+include/llvm/Support/DataFlow.h
+include/llvm/Support/DataStream.h
+include/llvm/Support/DataTypes.h
+include/llvm/Support/Debug.h
+include/llvm/Support/DebugLoc.h
+include/llvm/Support/Disassembler.h
+include/llvm/Support/Dwarf.h
+include/llvm/Support/DynamicLibrary.h
+include/llvm/Support/ELF.h
+include/llvm/Support/Endian.h
+include/llvm/Support/Errno.h
+include/llvm/Support/ErrorHandling.h
+include/llvm/Support/FEnv.h
+include/llvm/Support/FileSystem.h
+include/llvm/Support/FileUtilities.h
+include/llvm/Support/Format.h
+include/llvm/Support/FormattedStream.h
+include/llvm/Support/GCOV.h
+include/llvm/Support/GetElementPtrTypeIterator.h
+include/llvm/Support/GraphWriter.h
+include/llvm/Support/Host.h
+include/llvm/Support/IRBuilder.h
+include/llvm/Support/IRReader.h
+include/llvm/Support/IncludeFile.h
+include/llvm/Support/InstIterator.h
+include/llvm/Support/InstVisitor.h
+include/llvm/Support/LICENSE.TXT
+include/llvm/Support/LeakDetector.h
+include/llvm/Support/Locale.h
+include/llvm/Support/LockFileManager.h
+include/llvm/Support/MDBuilder.h
+include/llvm/Support/MachO.h
+include/llvm/Support/ManagedStatic.h
+include/llvm/Support/MathExtras.h
+include/llvm/Support/Memory.h
+include/llvm/Support/MemoryBuffer.h
+include/llvm/Support/MemoryObject.h
+include/llvm/Support/Mutex.h
+include/llvm/Support/MutexGuard.h
+include/llvm/Support/NoFolder.h
+include/llvm/Support/OutputBuffer.h
+include/llvm/Support/PassNameParser.h
+include/llvm/Support/Path.h
+include/llvm/Support/PathV1.h
+include/llvm/Support/PathV2.h
+include/llvm/Support/PatternMatch.h
+include/llvm/Support/PluginLoader.h
+include/llvm/Support/PointerLikeTypeTraits.h
+include/llvm/Support/PredIteratorCache.h
+include/llvm/Support/PrettyStackTrace.h
+include/llvm/Support/Process.h
+include/llvm/Support/Program.h
+include/llvm/Support/RWMutex.h
+include/llvm/Support/Recycler.h
+include/llvm/Support/RecyclingAllocator.h
+include/llvm/Support/Regex.h
+include/llvm/Support/Registry.h
+include/llvm/Support/RegistryParser.h
+include/llvm/Support/SMLoc.h
+include/llvm/Support/SaveAndRestore.h
+include/llvm/Support/Signals.h
+include/llvm/Support/Solaris.h
+include/llvm/Support/SourceMgr.h
+include/llvm/Support/StreamableMemoryObject.h
+include/llvm/Support/StringPool.h
+include/llvm/Support/SwapByteOrder.h
+include/llvm/Support/SystemUtils.h
+include/llvm/Support/TargetFolder.h
+include/llvm/Support/TargetRegistry.h
+include/llvm/Support/TargetSelect.h
+include/llvm/Support/ThreadLocal.h
+include/llvm/Support/Threading.h
+include/llvm/Support/TimeValue.h
+include/llvm/Support/Timer.h
+include/llvm/Support/ToolOutputFile.h
+include/llvm/Support/TypeBuilder.h
+include/llvm/Support/Valgrind.h
+include/llvm/Support/ValueHandle.h
+include/llvm/Support/Win64EH.h
+include/llvm/Support/YAMLParser.h
+include/llvm/Support/circular_raw_ostream.h
+include/llvm/Support/raw_os_ostream.h
+include/llvm/Support/raw_ostream.h
+include/llvm/Support/system_error.h
+include/llvm/Support/type_traits.h
+include/llvm/SymbolTableListTraits.h
+include/llvm/TableGen/Error.h
+include/llvm/TableGen/Main.h
+include/llvm/TableGen/Record.h
+include/llvm/TableGen/TableGenAction.h
+include/llvm/TableGen/TableGenBackend.h
+include/llvm/Target/Mangler.h
+include/llvm/Target/Target.td
+include/llvm/Target/TargetCallingConv.h
+include/llvm/Target/TargetCallingConv.td
+include/llvm/Target/TargetData.h
+include/llvm/Target/TargetELFWriterInfo.h
+include/llvm/Target/TargetFrameLowering.h
+include/llvm/Target/TargetInstrInfo.h
+include/llvm/Target/TargetIntrinsicInfo.h
+include/llvm/Target/TargetJITInfo.h
+include/llvm/Target/TargetLibraryInfo.h
+include/llvm/Target/TargetLowering.h
+include/llvm/Target/TargetLoweringObjectFile.h
+include/llvm/Target/TargetMachine.h
+include/llvm/Target/TargetOpcodes.h
+include/llvm/Target/TargetOptions.h
+include/llvm/Target/TargetRegisterInfo.h
+include/llvm/Target/TargetSchedule.td
+include/llvm/Target/TargetSelectionDAG.td
+include/llvm/Target/TargetSelectionDAGInfo.h
+include/llvm/Target/TargetSubtargetInfo.h
+include/llvm/Transforms/IPO.h
+include/llvm/Transforms/IPO/InlinerPass.h
+include/llvm/Transforms/IPO/PassManagerBuilder.h
+include/llvm/Transforms/Instrumentation.h
+include/llvm/Transforms/Scalar.h
+include/llvm/Transforms/Utils/AddrModeMatcher.h
+include/llvm/Transforms/Utils/BasicBlockUtils.h
+include/llvm/Transforms/Utils/BuildLibCalls.h
+include/llvm/Transforms/Utils/Cloning.h
+include/llvm/Transforms/Utils/CmpInstAnalysis.h
+include/llvm/Transforms/Utils/FunctionUtils.h
+include/llvm/Transforms/Utils/Local.h
+include/llvm/Transforms/Utils/ModuleUtils.h
+include/llvm/Transforms/Utils/PromoteMemToReg.h
+include/llvm/Transforms/Utils/SSAUpdater.h
+include/llvm/Transforms/Utils/SSAUpdaterImpl.h
+include/llvm/Transforms/Utils/SimplifyIndVar.h
+include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h
+include/llvm/Transforms/Utils/UnrollLoop.h
+include/llvm/Transforms/Utils/ValueMapper.h
+include/llvm/Transforms/Vectorize.h
+include/llvm/Type.h
+include/llvm/Use.h
+include/llvm/User.h
+include/llvm/Value.h
+include/llvm/ValueSymbolTable.h
+lib/BugpointPasses.so
+lib/LLVMHello.so
+lib/libLLVM-%%PORTVERSION%%.so
+lib/libLLVM-%%PORTVERSION%%.so.0
+lib/libLLVMARMAsmParser.a
+lib/libLLVMARMAsmPrinter.a
+lib/libLLVMARMCodeGen.a
+lib/libLLVMARMDesc.a
+lib/libLLVMARMDisassembler.a
+lib/libLLVMARMInfo.a
+lib/libLLVMAnalysis.a
+lib/libLLVMArchive.a
+lib/libLLVMAsmParser.a
+lib/libLLVMAsmPrinter.a
+lib/libLLVMBitReader.a
+lib/libLLVMBitWriter.a
+lib/libLLVMCellSPUCodeGen.a
+lib/libLLVMCellSPUDesc.a
+lib/libLLVMCellSPUInfo.a
+lib/libLLVMCodeGen.a
+lib/libLLVMCore.a
+lib/libLLVMCppBackendCodeGen.a
+lib/libLLVMCppBackendInfo.a
+lib/libLLVMDebugInfo.a
+lib/libLLVMExecutionEngine.a
+lib/libLLVMHexagonAsmPrinter.a
+lib/libLLVMHexagonCodeGen.a
+lib/libLLVMHexagonDesc.a
+lib/libLLVMHexagonInfo.a
+lib/libLLVMInstCombine.a
+lib/libLLVMInstrumentation.a
+lib/libLLVMInterpreter.a
+lib/libLLVMJIT.a
+lib/libLLVMLinker.a
+lib/libLLVMMBlazeAsmParser.a
+lib/libLLVMMBlazeAsmPrinter.a
+lib/libLLVMMBlazeCodeGen.a
+lib/libLLVMMBlazeDesc.a
+lib/libLLVMMBlazeDisassembler.a
+lib/libLLVMMBlazeInfo.a
+lib/libLLVMMC.a
+lib/libLLVMMCDisassembler.a
+lib/libLLVMMCJIT.a
+lib/libLLVMMCParser.a
+lib/libLLVMMSP430AsmPrinter.a
+lib/libLLVMMSP430CodeGen.a
+lib/libLLVMMSP430Desc.a
+lib/libLLVMMSP430Info.a
+lib/libLLVMMipsAsmParser.a
+lib/libLLVMMipsAsmPrinter.a
+lib/libLLVMMipsCodeGen.a
+lib/libLLVMMipsDesc.a
+lib/libLLVMMipsDisassembler.a
+lib/libLLVMMipsInfo.a
+lib/libLLVMObject.a
+lib/libLLVMPTXAsmPrinter.a
+lib/libLLVMPTXCodeGen.a
+lib/libLLVMPTXDesc.a
+lib/libLLVMPTXInfo.a
+lib/libLLVMPowerPCAsmPrinter.a
+lib/libLLVMPowerPCCodeGen.a
+lib/libLLVMPowerPCDesc.a
+lib/libLLVMPowerPCInfo.a
+lib/libLLVMRuntimeDyld.a
+lib/libLLVMScalarOpts.a
+lib/libLLVMSelectionDAG.a
+lib/libLLVMSparcCodeGen.a
+lib/libLLVMSparcDesc.a
+lib/libLLVMSparcInfo.a
+lib/libLLVMSupport.a
+lib/libLLVMTableGen.a
+lib/libLLVMTarget.a
+lib/libLLVMTransformUtils.a
+lib/libLLVMVectorize.a
+lib/libLLVMX86AsmParser.a
+lib/libLLVMX86AsmPrinter.a
+lib/libLLVMX86CodeGen.a
+lib/libLLVMX86Desc.a
+lib/libLLVMX86Disassembler.a
+lib/libLLVMX86Info.a
+lib/libLLVMX86Utils.a
+lib/libLLVMXCoreCodeGen.a
+lib/libLLVMXCoreDesc.a
+lib/libLLVMXCoreInfo.a
+lib/libLLVMipa.a
+lib/libLLVMipo.a
+lib/libLTO.a
+lib/libLTO.so
+lib/libprofile_rt.a
+lib/libprofile_rt.so
+%%PORTDOCS%%%%DOCSDIR%%/html.tar.gz
+%%PORTDOCS%%%%DOCSDIR%%/html/AliasAnalysis.html
+%%PORTDOCS%%%%DOCSDIR%%/html/Atomics.html
+%%PORTDOCS%%%%DOCSDIR%%/html/BitCodeFormat.html
+%%PORTDOCS%%%%DOCSDIR%%/html/BranchWeightMetadata.html
+%%PORTDOCS%%%%DOCSDIR%%/html/Bugpoint.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CMake.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CodeGenerator.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CodingStandards.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/FileCheck.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/bugpoint.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/index.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/lit.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llc.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/lli.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-ar.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-as.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-bcanalyzer.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-build.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-config.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-cov.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-diff.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-dis.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-extract.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-ld.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-link.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-nm.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-prof.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-ranlib.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/llvm-stress.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/manpage.css
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/opt.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandGuide/tblgen.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CommandLine.html
+%%PORTDOCS%%%%DOCSDIR%%/html/CompilerWriterInfo.html
+%%PORTDOCS%%%%DOCSDIR%%/html/DebuggingJITedCode.html
+%%PORTDOCS%%%%DOCSDIR%%/html/DeveloperPolicy.html
+%%PORTDOCS%%%%DOCSDIR%%/html/ExceptionHandling.html
+%%PORTDOCS%%%%DOCSDIR%%/html/ExtendingLLVM.html
+%%PORTDOCS%%%%DOCSDIR%%/html/FAQ.html
+%%PORTDOCS%%%%DOCSDIR%%/html/GCCFEBuildInstrs.html
+%%PORTDOCS%%%%DOCSDIR%%/html/GarbageCollection.html
+%%PORTDOCS%%%%DOCSDIR%%/html/GetElementPtr.html
+%%PORTDOCS%%%%DOCSDIR%%/html/GettingStarted.html
+%%PORTDOCS%%%%DOCSDIR%%/html/GettingStartedVS.html
+%%PORTDOCS%%%%DOCSDIR%%/html/GoldPlugin.html
+%%PORTDOCS%%%%DOCSDIR%%/html/HowToAddABuilder.html
+%%PORTDOCS%%%%DOCSDIR%%/html/HowToReleaseLLVM.html
+%%PORTDOCS%%%%DOCSDIR%%/html/HowToSubmitABug.html
+%%PORTDOCS%%%%DOCSDIR%%/html/LLVMBuild.html
+%%PORTDOCS%%%%DOCSDIR%%/html/LangRef.html
+%%PORTDOCS%%%%DOCSDIR%%/html/Lexicon.html
+%%PORTDOCS%%%%DOCSDIR%%/html/LinkTimeOptimization.html
+%%PORTDOCS%%%%DOCSDIR%%/html/MakefileGuide.html
+%%PORTDOCS%%%%DOCSDIR%%/html/Packaging.html
+%%PORTDOCS%%%%DOCSDIR%%/html/Passes.html
+%%PORTDOCS%%%%DOCSDIR%%/html/ProgrammersManual.html
+%%PORTDOCS%%%%DOCSDIR%%/html/Projects.html
+%%PORTDOCS%%%%DOCSDIR%%/html/ReleaseNotes.html
+%%PORTDOCS%%%%DOCSDIR%%/html/SegmentedStacks.html
+%%PORTDOCS%%%%DOCSDIR%%/html/SourceLevelDebugging.html
+%%PORTDOCS%%%%DOCSDIR%%/html/SystemLibrary.html
+%%PORTDOCS%%%%DOCSDIR%%/html/TableGenFundamentals.html
+%%PORTDOCS%%%%DOCSDIR%%/html/TestSuiteMakefileGuide.html
+%%PORTDOCS%%%%DOCSDIR%%/html/TestingGuide.html
+%%PORTDOCS%%%%DOCSDIR%%/html/WritingAnLLVMBackend.html
+%%PORTDOCS%%%%DOCSDIR%%/html/WritingAnLLVMPass.html
+%%PORTDOCS%%%%DOCSDIR%%/html/doxygen.css
+%%PORTDOCS%%%%DOCSDIR%%/html/img/Debugging.gif
+%%PORTDOCS%%%%DOCSDIR%%/html/img/libdeps.gif
+%%PORTDOCS%%%%DOCSDIR%%/html/img/lines.gif
+%%PORTDOCS%%%%DOCSDIR%%/html/img/objdeps.gif
+%%PORTDOCS%%%%DOCSDIR%%/html/img/venusflytrap.jpg
+%%PORTDOCS%%%%DOCSDIR%%/html/index.html
+%%PORTDOCS%%%%DOCSDIR%%/html/llvm.css
+%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/LangImpl1.html
+%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/LangImpl2.html
+%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/LangImpl3.html
+%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/LangImpl4.html
+%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/LangImpl5-cfg.png
+%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/LangImpl5.html
+%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/LangImpl6.html
+%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/LangImpl7.html
+%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/LangImpl8.html
+%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/OCamlLangImpl1.html
+%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/OCamlLangImpl2.html
+%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/OCamlLangImpl3.html
+%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/OCamlLangImpl4.html
+%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/OCamlLangImpl5.html
+%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/OCamlLangImpl6.html
+%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/OCamlLangImpl7.html
+%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/OCamlLangImpl8.html
+%%PORTDOCS%%%%DOCSDIR%%/html/tutorial/index.html
+%%PORTDOCS%%%%DOCSDIR%%/ps/FileCheck.ps
+%%PORTDOCS%%%%DOCSDIR%%/ps/bugpoint.ps
+%%PORTDOCS%%%%DOCSDIR%%/ps/lit.ps
+%%PORTDOCS%%%%DOCSDIR%%/ps/llc.ps
+%%PORTDOCS%%%%DOCSDIR%%/ps/lli.ps
+%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-ar.ps
+%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-as.ps
+%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-bcanalyzer.ps
+%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-build.ps
+%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-config.ps
+%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-cov.ps
+%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-diff.ps
+%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-dis.ps
+%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-extract.ps
+%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-ld.ps
+%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-link.ps
+%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-nm.ps
+%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-prof.ps
+%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-ranlib.ps
+%%PORTDOCS%%%%DOCSDIR%%/ps/llvm-stress.ps
+%%PORTDOCS%%%%DOCSDIR%%/ps/opt.ps
+%%PORTDOCS%%%%DOCSDIR%%/ps/tblgen.ps
+@dirrm include/llvm/Transforms/Utils
+@dirrm include/llvm/Transforms/IPO
+@dirrm include/llvm/Transforms
+@dirrm include/llvm/Target
+@dirrm include/llvm/TableGen
+@dirrm include/llvm/Support
+@dirrm include/llvm/Object
+@dirrm include/llvm/MC/MCParser
+@dirrm include/llvm/MC
+@dirrm include/llvm/ExecutionEngine
+@dirrm include/llvm/DebugInfo
+@dirrm include/llvm/Config
+@dirrm include/llvm/CodeGen/PBQP/Heuristics
+@dirrm include/llvm/CodeGen/PBQP
+@dirrm include/llvm/CodeGen
+@dirrm include/llvm/Bitcode
+@dirrm include/llvm/Assembly
+@dirrm include/llvm/Analysis
+@dirrm include/llvm/ADT
+@dirrm include/llvm-c/Transforms
+@dirrm include/llvm-c
+@dirrm include/llvm
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/ps
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/html/tutorial
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/html/img
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/html/CommandGuide
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
diff --git a/lang/Makefile b/lang/Makefile
index 273bf76982ed..8834d168b40a 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -31,6 +31,7 @@
SUBDIR += cint
SUBDIR += clang
SUBDIR += clang-devel
+ SUBDIR += clang31
SUBDIR += clay
SUBDIR += clisp
SUBDIR += clojure
diff --git a/lang/clang31/Makefile b/lang/clang31/Makefile
new file mode 100644
index 000000000000..12a5a7b5c72d
--- /dev/null
+++ b/lang/clang31/Makefile
@@ -0,0 +1,191 @@
+# New ports collection makefile for: clang
+# Date created: 24 Oct 2009
+# Whom: Brooks Davis
+#
+# $FreeBSD$
+#
+
+PORTNAME= clang31
+PORTVERSION= 3.1
+CATEGORIES= lang devel
+MASTER_SITES= http://llvm.org/releases/${PORTVERSION}/
+DISTNAME= clang-${PORTVERSION}.src
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
+ ${LLVM_SOURCE}
+EXTRACT_ONLY= ${LLVM_SOURCE}
+
+MAINTAINER= brooks@FreeBSD.org
+COMMENT= C, Objective-C, and (alpha-quality) C++ compiler
+
+CONFLICTS= clang-[23]* clang-devel-[23]*
+
+CLANG_NAME= clang-${PORTVERSION}.src
+CLANG_SOURCE= ${CLANG_NAME}${EXTRACT_SUFX}
+LLVM_NAME= llvm-${PORTVERSION}.src
+LLVM_SOURCE= ${LLVM_NAME}${EXTRACT_SUFX}
+
+WRKSRC= ${WRKDIR}/${LLVM_NAME}
+BUILD_WRKSRC= ${WRKSRC}/tools/clang
+INSTALL_WRKSRC= ${WRKSRC}/tools/clang
+
+BUILD_DEPENDS+= llvm31>=${PORTVERSION}:${PORTSDIR}/devel/llvm
+RUN_DEPENDS+= llvm31>=${PORTVERSION}:${PORTSDIR}/devel/llvm
+.if defined(PACKAGE_BUILDING) || defined(MAINTAINER_MODE)
+BUILD_DEPENDS+= runtest:${PORTSDIR}/misc/dejagnu
+.endif
+.if defined(MAINTAINER_MODE)
+BUILD_DEPENDS+= f2c:${PORTSDIR}/lang/f2c
+.endif
+
+GNU_CONFIGURE= yes
+USE_GCC= 4.2+
+USE_GMAKE= yes
+USE_LDCONFIG= yes
+USE_PERL5= yes
+USE_PYTHON= yes
+MAKE_JOBS_SAFE= yes
+
+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+= PORTVERSION=${PORTVERSION}
+
+.include <bsd.port.options.mk>
+
+.if defined(MAINTAINER_MODE)
+CONFIGURE_ARGS+= --with-f2c=${LOCALBASE}
+.else
+CONFIGURE_ARGS+= --enable-optimized
+.endif
+
+.if ${PORT_OPTIONS:MDOCS}
+CONFIGURE_ARGS+= --enable-docs
+.else
+CONFIGURE_ARGS+= --disable-docs
+.endif
+
+.if ${PORT_OPTIONS:MASSERTS}
+CONFIGURE_ARGS+= --enable-assertions
+RELTYPE= Release+Asserts
+.else
+CONFIGURE_ARGS+= --disable-assertions
+RELTYPE= Release
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "sparc64"
+BROKEN= Does not compile on sparc64
+.endif
+
+post-extract:
+ cd ${WRKSRC}/tools && \
+ tar xf ${DISTDIR}/${CLANG_SOURCE} && \
+ ${MV} ${CLANG_NAME} clang
+
+post-patch:
+ ${REINPLACE_CMD} -e 's|\(PROJ_docsdir.*:=\).*$$|\1${DOCSDIR}|g' \
+ ${WRKSRC}/Makefile.config.in
+ ${REINPLACE_CMD} -e 's|\(PROJ_mandir.*:=\).*$$|\1${MANPREFIX}/man|g' \
+ ${WRKSRC}/Makefile.config.in
+ ${REINPLACE_CMD} -e 's|/usr/bin/env perl|${PERL}|' \
+ -e 's|%%DATADIR%%|${DATADIR}|' \
+ ${WRKSRC}/tools/clang/tools/scan-build/ccc-analyzer \
+ ${WRKSRC}/tools/clang/tools/scan-build/c++-analyzer \
+ ${WRKSRC}/tools/clang/tools/scan-build/scan-build
+ ${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|' \
+ ${WRKSRC}/tools/clang/tools/scan-view/scan-view
+
+pre-build:
+ ${LN} -sf ${LOCALBASE}/include/llvm/Intrinsics.gen ${WRKSRC}/include/llvm/
+ ${MKDIR} ${WRKSRC}/${RELTYPE}/lib
+ ${LN} -sf ${LOCALBASE}/lib/libLLVM-${PORTVERSION}.so ${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 empty(PORT_OPTIONS:MDOCS)
+post-build:
+ @cd ${WRKSRC}/tools/clang/docs/tools && ${GMAKE} clang.1
+.endif
+
+post-install:
+ @${INSTALL_SCRIPT} ${WRKSRC}/tools/clang/tools/scan-build/ccc-analyzer \
+ ${WRKSRC}/tools/clang/tools/scan-build/c++-analyzer \
+ ${WRKSRC}/tools/clang/tools/scan-build/scan-build \
+ ${WRKSRC}/tools/clang/tools/scan-view/scan-view \
+ ${PREFIX}/bin
+ @${MKDIR} ${PYTHONPREFIX_SITELIBDIR}
+ @${MKDIR} ${PYTHONPREFIX_SITELIBDIR}/Resources
+ @${INSTALL_SCRIPT} ${WRKSRC}/tools/clang/tools/scan-view/*.py \
+ ${PYTHONPREFIX_SITELIBDIR}
+ @${INSTALL_SCRIPT} ${WRKSRC}/tools/clang/tools/scan-view/Resources/* \
+ ${PYTHONPREFIX_SITELIBDIR}/Resources
+ @${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 empty(PORT_OPTIONS:MDOCS)
+ @${INSTALL_MAN} ${WRKSRC}/tools/clang/docs/tools/clang.1 \
+ ${MANPREFIX}/man/man1/
+.else
+ @${RMDIR} ${DOCSDIR}/html/img
+.endif
+
+TEST_CMD= '(cd ${WRKSRC}/test; ${SETENV} ${MAKE_ENV} ${GMAKE} check)'
+regression-test: ${BUILD_COOKIE}
+ if [ `${ID} -u` = 0 ]; then \
+ ${CHOWN} -R nobody ${WRKSRC}/test; \
+ su -m nobody -c ${TEST_CMD}; \
+ else \
+ ${SH} -c ${TEST_CMD}; \
+ fi
+
+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*
+PLIST_DIR_LIST= include/clang \
+ include/clang-c \
+ lib/clang
+PLIST_PYFILE_LIST= ScanView.py \
+ Reporter.py \
+ Resources/* \
+ startfile.py
+PLIST_PYDIR_LIST= Resources
+
+build-plist:
+ ${RM} -f ${PLIST}
+ cd ${PREFIX} && \
+ (ls ${PLIST_FILE_LIST}; ${FIND} ${PLIST_DIR_LIST} -type f) | \
+ ${SED} -e 's|${PORTVERSION}|%%PORTVERSION%%|' | ${SORT} >> ${PLIST}
+ ${FIND} ${DATADIR} ${DOCSDIR} -type f | \
+ ${SED} -e 's|${DATADIR}|%%DATADIR%%|' \
+ -e 's|${DOCSDIR}|%%PORTDOCS%%%%DOCSDIR%%|' | ${SORT} >> ${PLIST}
+ cd ${PYTHONPREFIX_SITELIBDIR} && \
+ ls ${PLIST_PYFILE_LIST} | ${SORT} | \
+ ${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 | \
+ ${SED} -e 's|^|@dirrm %%PYTHON_SITELIBDIR%%/|' >> ${PLIST}
+ ${FIND} ${DATADIR} ${DOCSDIR} -type d | ${SORT} -r | \
+ ${SED} -e 's|${DATADIR}|@dirrm %%DATADIR%%|' \
+ -e 's|${DOCSDIR}|%%PORTDOCS%%@dirrm %%DOCSDIR%%|' >> ${PLIST}
+
+.include <bsd.port.post.mk>
diff --git a/lang/clang31/distinfo b/lang/clang31/distinfo
new file mode 100644
index 000000000000..0103d94048c5
--- /dev/null
+++ b/lang/clang31/distinfo
@@ -0,0 +1,4 @@
+SHA256 (clang-3.1.src.tar.gz) = ff63e215dcd3e2838ffdea38502f8d35bab17e487f3c3799579961e452d5a786
+SIZE (clang-3.1.src.tar.gz) = 8158418
+SHA256 (llvm-3.1.src.tar.gz) = 1ea05135197b5400c1f88d00ff280d775ce778f8f9ea042e25a1e1e734a4b9ab
+SIZE (llvm-3.1.src.tar.gz) = 11077429
diff --git a/lang/clang31/files/patch-tools_clang_include_clang_Analysis_Analyses_FormatString.h b/lang/clang31/files/patch-tools_clang_include_clang_Analysis_Analyses_FormatString.h
new file mode 100644
index 000000000000..7d178ab4f591
--- /dev/null
+++ b/lang/clang31/files/patch-tools_clang_include_clang_Analysis_Analyses_FormatString.h
@@ -0,0 +1,16 @@
+
+$FreeBSD$
+
+--- tools/clang/include/clang/Analysis/Analyses/FormatString.h.orig
++++ tools/clang/include/clang/Analysis/Analyses/FormatString.h
+@@ -143,6 +143,10 @@
+
+ // ** Printf-specific **
+
++ // FreeBSD specific specifiers
++ bArg,
++ DArg,
++
+ // Objective-C specific specifiers.
+ ObjCObjArg, // '@'
+ ObjCBeg = ObjCObjArg, ObjCEnd = ObjCObjArg,
diff --git a/lang/clang31/files/patch-tools_clang_lib_Analysis_PrintfFormatString.cpp b/lang/clang31/files/patch-tools_clang_lib_Analysis_PrintfFormatString.cpp
new file mode 100644
index 000000000000..b77afbc41600
--- /dev/null
+++ b/lang/clang31/files/patch-tools_clang_lib_Analysis_PrintfFormatString.cpp
@@ -0,0 +1,26 @@
+
+$FreeBSD$
+
+--- tools/clang/lib/Analysis/PrintfFormatString.cpp.orig
++++ tools/clang/lib/Analysis/PrintfFormatString.cpp
+@@ -192,11 +192,20 @@
+ case '@': k = ConversionSpecifier::ObjCObjArg; break;
+ // Glibc specific.
+ case 'm': k = ConversionSpecifier::PrintErrno; break;
++ // FreeBSD format extensions
++ case 'b': k = ConversionSpecifier::bArg; break; /* check for int and then char * */
++ case 'r': k = ConversionSpecifier::xArg; break;
++ case 'y': k = ConversionSpecifier::iArg; break;
++ case 'D': k = ConversionSpecifier::DArg; break; /* check for u_char * pointer and a char * string */
++
+ }
+ PrintfConversionSpecifier CS(conversionPosition, k);
+ FS.setConversionSpecifier(CS);
+ if (CS.consumesDataArgument() && !FS.usesPositionalArg())
+ FS.setArgIndex(argIndex++);
++ // FreeBSD extension
++ if (k == ConversionSpecifier::bArg || k == ConversionSpecifier::DArg)
++ argIndex++;
+
+ if (k == ConversionSpecifier::InvalidSpecifier) {
+ // Assume the conversion takes one argument.
diff --git a/lang/clang31/files/patch-tools_clang_lib_Headers_Makefile b/lang/clang31/files/patch-tools_clang_lib_Headers_Makefile
new file mode 100644
index 000000000000..41493c66230c
--- /dev/null
+++ b/lang/clang31/files/patch-tools_clang_lib_Headers_Makefile
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- 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/lang/clang31/files/patch-tools_clang_lib_Sema_SemaChecking.cpp b/lang/clang31/files/patch-tools_clang_lib_Sema_SemaChecking.cpp
new file mode 100644
index 000000000000..f57ac2281a7f
--- /dev/null
+++ b/lang/clang31/files/patch-tools_clang_lib_Sema_SemaChecking.cpp
@@ -0,0 +1,45 @@
+
+$FreeBSD$
+
+--- tools/clang/lib/Sema/SemaChecking.cpp.orig
++++ tools/clang/lib/Sema/SemaChecking.cpp
+@@ -1511,6 +1511,39 @@
+ CoveredArgs.set(argIndex);
+ }
+
++ // FreeBSD extensions
++ if (CS.getKind() == ConversionSpecifier::bArg || CS.getKind() == ConversionSpecifier::DArg) {
++ // claim the second argument
++ CoveredArgs.set(argIndex + 1);
++
++ // Now type check the data expression that matches the
++ // format specifier.
++ const Expr *Ex = getDataArg(argIndex);
++ QualType type = (CS.getKind() == ConversionSpecifier::bArg) ? S.Context.IntTy : S.Context.getPointerType(S.Context.UnsignedCharTy);
++ //const analyze_printf::ArgTypeResult &ATR = S.Context.IntTy;
++ const analyze_printf::ArgTypeResult &ATR = type;
++ if (ATR.isValid() && !ATR.matchesType(S.Context, Ex->getType()))
++ S.Diag(getLocationOfByte(CS.getStart()),
++ diag::warn_printf_conversion_argument_type_mismatch)
++ << ATR.getRepresentativeType(S.Context) << Ex->getType()
++ << getSpecifierRange(startSpecifier, specifierLen)
++ << Ex->getSourceRange();
++
++ // Now type check the data expression that matches the
++ // format specifier.
++ Ex = getDataArg(argIndex + 1);
++ const analyze_printf::ArgTypeResult &ATR2 = ArgTypeResult::CStrTy;
++ if (ATR2.isValid() && !ATR2.matchesType(S.Context, Ex->getType()))
++ S.Diag(getLocationOfByte(CS.getStart()),
++ diag::warn_printf_conversion_argument_type_mismatch)
++ << ATR2.getRepresentativeType(S.Context) << Ex->getType()
++ << getSpecifierRange(startSpecifier, specifierLen)
++ << Ex->getSourceRange();
++
++ return true;
++ }
++ // END OF FREEBSD EXTENSIONS
++
+ // Check for using an Objective-C specific conversion specifier
+ // in a non-ObjC literal.
+ if (!IsObjCLiteral && CS.isObjCArg()) {
diff --git a/lang/clang31/files/patch-tools_clang_lib_Sema_SemaDeclCXX.cpp b/lang/clang31/files/patch-tools_clang_lib_Sema_SemaDeclCXX.cpp
new file mode 100644
index 000000000000..c185a0f223e3
--- /dev/null
+++ b/lang/clang31/files/patch-tools_clang_lib_Sema_SemaDeclCXX.cpp
@@ -0,0 +1,37 @@
+
+$FreeBSD$
+
+--- tools/clang/lib/Sema/SemaDeclCXX.cpp.orig
++++ tools/clang/lib/Sema/SemaDeclCXX.cpp
+@@ -10795,14 +10795,23 @@
+
+ void Sema::MarkVirtualMembersReferenced(SourceLocation Loc,
+ const CXXRecordDecl *RD) {
+- for (CXXRecordDecl::method_iterator i = RD->method_begin(),
+- e = RD->method_end(); i != e; ++i) {
+- CXXMethodDecl *MD = *i;
+-
+- // C++ [basic.def.odr]p2:
+- // [...] A virtual member function is used if it is not pure. [...]
+- if (MD->isVirtual() && !MD->isPure())
+- MarkFunctionReferenced(Loc, MD);
++ // Mark all functions which will appear in RD's vtable as used.
++ CXXFinalOverriderMap FinalOverriders;
++ RD->getFinalOverriders(FinalOverriders);
++ for (CXXFinalOverriderMap::const_iterator I = FinalOverriders.begin(),
++ E = FinalOverriders.end();
++ I != E; ++I) {
++ for (OverridingMethods::const_iterator OI = I->second.begin(),
++ OE = I->second.end();
++ OI != OE; ++OI) {
++ assert(OI->second.size() > 0 && "no final overrider");
++ CXXMethodDecl *Overrider = OI->second.front().Method;
++
++ // C++ [basic.def.odr]p2:
++ // [...] A virtual member function is used if it is not pure. [...]
++ if (!Overrider->isPure())
++ MarkFunctionReferenced(Loc, Overrider);
++ }
+ }
+
+ // Only classes that have virtual bases need a VTT.
diff --git a/lang/clang31/files/patch-tools_clang_tools_scan-build_scan-build b/lang/clang31/files/patch-tools_clang_tools_scan-build_scan-build
new file mode 100644
index 000000000000..291eafdeb2fc
--- /dev/null
+++ b/lang/clang31/files/patch-tools_clang_tools_scan-build_scan-build
@@ -0,0 +1,23 @@
+
+$FreeBSD$
+
+--- tools/clang/tools/scan-build/scan-build.orig
++++ tools/clang/tools/scan-build/scan-build
+@@ -423,7 +423,7 @@
+
+ my $Dir = shift;
+
+- my $JS = Cwd::realpath("$RealBin/sorttable.js");
++ my $JS = Cwd::realpath("%%DATADIR%%/sorttable.js");
+
+ DieDiag("Cannot find 'sorttable.js'.\n")
+ if (! -r $JS);
+@@ -433,7 +433,7 @@
+ DieDiag("Could not copy 'sorttable.js' to '$Dir'.\n")
+ if (! -r "$Dir/sorttable.js");
+
+- my $CSS = Cwd::realpath("$RealBin/scanview.css");
++ my $CSS = Cwd::realpath("%%DATADIR%%/scanview.css");
+
+ DieDiag("Cannot find 'scanview.css'.\n")
+ if (! -r $CSS);
diff --git a/lang/clang31/files/patch-utils_llvm-build_llvmbuild_main.py b/lang/clang31/files/patch-utils_llvm-build_llvmbuild_main.py
new file mode 100644
index 000000000000..1e2de0273d55
--- /dev/null
+++ b/lang/clang31/files/patch-utils_llvm-build_llvmbuild_main.py
@@ -0,0 +1,20 @@
+
+$FreeBSD$
+
+--- utils/llvm-build/llvmbuild/main.py.orig
++++ utils/llvm-build/llvmbuild/main.py
+@@ -633,7 +633,13 @@
+
+ # We handle a few special cases of target names here for historical
+ # reasons, as these are the names configure currently comes up with.
+- native_target_name = { 'x86' : 'X86',
++ native_target_name = { 'amd64' : 'X86',
++ 'arm' : 'ARM',
++ 'i386' : 'X86',
++ 'mips' : 'Mips',
++ 'powerpc' : 'PowerPC',
++ 'sparc64' : 'Sparc',
++ 'x86' : 'X86',
+ 'x86_64' : 'X86',
+ 'Unknown' : None }.get(opts.native_target,
+ opts.native_target)
diff --git a/lang/clang31/pkg-descr b/lang/clang31/pkg-descr
new file mode 100644
index 000000000000..37b1d8e486d6
--- /dev/null
+++ b/lang/clang31/pkg-descr
@@ -0,0 +1,4 @@
+The goal of the Clang project is to create a new C, C++, Objective C and
+Objective C++ front-end for the LLVM compiler.
+
+WWW: http://clang.llvm.org/
diff --git a/lang/clang31/pkg-plist b/lang/clang31/pkg-plist
new file mode 100644
index 000000000000..a5a622bcfe48
--- /dev/null
+++ b/lang/clang31/pkg-plist
@@ -0,0 +1,446 @@
+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
+include/clang/AST/ASTContext.h
+include/clang/AST/ASTDiagnostic.h
+include/clang/AST/ASTImporter.h
+include/clang/AST/ASTMutationListener.h
+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/BuiltinTypes.def
+include/clang/AST/CXXInheritance.h
+include/clang/AST/CanonicalType.h
+include/clang/AST/CharUnits.h
+include/clang/AST/Decl.h
+include/clang/AST/DeclAccessPair.h
+include/clang/AST/DeclBase.h
+include/clang/AST/DeclCXX.h
+include/clang/AST/DeclContextInternals.h
+include/clang/AST/DeclFriend.h
+include/clang/AST/DeclGroup.h
+include/clang/AST/DeclLookups.h
+include/clang/AST/DeclNodes.inc
+include/clang/AST/DeclObjC.h
+include/clang/AST/DeclTemplate.h
+include/clang/AST/DeclVisitor.h
+include/clang/AST/DeclarationName.h
+include/clang/AST/DependentDiagnostic.h
+include/clang/AST/EvaluatedExprVisitor.h
+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/LambdaMangleContext.h
+include/clang/AST/Mangle.h
+include/clang/AST/NSAPI.h
+include/clang/AST/NestedNameSpecifier.h
+include/clang/AST/OperationKinds.h
+include/clang/AST/ParentMap.h
+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
+include/clang/AST/StmtIterator.h
+include/clang/AST/StmtNodes.inc
+include/clang/AST/StmtObjC.h
+include/clang/AST/StmtVisitor.h
+include/clang/AST/TemplateBase.h
+include/clang/AST/TemplateName.h
+include/clang/AST/Type.h
+include/clang/AST/TypeLoc.h
+include/clang/AST/TypeLocNodes.def
+include/clang/AST/TypeLocVisitor.h
+include/clang/AST/TypeNodes.def
+include/clang/AST/TypeOrdering.h
+include/clang/AST/TypeVisitor.h
+include/clang/AST/UnresolvedSet.h
+include/clang/AST/VTTBuilder.h
+include/clang/AST/VTableBuilder.h
+include/clang/Analysis/Analyses/CFGReachabilityAnalysis.h
+include/clang/Analysis/Analyses/Dominators.h
+include/clang/Analysis/Analyses/FormatString.h
+include/clang/Analysis/Analyses/LiveVariables.h
+include/clang/Analysis/Analyses/PostOrderCFGView.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/AnalysisContext.h
+include/clang/Analysis/AnalysisDiagnostic.h
+include/clang/Analysis/CFG.h
+include/clang/Analysis/CFGStmtMap.h
+include/clang/Analysis/CallGraph.h
+include/clang/Analysis/DomainSpecific/CocoaConventions.h
+include/clang/Analysis/FlowSensitive/DataflowSolver.h
+include/clang/Analysis/FlowSensitive/DataflowValues.h
+include/clang/Analysis/ProgramPoint.h
+include/clang/Analysis/Support/BlkExprDeclBitVector.h
+include/clang/Analysis/Support/BumpVector.h
+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/AllDiagnostics.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/BuiltinsHexagon.def
+include/clang/Basic/BuiltinsPPC.def
+include/clang/Basic/BuiltinsPTX.def
+include/clang/Basic/BuiltinsX86.def
+include/clang/Basic/ConvertUTF.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/DiagnosticSerializationKinds.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/Lambda.h
+include/clang/Basic/LangOptions.def
+include/clang/Basic/LangOptions.h
+include/clang/Basic/Linkage.h
+include/clang/Basic/MacroBuilder.h
+include/clang/Basic/Module.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
+include/clang/Basic/PartialDiagnostic.h
+include/clang/Basic/PrettyStackTrace.h
+include/clang/Basic/SourceLocation.h
+include/clang/Basic/SourceManager.h
+include/clang/Basic/SourceManagerInternals.h
+include/clang/Basic/Specifiers.h
+include/clang/Basic/TargetBuiltins.h
+include/clang/Basic/TargetInfo.h
+include/clang/Basic/TargetOptions.h
+include/clang/Basic/TemplateKinds.h
+include/clang/Basic/TokenKinds.def
+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
+include/clang/CodeGen/CodeGenAction.h
+include/clang/CodeGen/ModuleBuilder.h
+include/clang/Config/config.h
+include/clang/Driver/Action.h
+include/clang/Driver/Arg.h
+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
+include/clang/Driver/Options.h
+include/clang/Driver/Options.inc
+include/clang/Driver/Phases.h
+include/clang/Driver/Tool.h
+include/clang/Driver/ToolChain.h
+include/clang/Driver/Types.def
+include/clang/Driver/Types.h
+include/clang/Driver/Util.h
+include/clang/Edit/Commit.h
+include/clang/Edit/EditedSource.h
+include/clang/Edit/EditsReceiver.h
+include/clang/Edit/FileOffset.h
+include/clang/Edit/Rewriters.h
+include/clang/Frontend/ASTConsumers.h
+include/clang/Frontend/ASTUnit.h
+include/clang/Frontend/Analyses.def
+include/clang/Frontend/AnalyzerOptions.h
+include/clang/Frontend/ChainedDiagnosticConsumer.h
+include/clang/Frontend/ChainedIncludesSource.h
+include/clang/Frontend/CodeGenOptions.h
+include/clang/Frontend/CommandLineSourceLoc.h
+include/clang/Frontend/CompilerInstance.h
+include/clang/Frontend/CompilerInvocation.h
+include/clang/Frontend/DependencyOutputOptions.h
+include/clang/Frontend/DiagnosticOptions.h
+include/clang/Frontend/DiagnosticRenderer.h
+include/clang/Frontend/FrontendAction.h
+include/clang/Frontend/FrontendActions.h
+include/clang/Frontend/FrontendDiagnostic.h
+include/clang/Frontend/FrontendOptions.h
+include/clang/Frontend/FrontendPluginRegistry.h
+include/clang/Frontend/HeaderSearchOptions.h
+include/clang/Frontend/LangStandard.h
+include/clang/Frontend/LangStandards.def
+include/clang/Frontend/LayoutOverrideSource.h
+include/clang/Frontend/LogDiagnosticPrinter.h
+include/clang/Frontend/MigratorOptions.h
+include/clang/Frontend/MultiplexConsumer.h
+include/clang/Frontend/PreprocessorOptions.h
+include/clang/Frontend/PreprocessorOutputOptions.h
+include/clang/Frontend/SerializedDiagnosticPrinter.h
+include/clang/Frontend/TextDiagnostic.h
+include/clang/Frontend/TextDiagnosticBuffer.h
+include/clang/Frontend/TextDiagnosticPrinter.h
+include/clang/Frontend/Utils.h
+include/clang/Frontend/VerifyDiagnosticConsumer.h
+include/clang/FrontendTool/Utils.h
+include/clang/Lex/AttrSpellings.inc
+include/clang/Lex/CodeCompletionHandler.h
+include/clang/Lex/DirectoryLookup.h
+include/clang/Lex/ExternalPreprocessorSource.h
+include/clang/Lex/HeaderMap.h
+include/clang/Lex/HeaderSearch.h
+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/ModuleMap.h
+include/clang/Lex/MultipleIncludeOpt.h
+include/clang/Lex/PPCallbacks.h
+include/clang/Lex/PTHLexer.h
+include/clang/Lex/PTHManager.h
+include/clang/Lex/Pragma.h
+include/clang/Lex/PreprocessingRecord.h
+include/clang/Lex/Preprocessor.h
+include/clang/Lex/PreprocessorLexer.h
+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
+include/clang/Rewrite/ASTConsumers.h
+include/clang/Rewrite/DeltaTree.h
+include/clang/Rewrite/FixItRewriter.h
+include/clang/Rewrite/FrontendActions.h
+include/clang/Rewrite/HTMLRewrite.h
+include/clang/Rewrite/RewriteRope.h
+include/clang/Rewrite/Rewriter.h
+include/clang/Rewrite/Rewriters.h
+include/clang/Rewrite/TokenRewriter.h
+include/clang/Sema/AnalysisBasedWarnings.h
+include/clang/Sema/AttrParsedAttrKinds.inc
+include/clang/Sema/AttrParsedAttrList.inc
+include/clang/Sema/AttrTemplateInstantiate.inc
+include/clang/Sema/AttributeList.h
+include/clang/Sema/CXXFieldCollector.h
+include/clang/Sema/CodeCompleteConsumer.h
+include/clang/Sema/DeclSpec.h
+include/clang/Sema/DelayedDiagnostic.h
+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/ObjCMethodList.h
+include/clang/Sema/Overload.h
+include/clang/Sema/Ownership.h
+include/clang/Sema/ParsedTemplate.h
+include/clang/Sema/PrettyDeclStackTrace.h
+include/clang/Sema/Scope.h
+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/ASTWriter.h
+include/clang/Serialization/AttrPCHRead.inc
+include/clang/Serialization/AttrPCHWrite.inc
+include/clang/Serialization/ContinuousRangeMap.h
+include/clang/Serialization/Module.h
+include/clang/Serialization/ModuleManager.h
+include/clang/Serialization/SerializationDiagnostic.h
+include/clang/StaticAnalyzer/Checkers/ClangCheckers.h
+include/clang/StaticAnalyzer/Checkers/CommonBugCategories.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/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
+include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h
+include/clang/StaticAnalyzer/Core/PathSensitive/CheckerHelpers.h
+include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h
+include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h
+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/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
+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/TaintManager.h
+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/CompilationDatabase.h
+include/clang/Tooling/Tooling.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/module.map
+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
+lib/libclangCodeGen.a
+lib/libclangDriver.a
+lib/libclangEdit.a
+lib/libclangFrontend.a
+lib/libclangFrontendTool.a
+lib/libclangLex.a
+lib/libclangParse.a
+lib/libclangRewrite.a
+lib/libclangSema.a
+lib/libclangSerialization.a
+lib/libclangStaticAnalyzerCheckers.a
+lib/libclangStaticAnalyzerCore.a
+lib/libclangStaticAnalyzerFrontend.a
+lib/libclangTooling.a
+%%DATADIR%%/scanview.css
+%%DATADIR%%/sorttable.js
+%%PORTDOCS%%%%DOCSDIR%%/html.tar.gz
+%%PORTDOCS%%%%DOCSDIR%%/html/AddressSanitizer.html
+%%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/ObjectiveCLiterals.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%%/ps/clang.ps
+%%PYTHON_SITELIBDIR%%/Reporter.py
+%%PYTHON_SITELIBDIR%%/Resources/FileRadar.scpt
+%%PYTHON_SITELIBDIR%%/Resources/GetRadarVersion.scpt
+%%PYTHON_SITELIBDIR%%/Resources/bugcatcher.ico
+%%PYTHON_SITELIBDIR%%/ScanView.py
+%%PYTHON_SITELIBDIR%%/startfile.py
+@dirrm lib/clang/%%PORTVERSION%%/include
+@dirrm lib/clang/%%PORTVERSION%%
+@dirrm lib/clang
+@dirrm include/clang/Tooling
+@dirrm include/clang/StaticAnalyzer/Frontend
+@dirrm include/clang/StaticAnalyzer/Core/PathSensitive
+@dirrm include/clang/StaticAnalyzer/Core/BugReporter
+@dirrm include/clang/StaticAnalyzer/Core
+@dirrm include/clang/StaticAnalyzer/Checkers
+@dirrm include/clang/StaticAnalyzer
+@dirrm include/clang/Serialization
+@dirrm include/clang/Sema
+@dirrm include/clang/Rewrite
+@dirrm include/clang/Parse
+@dirrm include/clang/Lex
+@dirrm include/clang/FrontendTool
+@dirrm include/clang/Frontend
+@dirrm include/clang/Edit
+@dirrm include/clang/Driver
+@dirrm include/clang/Config
+@dirrm include/clang/CodeGen
+@dirrm include/clang/Basic
+@dirrm include/clang/Analysis/Visitors
+@dirrm include/clang/Analysis/Support
+@dirrm include/clang/Analysis/FlowSensitive
+@dirrm include/clang/Analysis/DomainSpecific
+@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
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/ps
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/html/clang
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm %%DATADIR%%