diff -urN mkvtoolnix.orig/Portfile mkvtoolnix/Portfile
old
|
new
|
|
4 | 4 | PortSystem 1.0 |
5 | 5 | |
6 | 6 | name mkvtoolnix |
7 | | version 4.3.0 |
| 7 | version 4.4.0 |
8 | 8 | categories multimedia |
9 | 9 | maintainers stack.nl:ruud |
10 | 10 | description Matroska media files manipulation tools. |
… |
… |
|
15 | 15 | platforms darwin |
16 | 16 | master_sites ${homepage}sources/ |
17 | 17 | use_bzip2 yes |
| 18 | patchfiles mmg-macos-1.diff |
18 | 19 | |
19 | 20 | # g++-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags |
20 | 21 | universal_variant no |
21 | 22 | |
22 | | checksums md5 6367631773f41e2bb564323f2b1c48a3 \ |
23 | | sha1 70ae0d5769d65b032c15eedc01e914be3245779e \ |
24 | | rmd160 c55a126da2bcf5e36de61113bb64672d5fb44af4 |
| 23 | checksums md5 1f2ea5997066ebb65444198576e5ec4a \ |
| 24 | sha1 c5e6cbc2fb522ba6653124a2eef6b416bafc488a \ |
| 25 | rmd160 85370a9ebd75b66b857c30edef1b22d8c0dce880 |
25 | 26 | |
26 | 27 | depends_build port:ruby |
27 | 28 | |
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; |