# -*- 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 github 1.0 PortGroup cmake 1.1 github.setup AOMediaCodec libavif 1.1.1 v revision 0 checksums rmd160 ac864ac450dd86deed573b110bc4836410eee50e \ sha256 914662e16245e062ed73f90112fbb4548241300843a7772d8d441bb6859de45b \ size 13644189 categories multimedia license BSD maintainers {mascguy @mascguy} openmaintainer description Portable C implementation of the AV1 Image File Format long_description {*}${description} github.tarball_from archive cmake.generator Ninja depends_build-append \ port:pkgconfig depends_lib-append \ port:aom \ port:dav1d \ path:include/turbojpeg.h:libjpeg-turbo \ port:libpng \ port:libyuv \ port:svt-av1 \ port:zlib configure.args-append \ -DAVIF_BUILD_APPS:BOOL=ON \ -DAVIF_CODEC_AOM:BOOL=ON \ -DAVIF_CODEC_DAV1D:BOOL=ON \ -DAVIF_CODEC_LIBGAV1=OFF \ -DAVIF_CODEC_RAV1E:BOOL=OFF \ -DAVIF_CODEC_SVT:BOOL=ON \ -DAVIF_ENABLE_WERROR:BOOL=OFF platform darwin { if {${os.major} < 10 || (${os.major} == 10 && ${configure.build_arch} eq "ppc")} { # TODO: Disable rav1e on <10.6, due to issues with cargo-c; enable if fixed. # Do not enable on PPC until Rust is fixed or it becomes possible to build with gccrs. # See: https://trac.macports.org/ticket/65434 if {[variant_isset rav1e]} { error "Variant rav1e not supported for macOS 10.5 and earlier, or PPC" } } # pandoc only available/working on 10.8+ if {${os.major} < 12} { if {[variant_isset docs]} { error "Variant docs not supported for macOS 10.7 and earlier" } } } variant rav1e description {Enable codec rav1e} { depends_lib-append \ port:rav1e configure.args-replace \ -DAVIF_CODEC_RAV1E:BOOL=OFF \ -DAVIF_CODEC_RAV1E:BOOL=ON } variant docs description {Build man pages} { depends_build-append \ port:pandoc configure.args-append \ -DAVIF_BUILD_MAN_PAGES=ON } variant tests description {Enable testing} { depends_test-append \ port:gtest configure.args-append \ -DAVIF_BUILD_TESTS=ON test.run yes } if {![variant_isset rav1e]} { notes-append "Support for rav1e now disabled by default; enable via +rav1e" } # Exclude pre-release candidates in livecheck github.livecheck.regex {([0-9.]+)}