# -*- 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
github.setup ispc ispc 1.9.1 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 07ab58ef9675d042d8b5fcd74a0b33d9edc943cf \
sha256 4e3d835c57d7a4be52af5c5a8afa99c83d5416e14fc8aaaa9e6408eed9b4e025
depends_build port:bison \
depends_lib port:clang-${llvm_version}
configure.compiler macports-clang-${llvm_version}
patchfiles patch-Makefile.diff
if {[variant_isset doc]} {
reinplace {s|rst2html.py|rst2html-2.7.py|} ${worksrcpath}/docs/build.sh
build.args LLVM_CONFIG=${prefix}/bin/llvm-config-mp-${llvm_version} \
PYTHON=${prefix}/bin/python2.7 \
OPT="${configure.cxxflags} -fvisibility=hidden" \
YACC="${prefix}/bin/bison -d -v -t" \
BUILD_VERSION=${version} \
LDFLAGS=${configure.ldflags}
test.cmd {python run_tests.py}
xinstall -m 755 ${worksrcpath}/ispc ${destroot}${prefix}/bin
xinstall -d -m 755 ${destroot}${prefix}/share/${name}
file copy ${worksrcpath}/examples ${destroot}${prefix}/share/${name}
if {[variant_isset doc]} {
system "cd ${worksrcpath}/docs; ./build.sh"
xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
variant doc description {build and install documentation} {