<pre style='margin:0'>
Andrea D'Amore (anddam) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/896b35c26af9a261eeaaa0555f1181d8bd80770b">https://github.com/macports/macports-ports/commit/896b35c26af9a261eeaaa0555f1181d8bd80770b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 896b35c26af9a261eeaaa0555f1181d8bd80770b
</span>Author: Marko Käning <mk@macports.org>
AuthorDate: Fri Dec 16 22:44:23 2016 +0100
<span style='display:block; white-space:pre;color:#404040;'> mlt-qt5: new port
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - add RJVB as co-maintainer
</span><span style='display:block; white-space:pre;color:#404040;'> - drop invalid keyword Id
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/51411
</span>---
multimedia/mlt/Portfile | 64 ++++++++++++++++++++++++++++++++++++++++++-------
1 file changed, 55 insertions(+), 9 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/mlt/Portfile b/multimedia/mlt/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 5edab29..54e8a9f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/multimedia/mlt/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/mlt/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,16 +1,13 @@
</span> # -*- 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
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# $Id$
</span>
PortSystem 1.0
PortGroup muniversal 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup qt4 1.0
</span>
name mlt
epoch 3
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 6.0.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 6.4.1
</span> categories multimedia
<span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers dennedy.org:dan
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers dennedy.org:dan gmail.com:rjvbertin openmaintainer
</span> license GPL-2+
description Open source multimedia framework - core libraries
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -27,8 +24,54 @@ homepage http://www.mltframework.org/
</span> master_sites sourceforge:project/mlt/mlt
platforms darwin
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 e9b03671545aa5349541495bc226328f639178cf \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 317874cfc7fc528dddbb3a7a32fd46372aae22bdc4527be1cfb55c93fa66e3bd
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 647cdad41974b93c5745a358e1129f2ed5f6e577 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 d3a992f3e67463e68630cb0b455d408a2a12f4da7a19e46807fa08a79f09b2b6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport ${name}-qt5 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description ${description} - Qt5 version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${long_description} Built against Qt5.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${subport} eq "${name}"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conflicts ${name}-qt5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup qt4 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conflicts ${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup qt5 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[info procs qt5.depends_component] eq ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # A procedure to indicate dependencies on Qt components that are not
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # included in the default dependency declared by the Qt5 PortGroup.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # It allows to specify those dependencies without having to handle
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # the appropriate path-style declarations that work against every Qt5 port
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # (currently port:qt5, port:qt55, "soon" port:qt5-kde too.)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # A complete version of this procedure will be provided by the Qt5 PG
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # after qt5-kde is introduced. Provide a simplified version in the meantime.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ proc qt5.depends_component {first args} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global os.major
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # join ${first} and (the optional) ${args}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set args [linsert $args[set list {}] 0 ${first}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # select the Qt5 port prefix, depending on OS version and which Qt5 port is installed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} == 11} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set qt5pprefix "qt55"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set qt5pprefix "qt5"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach comp ${args} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${comp} eq "qt5"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # in case one needs an explicit dependency on the Qt5 main port itself:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:${qt5pprefix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set portname "${qt5pprefix}-${comp}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:${portname}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ qt5.depends_component \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ qtsvg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
depends_build-append port:git \
port:doxygen
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -44,9 +87,12 @@ depends_lib-append port:atk \
</span> port:libxml2 \
port:libexif
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args --enable-gpl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# NB: qt-includedir can and should be set to ${qt_includes_dir},
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# not ${qt_includes_dir}/Qt !!
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --enable-gpl \
</span> --qt-libdir=${qt_frameworks_dir} \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- --qt-includedir=${qt_includes_dir}/Qt \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --qt-includedir=${qt_includes_dir} \
</span> --disable-jackrack \
--disable-mmx \
--disable-gtk2 \
</pre><pre style='margin:0'>
</pre>