# -*- 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
maintainers {larryv @larryv}
description Test-case reduction for C compiler bugs
long_description C-Reduce is a tool that takes a large C, C++, \
or OpenCL file that has a property of interest \
(such as triggering a compiler bug) and \
automatically produces a much smaller C/C++ \
file that has the same property. It is \
intended for use by people who discover and \
report bugs in compilers and other tools that \
homepage http://embed.cs.utah.edu/creduce
# INSTALL notes the specific version of LLVM that is required.
# INSTALL mentions flex, but the tarball ships with pregenerated parsers.
depends_build port:llvm-${llvm_version}
# Required by the LLVM static libraries.
depends_lib port:ncurses port:zlib
# Not required at compile time, but the configure script checks for them.
depends_lib-append port:clang-${llvm_version} \
port:perl${perl5.major} \
port:p${perl5.major}-exporter-lite \
port:p${perl5.major}-file-which \
port:p${perl5.major}-getopt-tabular \
port:p${perl5.major}-regexp-common \
port:p${perl5.major}-sys-cpu \
port:p${perl5.major}-term-readkey
depends_skip_archcheck clang-${llvm_version} \
p${perl5.major}-sys-cpu \
p${perl5.major}-term-readkey
master_sites ${homepage}/
checksums rmd160 8c4cf6231983bf22790bab0a0cf5443924673ca3 \
sha256 36dca859c97a988e71b1a08e0cbd5849e4da051d248c5e483494194c4a231a41
configure.perl ${prefix}/bin/perl${perl5.major}
configure.args --libexecdir=${prefix}/libexec/${name} \
--with-llvm=${prefix}/libexec/llvm-${llvm_version}
set docdir ${prefix}/share/doc/${name}
xinstall -m 755 -d ${destroot}${docdir}