# -*- 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 114328 2013-12-05 10:21:52Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           muniversal 1.0

name                orc
version             0.4.18
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  5a68330127da7e03e8a4d844af72cca9c5f25894 \
                    sha256  34d3c8a7259f42bed4dcfbc106c5e3d0cc8e17eeaa73128d1c5eaf92883a6a24

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

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