Ticket #51411: mlt-Portfile-6.4.1.diff

File mlt-Portfile-6.4.1.diff, 3.7 KB (added by ddennedy (Dan Dennedy), 7 years ago)

update to 6.4.1 and add mlt-qt5 subport

  • multimedia/mlt/Portfile

    old new  
    11# -*- 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
    2 # $Id$
     2# $Id: Portfile 145945 2016-02-22 08:53:45Z devans@macports.org $
    33
    44PortSystem          1.0
    55PortGroup           muniversal 1.0
    6 PortGroup           qt4 1.0
    76
    87name                mlt
    98epoch               3
    10 version             6.0.0
    11 revision            1
     9version             6.4.1
    1210categories          multimedia
    13 maintainers         dennedy.org:dan
     11maintainers         gmail.com:rjvbertin dennedy.org:dan openmaintainer
    1412license             GPL-2+
    1513
    1614description         Open source multimedia framework - core libraries
    homepage http://www.mltframew 
    2725master_sites        sourceforge:project/mlt/mlt
    2826platforms           darwin
    2927
    30 checksums           rmd160 e9b03671545aa5349541495bc226328f639178cf \
    31                     sha256 317874cfc7fc528dddbb3a7a32fd46372aae22bdc4527be1cfb55c93fa66e3bd
     28checksums           rmd160  647cdad41974b93c5745a358e1129f2ed5f6e577 \
     29                    sha256  d3a992f3e67463e68630cb0b455d408a2a12f4da7a19e46807fa08a79f09b2b6
     30
     31subport ${name}-qt5 {
     32    description     ${description} - Qt5 version
     33    long_description \
     34                    ${long_description} Built against Qt5.
     35}
     36
     37if {${subport} eq "${name}"} {
     38    conflicts       ${name}-qt5
     39    PortGroup       qt4 1.0
     40} else {
     41    conflicts       ${name}
     42    PortGroup       qt5 1.0
     43    if {[info procs qt5.depends_component] eq ""} {
     44        # A procedure to indicate dependencies on Qt components that are not
     45        # included in the default dependency declared by the Qt5 PortGroup.
     46        # It allows to specify those dependencies without having to handle
     47        # the appropriate path-style declarations that work against every Qt5 port
     48        # (currently port:qt5, port:qt55, "soon" port:qt5-kde too.)
     49        # A complete version of this procedure will be provided by the Qt5 PG
     50        # after qt5-kde is introduced. Provide a simplified version in the meantime.
     51        proc qt5.depends_component {first args} {
     52            global os.major
     53            # join ${first} and (the optional) ${args}
     54            set args [linsert $args[set list {}] 0 ${first}]
     55            # select the Qt5 port prefix, depending on OS version and which Qt5 port is installed
     56            if {${os.major} == 11} {
     57                set qt5pprefix  "qt55"
     58            } else {
     59                set qt5pprefix  "qt5"
     60            }
     61            foreach comp ${args} {
     62                if {${comp} eq "qt5"} {
     63                    # in case one needs an explicit dependency on the Qt5 main port itself:
     64                    depends_lib-append port:${qt5pprefix}
     65                } else {
     66                    set portname "${qt5pprefix}-${comp}"
     67                    depends_lib-append port:${portname}
     68                }
     69            }
     70        }
     71    }
     72
     73    qt5.depends_component \
     74                    qtsvg
     75}
    3276
    3377depends_build-append port:git \
    3478                    port:doxygen
    depends_lib-append port:atk \ 
    4488                    port:libxml2 \
    4589                    port:libexif
    4690
    47 configure.args      --enable-gpl \
     91# NB: qt-includedir can and should be set to ${qt_includes_dir},
     92# not ${qt_includes_dir}/Qt !!
     93configure.args-append \
     94                    --enable-gpl \
    4895                    --qt-libdir=${qt_frameworks_dir} \
    49                     --qt-includedir=${qt_includes_dir}/Qt \
     96                    --qt-includedir=${qt_includes_dir} \
    5097                    --disable-jackrack \
    5198                    --disable-mmx \
    5299                    --disable-gtk2 \