Ticket #50509: Portfile.diff
File Portfile.diff, 2.1 KB (added by howarth.at.macports@…, 9 years ago) |
---|
-
Portfile
old new 54 54 that can be built using the Clang frontend as a \ 55 55 library to parse C/C++ code. 56 56 57 depends_lib port:lib xml2 port:llvm-${llvm_version} port:python2757 depends_lib port:libomp port:libxml2 port:llvm-${llvm_version} port:python27 58 58 depends_run port:clang_select port:ld64 59 59 depends_extract bin:svn:subversion 60 60 depends_build-append port:cctools … … 69 69 } 70 70 71 71 fetch.type svn 72 svn.revision 2 5934172 svn.revision 260693 73 73 74 74 set compiler_rt_rev ${svn.revision} 75 75 set libcxx_rev ${svn.revision} … … 133 133 3003-Fix-local-and-iterator-when-building-with-Lion-and-n.patch \ 134 134 3004-Fix-missing-long-long-math-prototypes-when-using-the.patch \ 135 135 3005-implement-atomic-using-mutex-lock_guard-for-64b-ops-.patch \ 136 compiler_rt-toolchain.patch 136 compiler_rt-toolchain.patch \ 137 openmp-locations.patch 137 138 138 139 # I'm not sure if we need to delete this. It seems to build fine with it 139 140 # present, but we used to explicitly only use this patch for the llvm subport. … … 162 163 configure.ldflags-append -Wl,-rpath,@loader_path 163 164 164 165 configure.args-append \ 165 -DLLVM_ BUILD_LLVM_DYLIB=ON \166 -DLLVM_LINK_LLVM_DYLIB=ON \ 166 167 -DCMAKE_INSTALL_PREFIX="${sub_prefix}" \ 167 168 -DLLVM_ENABLE_ASSERTIONS=OFF \ 168 169 -DLLVM_ENABLE_RTTI=ON \ … … 390 391 } 391 392 } 392 393 393 variant openmp description {Use MacPorts' provided libomp with -fopenmp} { 394 configure.args-append -DCLANG_DEFAULT_OPENMP_RUNTIME=libomp 395 396 depends_lib-append port:libomp 397 patchfiles-append openmp-locations.patch 398 399 post-patch { 400 reinplace "s|@@PREFIX@@|${prefix}|" \ 401 ${worksrcpath}/tools/clang/lib/Driver/Tools.cpp 402 } 394 post-patch { 395 reinplace "s|@@PREFIX@@|${prefix}|" \ 396 ${worksrcpath}/tools/clang/lib/Driver/Tools.cpp 403 397 } 404 398 405 399 post-patch {