# $Id: Portfile 76692 2011-03-05 21:18:58Z ryandesign@macports.org $

PortSystem          1.0

name                x264transcode
version             0.2.9
categories          multimedia
platforms           darwin
maintainers         gmail.com:stefan.van.der.eijk openmaintainer
license             GPL-3+
supported_archs     noarch

description         Automated DVD/VOB/M2TS to MKV system
long_description    Script for automated backup of DVDs, SD vob and HD m2ts \
                    files for GNU/Linux and MacOS X. It works in _completely \
                    unattended mode_ and is designed to run in the \
                    background. It rips ALL subtitles and ALL audio tracks \
                    and transcodes video to x264, profile 3.1, crf mode, \
                    with b-frames. Video stream is cropped to get rid of \
                    black borders. Chapters work. The container is MKV.
                
homepage            http://go.warwick.ac.uk/grok/x264transcode
master_sites        https://github.com/downloads/jzachwieja/x264transcode

checksums           sha1    41a98a4fc36f425c67783df5270d6718f2b02988 \
                    rmd160  21773c130e3f98986deffb453cbc0b79ec454b2f

depends_lib         port:crswallow \
                    port:giflib \
                    port:lsdvd \
                    port:mkvtoolnix \
                    port:mplayer-devel \
                    port:ogmtools

use_configure no
build {}

destroot {
    xinstall -m 444 ${worksrcpath}/autoripper.conf \
        ${destroot}${prefix}/etc/autoripper.conf.default
    xinstall -W ${worksrcpath} autorip.py crippler.sh  monitor.sh ripper.sh \
        x264transcode.sh ${destroot}${prefix}/bin
    file mkdir ${destroot}${prefix}/share/doc/${name}
    xinstall -m 444 -W ${worksrcpath} CHANGELOG COPYING README \
        ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      regex
livecheck.regex     ${name}-(\[0-9a-z.\]+)\\.tar
