# -*- 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 app 1.0 PortGroup cxx11 1.0 PortGroup github 1.0 PortGroup muniversal 1.0 PortGroup wxWidgets 1.0 github.setup mbunkus mkvtoolnix 7.9.0 release- categories multimedia maintainers ryandesign openmaintainer 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/ use_xz yes checksums rmd160 56e00bc4b66e4b67f7b558af614ff2aa13e14685 \ sha256 39788fa57d9cebd6ea3be9db58dbf8a10fd7c96ad8fa4f79bdf4dadca77bba4a wxWidgets.use wxWidgets-3.0 set version_ruby 2.1 set version_ruby_mp [join [split $version_ruby "."] ""] depends_build port:pkgconfig \ port:ruby${version_ruby_mp} depends_lib port:boost \ port:bzip2 \ port:curl \ port:expat \ port:flac \ port:gettext \ port:libebml \ port:libmagic \ port:libmatroska \ port:libogg \ port:libvorbis \ port:lzo2 \ port:pcre \ port:zlib depends_run port:ruby${version_ruby_mp} post-patch { fs-traverse f ${worksrcpath} { set t [file tail ${f}] set e [file extension ${f}] if {${t} eq "Rakefile" || ${t} eq "drake" || ${e} eq ".rb"} { reinplace -E "s|^#!/usr/bin/(env )?ruby|#!${prefix}/bin/ruby${version_ruby}|g" ${f} } } } set cxx_stdlibflags {} if {[string match *clang* ${configure.cxx}]} { set cxx_stdlibflags -stdlib=${configure.cxx_stdlib} } build.cmd ./drake build.target default build.args -j${build.jobs} # disable silent rules build.args-append V=1 configure.args --mandir=${prefix}/share/man \ --with-boost=${prefix} \ --with-extra-libs=${prefix}/lib \ --with-extra-includes=${prefix}/include \ --disable-gui \ --disable-qt \ --disable-wxwidgets configure.ldflags-append ${cxx_stdlibflags} app.create no variant wxwidgets description {Build with the wxWidgets GUI} { app.create yes app.name Mkvtoolnix app.executable mmg app.icon ${worksrcpath}/share/icons/256x256/mkvtoolnix-gui.png depends_lib-append \ port:${wxWidgets.port} configure.args-delete \ --disable-gui \ --disable-wxwidgets configure.args-append \ --enable-gui \ --enable-wxwidgets \ --with-wx-config=${wxWidgets.wxconfig} } default_variants +wxwidgets livecheck.type regex livecheck.url ${homepage}sources/ livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}