Ticket #27081: mkvtoolnix-mmg-fix.patch

File mkvtoolnix-mmg-fix.patch, 1.6 KB (added by ruud@…, 14 years ago)
  • mkvtoolnix

    diff -urN mkvtoolnix.orig/Portfile mkvtoolnix/Portfile
    old new  
    55
    66name                mkvtoolnix
    77version             4.3.0
     8revision            1
    89categories          multimedia
    910maintainers         stack.nl:ruud
    1011description         Matroska media files manipulation tools.
     
    1516platforms           darwin
    1617master_sites        ${homepage}sources/
    1718use_bzip2           yes
     19patchfiles          mmg-macos-1.diff
    1820
    1921# g++-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
    2022universal_variant   no
  • files/mmg-macos-1.diff

    Binary files mkvtoolnix.orig/files/.mmg-macos-1.diff.swp and mkvtoolnix/files/.mmg-macos-1.diff.swp differ
    diff -urN mkvtoolnix.orig/files/mmg-macos-1.diff mkvtoolnix/files/mmg-macos-1.diff
    old new  
     1--- src/mmg/mmg.cpp
     2+++ src/mmg/mmg.cpp
     3@@ -18,6 +18,10 @@
     4 #include <wx/file.h>
     5 #include <wx/regex.h>
     6 
     7+#ifdef __WXMAC__
     8+# include <ApplicationServices/ApplicationServices.h>
     9+#endif
     10+
     11 #include "common/chapters/chapters.h"
     12 #include "common/command_line.h"
     13 #include "common/common_pch.h"
     14@@ -132,6 +136,12 @@ mmg_app::prepare_mmg_data_folder() {
     15 
     16 bool
     17 mmg_app::OnInit() {
     18+#ifdef __WXMAC__
     19+  ProcessSerialNumber PSN;
     20+  GetCurrentProcess(&PSN);
     21+  TransformProcessType(&PSN, kProcessTransformToForegroundApplication);
     22+#endif
     23+
     24   mtx_common_init();
     25 
     26   wxConfigBase *cfg;