# -*- 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
PortGroup compiler_blacklist_versions 1.0
maintainers {eborisch @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. \
This port works with MacPorts' clang-3.7+ (optionally \
with +openmp variant for clang-3.7.)
supported_archs i386 x86_64
if { ${subport} eq "libomp-devel" } {
if {${os.platform} eq "darwin" && ${configure.cxx_stdlib} eq "libstdc++"} {
github.setup llvm-mirror openmp 5cab539
worksrcdir openmp-${version}
rmd160 a3852e92166568420178d052c331abd29a76aec6 \
sha256 2d2c2e8b511b9d8e9d48c1330561dc75afc2a3cc35b69b936eee0719ef2bc9bc \
http://llvm.org/viewvc/llvm-project/openmp/trunk/?view=log
livecheck.version ${version}
livecheck.regex revision=(\[0-9\]+)
if {${os.platform} eq "darwin" && ${configure.cxx_stdlib} ne "libstdc++"} {
# kmp_alloc.c includes <atomic> but libc++ is not the default on
# these systems. https://trac.macports.org/ticket/52554
configure.cflags-append -stdlib=libc++
master_sites https://releases.llvm.org/${version}
distname openmp-${version}.src
dist_subdir openmp-release