Ticket #50972: Portfile-mkvtoolnix.diff

File Portfile-mkvtoolnix.diff, 3.2 KB (added by johnrosshunt, 7 years ago)

mkvtoolnix Portfile patch

  • Portfile

    old new  
    11# -*- 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
    22
    33PortSystem          1.0
    4 PortGroup           app 1.0
    54PortGroup           cxx11 1.0
    65PortGroup           github 1.0
    76PortGroup           muniversal 1.0
    8 PortGroup           wxWidgets 1.0
    97
    10 github.setup        mbunkus mkvtoolnix 7.9.0 release-
     8github.setup        mbunkus mkvtoolnix 9.7.1 release-
    119categories          multimedia
    1210maintainers         ryandesign openmaintainer
    1311license             GPL-2+ LGPL-2.1+
     
    1816                    Unices, just what the OGMtools do for the OGM format.
    1917homepage            http://www.bunkus.org/videotools/mkvtoolnix/
    2018platforms           darwin
    21 master_sites        ${homepage}sources/
     19master_sites        https://mkvtoolnix.download/sources/
    2220use_xz              yes
    2321
    24 checksums           rmd160  56e00bc4b66e4b67f7b558af614ff2aa13e14685 \
    25                     sha256  39788fa57d9cebd6ea3be9db58dbf8a10fd7c96ad8fa4f79bdf4dadca77bba4a
    26 
    27 wxWidgets.use       wxWidgets-3.0
     22checksums           rmd160  d77acbf1fbfb6e7bba27e9d39a94432c98337882 \
     23                    sha256  b2b8821e2d74df0f765c97f93ddd1dbfb062f3c22b969cfa04d1bb5cb638a88e
    2824
    2925set version_ruby    2.1
    3026set version_ruby_mp [join [split $version_ruby "."] ""]
     
    4541                    port:libvorbis \
    4642                    port:lzo2 \
    4743                    port:pcre \
    48                     port:zlib
     44                    port:zlib \
     45                    port:pugixml
    4946
    5047depends_run         port:ruby${version_ruby_mp}
    5148
     
    7572                    --with-boost=${prefix} \
    7673                    --with-extra-libs=${prefix}/lib \
    7774                    --with-extra-includes=${prefix}/include \
    78                     --disable-gui \
    79                     --disable-qt \
    80                     --disable-wxwidgets
     75                    --disable-qt
    8176
    8277configure.ldflags-append ${cxx_stdlibflags}
    8378
    84 app.create          no
    85 
    86 variant wxwidgets description {Build with the wxWidgets GUI} {
    87     app.create      yes
    88     app.name        Mkvtoolnix
    89     app.executable  mmg
     79variant qt5 description {Build with the qt5 GUI} {
     80    PortGroup       app 1.0
     81    PortGroup       qt5 1.0
     82   
     83    app.name        MKVToolNix
     84    app.executable  ${worksrcpath}/src/mkvtoolnix-gui/mkvtoolnix-gui
    9085    app.icon        ${worksrcpath}/share/icons/256x256/mkvtoolnix-gui.png
     86    app.create      yes
    9187
    92     depends_lib-append \
    93         port:${wxWidgets.port}
    94     configure.args-delete \
    95         --disable-gui \
    96         --disable-wxwidgets
     88    depends_build-append port:makeicns
     89    depends_lib-append   port:qt5
     90    configure.args-delete --disable-qt
    9791    configure.args-append \
    98         --enable-gui \
    99         --enable-wxwidgets \
    100         --with-wx-config=${wxWidgets.wxconfig}
     92        --enable-qt \
     93        --with-moc=${qt_dir}/bin/moc \
     94        --with-uic=${qt_dir}/bin/uic \
     95        --with-rcc=${qt_dir}/bin/rcc
    10196}
    10297
    103 default_variants    +wxwidgets
     98variant doc description {Build documentation} {
     99    depends_lib-append port:po4a port:pandoc
     100}
    104101
    105102livecheck.type      regex
    106103livecheck.url       ${homepage}sources/