# -*- 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           python 1.0

name                py-av
version             17.0.1
revision            0

categories-append   multimedia
license             BSD
maintainers         {pguyot @pguyot} openmaintainer
supported_archs     arm64 x86_64

description         Pythonic bindings for FFmpeg libraries

long_description    PyAV provides Pythonic bindings for FFmpeg. It \
                    provides access to media containers, streams, \
                    packets, codecs, and frames with integration for \
                    NumPy and Pillow.

homepage            https://pyav.basswood-io.com

checksums           rmd160  78209c3aad48acfd392639ba2f2dc6191626a26d \
                    sha256  fbcbd4aa43bca6a8691816283112d1659a27f407bbeb66d1397023691339f5d4 \
                    size    4411938

python.versions     313 314

if {${name} ne ${subport}} {
    depends_build-append \
                    path:bin/pkg-config:pkgconfig \
                    port:py${python.version}-cython

    depends_lib-append \
                    port:ffmpeg8

    build.env-append \
                    PKG_CONFIG_PATH=${prefix}/libexec/ffmpeg8/lib/pkgconfig
}
