# -*- 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 PortGroup compiler_blacklist_versions 1.0 github.setup OpenShot libopenshot-audio 0.3.2 v github.tarball_from archive checksums rmd160 711cb989ed328baa7ecdf8b71ab92582878b3161 \ sha256 f09d5251c934e6c14d98217b44574c508318c8575e47f5c48ffaf54d9bbce3e9 \ size 1772366 homepage https://www.openshot.org/ categories multimedia devel license GPL-3+ # no links or usage of openssl license_noconflict openssl platforms darwin maintainers {ctreleaven @ctreleaven} openmaintainer description Library for creating and editing videos long_description ${description} if {${os.platform} eq "darwin" && ${os.major} < 13} { # requires CoreAudio features introduced in 10.9 known_fail yes depends_build depends_run archive_sites pre-fetch { ui_error "${name} @${version} requires OS X 10.9 or greater." return -code error "incompatible Mac OS X version" } } post-patch { #MacPorts buildbots are case sensitive and capitalization of the framework name # leads to a build failure reinplace -locale C "s|framework CoreMidi|framework CoreMIDI|" \ ${worksrcpath}/CMakeLists.txt } compiler.cxx_standard 2011 # 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)