# -*- 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 active_variants 1.1
github.setup ispc ispc 1.12.0 v
maintainers {takeshi @tenomoto} openmaintainer
description Intel SPMD program compiler
${name} is a compiler for a variant of the C programming language, \
with extensions for single program, multiple data programming.
homepage http://${name}.github.com
checksums rmd160 9b933175ad243d8acf4511781409841531f8f8f6 \
sha256 d9633001825f82ce6fa3f525bdd948db81e56461829e828fac110b41e40225dc \
# add llvm-${llvm_version} explicitly to force require_active_variants
port:llvm-${llvm_version} \
port:clang-${llvm_version}
require_active_variants \
llvm-${llvm_version} debug
patchfiles patch-CMakeLists.txt.diff
patchfiles-append unknown-architecture-i386.patch
reinplace "s|-emit-llvm|-isysroot ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -emit-llvm|" \
${worksrcpath}/cmake/GenerateBuiltins.cmake
configure.compiler macports-clang-${llvm_version}
configure.cflags-append \
configure.cxxflags-append \
-DBISON_EXECUTABLE=${prefix}/bin/bison \
-DFLEX_EXECUTABLE=${prefix}/bin/flex \
-DPYTHON_EXECUTABLE=${prefix}/bin/python2.7 \
-DLLVM_DIR=${prefix}/libexec/llvm-${llvm_version}/lib/cmake/llvm \
test.cmd {python run_tests.py}