# -*- 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
# $Id$

PortSystem          1.0
PortGroup           muniversal 1.0

name                mkvtoolnix
version             5.8.0
categories          multimedia
maintainers         nomaintainer
license             GPL-2+ LGPL-2.1+

description         Matroska media files manipulation tools.
long_description    mkvtoolnix will evolve to a set of tools to create, \
                    alter and inspect Matroska files under Linux and other \
                    Unices, just what the OGMtools do for the OGM format.
homepage            http://www.bunkus.org/videotools/mkvtoolnix/
platforms           darwin
master_sites        ${homepage}sources/ \
                    http://svn.mandriva.com/svn/packages/cooker/mkvtoolnix/releases/${version}/1/SOURCES/
use_bzip2           yes

checksums           rmd160  29c11e66680d0f0f58f9aab4c9edd69f84f67f1d \
                    sha256  3c9ec7e4c035b82a35850c5ada98a29904edc44a0d1c9b900ed05d56e6274960

depends_build       port:pkgconfig

depends_lib         port:boost \
                    port:bzip2 \
                    port:curl \
                    port:expat \
                    port:file \
                    port:flac \
                    port:gcc47 \
                    port:gettext \
                    port:libogg \
                    port:libvorbis \
                    port:lzo2 \
                    port:pcre \
                    port:ruby \
                    port:zlib

configure.compiler  macports-gcc-4.7

build.cmd           ./drake
build.target        default
build.args          -j${build.jobs}

configure.args      --mandir=${prefix}/share/man \
                    --with-boost=${prefix} \
                    --with-extra-libs=${prefix}/lib \
                    --with-extra-includes=${prefix}/include \
                    --disable-gui \
                    --disable-wxwidgets

variant wxwidgets description {Build with the wxWidgets GUI} {
    depends_lib-append port:wxWidgets30

    configure.args-delete \
        --diable-gui \
        --disable-wxwidgets
    configure.args-append \
        --enable-gui \
        --enable-wxwidgets
}