# -*- 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 73 R
github.tarball_from     archive
revision                2

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  b55d368ff59bcf8de9e61f02812e2adb99da8da1 \
                        sha256  1bb8ffe31348eaf46d8f541b138f0136d10edaef0c130c1e5a13aa4a4b057280 \
                        size    1877539

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.14
set python_version      [string map {. {}} ${python_branch}]

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

patchfiles-append       patch-src-vspipe-double-to-string.diff

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]+)}
