# -*- 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
PortGroup           compiler_blacklist_versions 1.0

name                orc
version             0.4.41
revision            0

checksums           rmd160  8737e10cb4f40b176da7e99cdfb1f89872c890eb \
                    sha256  cb1bfd4f655289cd39bc04642d597be9de5427623f0861c1fc19c08d98467fa2 \
                    size    234212

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