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

PortSystem          1.0
PortGroup           meson 1.0
PortGroup           muniversal 1.1

name                orc
version             0.4.42
revision            0

checksums           rmd160  bd1a19d5ff4e25ecc2b9cfdf0ce61f3175f438d7 \
                    sha256  7ec912ab59af3cc97874c456a56a8ae1eec520c385ec447e8a102b2bd122c90c \
                    size    280792

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
license             BSD
homepage            https://gstreamer.freedesktop.org/modules/orc.html
master_sites        https://gstreamer.freedesktop.org/src/orc/

use_xz              yes

# https://trac.macports.org/ticket/70658
compiler.c_standard 2011

# Undefined symbols for architecture x86_64: "__xgetbv"
# uses newer assembly features on Intel
compiler.blacklist-append \
                    {clang < 1100}

test.run            yes

platform darwin 8 {
    # meson on Tiger cannot use rpaths, so we workaround with this to find dylib
    build.env-append       "DYLD_LIBRARY_PATH=${build_dir}/${name}"
    test.env-append        "DYLD_LIBRARY_PATH=${build_dir}/${name}:${build_dir}/${name}-test"
    destroot.env-append    "DYLD_LIBRARY_PATH=${build_dir}/${name}"
}
