[MacPorts] #50972: mkvtoolnix Upgrade to 9.0.0?
MacPorts
noreply at macports.org
Sun Mar 27 06:13:44 PDT 2016
#50972: mkvtoolnix Upgrade to 9.0.0?
-------------------------+--------------------------
Reporter: skycrawl@… | Owner: ryandesign@…
Type: update | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: mkvtoolnix |
-------------------------+--------------------------
Comment (by skycrawl@…):
I just successfully built and installed v9.0.0 locally, including the new
GUI. Although there were some issues, it was rather simple following the
github repo guide:
https://github.com/mbunkus/mkvtoolnix/tree/release-9.0.0#2-installation
Simply install the listed dependencies with MacPorts, except for:
1. Compliant compiler is already present in the system.
2. A Ruby package needs to be installed (e.g. ruby23) and `ruby_select` to
alias `ruby23` as `ruby`. Drake doesn't impose version limitation on Ruby
it seems (https://rubygems.org/gems/drake/versions/0.9.2.0.3.1).
MKVToolnix comes with `drake` so no need to install it.
3. I installed Qt with MacPorts: `sudo port install qt5`.
4. `libFlac` dependency can be satisfied with: `sudo port install flac`.
5. `libCurl` dependency can be satisfied with: `sudo port install curl`.
Maybe also `curl-ca-bundle` (not sure) - depends on the update site's
situation regarding HTTPS. I have it installed too.
6. No need to build libEBML and libMatroska (MacPorts does that for us).
Also, the later steps complained about missing `libiconv` for some reason,
so:[[BR]]
`sudo port install libiconv`
And then simply:
1. Cd to the distro (make sure to have `autoconf` installed).
2. Execute: `./autogen.sh`
3. Temporarily link the environment with QT5:
`PATH=/opt/local/libexec/qt5/bin:$PATH`. This was by far the worst part
for me to figure out. There are a number of other official options but
they didn't work and `configure` didn't find the QT distro. The PATH
alteration is not listed anywhere and I simply tried it to make sure...
lucky for me, it worked.
4. Now on to configure in cooperation with MacPorts: `./configure --with-
extra-libs=/opt/local/lib --with-extra-includes=/opt/local/include`.
5. Execute: `./drake`.
6. Execute: `./drake install`. This apparently installs to
`/usr/local/bin/`, you'll probably want to change `prefix` in step 4.
Then, it should only be a matter of making this work as a MacPorts
package:
1. `+gui` variant (probably). Simply build a Mac app around the
`/usr/local/bin/mkvtoolnix-gui` command (Script Editor), maybe handle icon
etc. Then link the app to `/Applications`.
2. Requiring and using `ruby_select` might be a problem for some users
that prefer other Ruby distro somewhere on the system.
Hope I didn't forget anything and that it helps :).
--
Ticket URL: <https://trac.macports.org/ticket/50972#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list