# -*- 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           cmake 1.1
PortGroup           github 1.0

github.setup        OpenShot libopenshot-audio 1.0.0 v
revision            0

github.tarball_from archive
checksums           rmd160  84ebc89f5a83f010af3e8fb3cd99fda8c73e2328 \
                    sha256  80dc23fff901064194fcc7732d41cc953df6b7ed2742376fcf28df23b5a10a29 \
                    size    2261186
homepage            https://www.openshot.org/
categories          multimedia devel
license             GPL-3+
platforms           {darwin >= 13}
maintainers         nomaintainer

description         Library for creating and editing videos
long_description    ${description}

patchfiles          patch-cmake.diff

compiler.cxx_standard   2017

# needs atomics support which is a C11 feature; references
# https://stackoverflow.com/questions/26440606/xcode-and-c11-stdatomic-h
# https://stackoverflow.com/questions/20326604/stdatomic-h-in-gcc-4-8
# indicates compatible compilers are Xcode > Xcode 7, clang > 3.7, and gcc > 4.8
compiler.blacklist-append *gcc-3.* *gcc-4.*
compiler.blacklist-append { clang < 700 } macports-clang-3.3 macports-clang-3.4

depends_lib         port:zlib

# ./src/openshot-audio-test-sound  (This should play a test sound)
