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

name                M2VRequantiser
version             1.1
revision            0
checksums           rmd160  d66b15c0949930849d50e6a9176c16618e21daa4 \
                    sha256  e537c7894edc4ae446d71e8f597aa1fcec85c3e76748ba0aaa289cc667c94209 \
                    size    34472

categories          multimedia
platforms           darwin
license             GPL-2+
maintainers         {hotmail.com:amtor @RobK88} \
                    openmaintainer

description         requantizes MPEG-2 streams without recompressing

long_description    ${name} accepts the raw MPEG-2 video data (not VOB) \
                    from the standard input and writes the \
                    recompressed frames to the standard output. \
                    ${name} represents a good replacement for \
                    tcrequant, an obsolete utility provided by some \
                    versions of the transcode suite. \
                    \n \
                    \n${name} is often used in place of tcrequant to \
                    shrink DVDs from DVD9 to DVD5. See \
                    https://www.linuxquestions.org/questions/linux-software-2/dvd9-to-dvd5-guide-244913/

homepage            https://launchpad.net/m2vrequantiser
master_sites        ${homepage}/trunk/${version}/+download/
distname            ${name}-v${version}

patchfiles          1001-makefile.patch \
                    1002-argc_sigsegv.patch \
                    1003-typedef.patch

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
    xinstall -m 0644 ${filespath}/${name}.1 ${destroot}${prefix}/share/man/man1
    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} README.txt LICENSE.txt ${destroot}${prefix}/share/doc/${name}
}
