# -*- 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 106229 2013-05-20 01:40:49Z rmstonecipher@macports.org $

PortSystem          1.0
PortGroup           muniversal 1.0

name                orc
version             0.4.17
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           rmd160  f8973115c16d0b9ac01e68762da28813be68a971 \
                    sha256  4fc7cca48c59fff23afee78fb642cdbde001f56401c8f47b95a16578d1d5d7e8

#-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}"
