diff -urN mkvtoolnix.orig/Portfile mkvtoolnix/Portfile
old
|
new
|
|
5 | 5 | |
6 | 6 | name mkvtoolnix |
7 | 7 | version 4.3.0 |
| 8 | revision 1 |
8 | 9 | categories multimedia |
9 | 10 | maintainers stack.nl:ruud |
10 | 11 | description Matroska media files manipulation tools. |
… |
… |
|
15 | 16 | platforms darwin |
16 | 17 | master_sites ${homepage}sources/ |
17 | 18 | use_bzip2 yes |
| 19 | patchfiles mmg-macos-1.diff |
18 | 20 | |
19 | 21 | # g++-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags |
20 | 22 | universal_variant no |
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; |