# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

name                streamlink
version             8.2.0
revision            0

categories          multimedia python net
supported_archs     noarch
platforms           {darwin any}
license             BSD
maintainers         nomaintainer

description         a CLI utility which pipes video streams into a video player
long_description    ${name} is a CLI utility which pipes video streams from various\
                    services into a video player, such as VLC. The main purpose of\
                    ${name} is to avoid resource-heavy and unoptimized websites,\
                    while still allowing the user to enjoy various streamed content.

homepage            https://streamlink.github.io

checksums           rmd160  d1ebd6361562cf8810d47e4cfbb51a82786ebbc5 \
                    sha256  64523e99401ddf4ee7f09f551787dc127111eeb9ac8d8b0e8037966efdd7a1a5 \
                    size    828912

python.default_version  314

depends_lib-append  port:py${python.version}-certifi \
                    port:py${python.version}-isodate \
                    port:py${python.version}-lxml \
                    port:py${python.version}-country \
                    port:py${python.version}-pycryptodome \
                    port:py${python.version}-socks \
                    port:py${python.version}-requests \
                    port:py${python.version}-trio \
                    port:py${python.version}-trio-websocket \
                    port:py${python.version}-urllib3 \
                    port:py${python.version}-websocket-client

variant ffmpeg description "Play streams that are made up of separate audio and video streams" {
    depends_run-append  path:bin/ffmpeg:ffmpeg
}

if {![variant_isset ffmpeg]} {
    default_variants +ffmpeg
}
