# -*- 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             19.0.2
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  9ffd9a9d27892a1e7d76c7510823d362ff5badb9 \
                    sha256  bebbc52598886480f4d861c575dc2b020785d6c04e1308680ddcc545e1b94c66 \
                    size    4277157

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
}
