# -*- 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             18.0.0
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  46ea4409dbe37baf6ffad804312b9589f9139873 \
                    sha256  4ef7e72c3d3a872584a1215173b16e0226811037f40dcdbf75992631098df1ba \
                    size    4340222

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
}
