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

github.setup            vapoursynth vapoursynth 65 R
github.tarball_from     archive
revision                1

description             A video processing framework with simplicity in mind

long_description        VapourSynth is an application for video manipulation. \
                        Or a plugin. Or a library. It’s hard to tell because \
                        it has a core library written in C++ and a Python \
                        module to allow video scripts to be created. The \
                        software has been heavily inspired by Avisynth.

checksums               rmd160  b9cb72ab281ff78a70965de54ece1deaf3eb438b \
                        sha256  2bde5233b82d914b5e985119ed9cc344e3c27c3c068b5c4ab909176cd1751dce \
                        size    1871079

categories              multimedia python
license                 LGPL-2.1+
maintainers             {gmail.com:herby.gillot @herbygillot} \
                        openmaintainer

compiler.cxx_standard   2014
compiler.thread_local_storage yes

set python_branch       3.12
set python_version      [string map {. {}} ${python_branch}]

use_autoreconf          yes
autoreconf.cmd          ./autogen.sh
autoreconf.args

depends_build-append    port:autoconf \
                        port:automake \
                        port:libtool \
                        port:pkgconfig \
                        port:py${python_version}-cython

depends_lib-append      path:lib/libavcodec.dylib:ffmpeg \
                        port:ImageMagick \
                        path:lib/pkgconfig/libass.pc:libass \
                        port:libiconv \
                        port:python${python_version} \
                        port:zimg

configure.args          --disable-silent-rules \
                        --with-cython=${prefix}/bin/cython-${python_branch} \
                        --with-python_prefix=${frameworks_dir}/Python.framework/Versions/${python_branch}

configure.python        ${prefix}/bin/python${python_branch}

build.env-append        PYTHON=${configure.python}

github.livecheck.regex  {([0-9]+)}
