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

go.setup            github.com/Eyevinn/mp4ff 0.33.2 v
revision            0

description         \
    Tools for parsing and writing MP4 files including video, audio and \
    subtitles.

long_description    \
    Package mp4ff implements MP4 media file parsing and writing for AVC and \
    HEVC video, AAC and AC-3 audio, and stpp and wvtt subtitles. It is \
    focused on fragmented files as used for streaming in DASH, MSS and HLS \
    fMP4, but can also decode and encode all boxes needed for progressive MP4 \
    files. In particular, the tool mp4ff-crop can be used to crop a \
    progressive file.

categories          multimedia
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

patchfiles          patch-Makefile.diff

build.cmd           make
build.target        build

post-patch {
    reinplace -E "s|@@VERSION@@|${github.tag_prefix}${version}|g" \
        ${worksrcpath}/Makefile
}

destroot {
    foreach mp4bin [glob ${worksrcpath}/out/*] {
        xinstall -m 0755 ${mp4bin} ${destroot}${prefix}/bin/
    }
}

checksums           ${distname}${extract.suffix} \
                        rmd160  535e84aa5019241fc725c44f4f26b6201ef1c9b8 \
                        sha256  03a28c503684513c49baeb9e11d582c0685e12c8c794a0045f53d84f3ac3231b \
                        size    1904440

go.vendors          github.com/go-test/deep \
                        lock    v1.0.8 \
                        rmd160  ca518b4652f1d9c1be2a4353daa01aed8e15e1e2 \
                        sha256  a4c3587f105c56e6f31c180540362f695d25acadc3b5dfa44f7aa2067facfd58 \
                        size    11719
