# -*- 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.0.4 v revision 1 checksums rmd160 0da7a5afd90bda236228f8dfd2e0f221f071a422 \ sha256 dc56708c83a4b934a8af2b78f67f866ba2fb568605c7cf94312acf51ee57d146 \ size 10575992 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} { default_variants-append \ +docs } } 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.]+)}