# -*- 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             6.7.3
revision            0
checksums           rmd160  ad2a5e5699156384c473790d7ee0dc189619e2c0 \
                    sha256  0daf89f8d3975be9f9e4bbda3d0c3a5e24612494383dce19d69db5a8cca6fd7c \
                    size    742832

categories          multimedia 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

python.default_version  312

depends_lib-append  port:py${python.version}-certifi \
                    port:py${python.version}-exceptiongroup \
                    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
}
