# -*- 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           muniversal 1.0

name                orc
version             0.4.26
description         Orc - The Oil Runtime Compiler
long_description    Orc is a library and set of tools for compiling and executing very simple programs that operate on arrays of data.
maintainers         nomaintainer
categories          devel
platforms           darwin
license             BSD
homepage            http://code.entropywave.com/projects/orc/
master_sites        http://gstreamer.freedesktop.org/src/orc/

use_xz              yes

checksums           rmd160  4adccaef90f704cd97c84cefebf5732cb6426128 \
                    sha256  7d52fa80ef84988359c3434e1eea302d077a08987abdde6905678ebcad4fa649

depends_build       port:coreutils

#-fgcse (from -O2) causes build failures, but -O2 -fno-gcse doesn't seem to work
if {[string match "*gcc-4.2" ${configure.compiler}]} {
    lappend merger_configure_cflags(i386) -O1 -fexpensive-optimizations
    if {![variant_isset universal] && ${build_arch} eq "i386"} {
        configure.cflags-delete -O2
        configure.cflags-append -O1 -fexpensive-optimizations
    }
}

test.run            yes
test.target         check
test.dir            ${worksrcpath}/testsuite