# -*- 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: Portfile 91804 2012-04-11 01:08:07Z jeremyhu@macports.org $

PortSystem          1.0
PortGroup           muniversal 1.0

name                orc
version             0.4.16
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         rmstonecipher openmaintainer
categories          devel
platforms           darwin
license             BSD
homepage            http://code.entropywave.com/projects/orc/
master_sites        http://code.entropywave.com/download/orc/

checksums           md5     e482932e544c847761449b106ecbc483 \
                    sha1    b67131881e7834b0c820bfba468f668100fb2e91 \
                    rmd160  d2073873e11dd73aaf1a0b9758d60535a0e6b61a

patchfiles          patch_configure.diff \
                    patch_orc-test_orcarray.c.diff \
                    patch_config.h.in.diff

#-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} == "i386"} {
        configure.cflags-delete -O2
        configure.cflags-append -O1 -fexpensive-optimizations
    }
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
