[138813] trunk/dports/lang

eborisch at macports.org eborisch at macports.org
Mon Jul 20 16:20:10 PDT 2015


Revision: 138813
          https://trac.macports.org/changeset/138813
Author:   eborisch at macports.org
Date:     2015-07-20 16:20:10 -0700 (Mon, 20 Jul 2015)
Log Message:
-----------
libomp: New port; LLVM project's OpenMP runtime.

Added Paths:
-----------
    trunk/dports/lang/libomp/
    trunk/dports/lang/libomp/Portfile

Added: trunk/dports/lang/libomp/Portfile
===================================================================
--- trunk/dports/lang/libomp/Portfile	                        (rev 0)
+++ trunk/dports/lang/libomp/Portfile	2015-07-20 23:20:10 UTC (rev 138813)
@@ -0,0 +1,58 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem              1.0
+PortGroup               cmake 1.0
+PortGroup               muniversal 1.0
+PortGroup               compiler_blacklist_versions 1.0
+
+name                    libomp
+version                 0.0
+revision                242604
+maintainers             eborisch openmaintainer
+homepage                http://openmp.llvm.org
+description             The OpenMP subproject of LLVM
+long_description        ${description} is intended to contain all of the\
+                        components required to build an executing OpenMP\
+                        program that are outside the compiler itself.
+
+categories              lang
+platforms               darwin
+supported_archs         i386 x86_64
+license                 {MIT NCSA}
+
+svn.url                 http://llvm.org/svn/llvm-project/openmp/trunk
+svn.revision            ${revision}
+worksrcdir              ${name}-${version}/runtime
+
+cmake.out_of_source     yes
+
+# According to documentation builds with clang >= 3.3
+compiler.whitelist      clang \
+    macports-clang-3.3 \
+    macports-clang-3.4 \
+    macports-clang-3.5 \
+    macports-clang-3.6 \
+    macports-clang-3.7
+
+compiler.blacklist-append {clang < 500}
+
+post-extract {
+    file rename ${workpath}/trunk ${workpath}/${name}-${version}
+    if {${os.major} >= 14} {
+        # Comparison logic fails for 10.10 > 10.7
+        reinplace "/mac_os_new/s/:=.*/:= 1/" src/makefile.mk
+    }
+}
+
+post-destroot {
+    set instdest ${destroot}${prefix}
+    xinstall -d ${instdest}/share/doc/openmp
+    file copy ${worksrcpath}/README.txt ${worksrcpath}/../LICENSE.txt \
+      ${instdest}/share/doc/openmp/
+}
+
+notes {
+    Use with llvm-3.7/clang-3.7 (BOTH BUILT WITH THE '-assertions' VARIANT) via:
+      -I${prefix}/include -L${prefix}/lib -fopenmp=libomp
+}


Property changes on: trunk/dports/lang/libomp/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150720/7c9b1825/attachment.html>


More information about the macports-changes mailing list