Source
# -*- 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
PortSystem 1.0
PortGroup cxx11 1.1
PortGroup github 1.0
PortGroup compiler_blacklist_versions 1.0
PortGroup muniversal 1.0
github.setup mbunkus mkvtoolnix 30.1.0 release-
revision 1
checksums rmd160 7e60883259bdc72e1d39e171d92d9d82878999f1 \
sha256 4628f40d62d359edb1441c52381b1f3a61aa227279133d7e01257f91e0d92591 \
size 7274296
categories multimedia
platforms darwin
maintainers {ryandesign @ryandesign} openmaintainer
license GPL-2+ LGPL-2.1+
description Matroska media files manipulation tools.
long_description mkvtoolnix will evolve to a set of tools to create, \
alter and inspect Matroska files under Linux and other \
Unices, just what the OGMtools do for the OGM format.
homepage https://mkvtoolnix.download
master_sites ${homepage}/sources/
use_xz yes
set version_ruby 2.6
set version_ruby_mp [join [split $version_ruby "."] ""]
depends_build port:ruby${version_ruby_mp} \
port:docbook-xsl-nons \
port:libxslt \
port:po4a
depends_lib port:boost \
port:bzip2 \
port:expat \
port:flac \
port:gettext \
port:libebml \
port:libmagic \
port:libmatroska \
port:libogg \
port:libvorbis \
port:lzo2 \
port:pcre \
port:zlib \
port:pugixml \
port:cmark
depends_run port:ruby${version_ruby_mp}
post-patch {
fs-traverse f ${worksrcpath} {
set t [file tail ${f}]
set e [file extension ${f}]
if {${t} eq "Rakefile" || ${e} eq ".rb"} {
reinplace -q -E "s|^#!/usr/bin/(env )?ruby|#!${prefix}/bin/ruby${version_ruby}|g" ${f}
}
}
}