Ticket #50294: mlt.diff

File mlt.diff, 3.6 KB (added by RJVB (René Bertin), 8 years ago)
  • multimedia/mlt/Portfile

    old new  
    33
    44PortSystem          1.0
    55PortGroup           muniversal 1.0
    6 PortGroup           qt4 1.0
    76
    87name                mlt
    98epoch               3
    10 version             0.9.6
    11 revision            2
     9version             0.9.8
    1210categories          multimedia
    1311maintainers         dennedy.org:dan
    1412license             GPL-2+
     
    2725master_sites        sourceforge:project/mlt/mlt
    2826platforms           darwin
    2927
    30 checksums           rmd160  c678a40b0fa362043d2a867152702cd8375d7bc7 \
    31                     sha256 ab999992828a03dadbf62f6a131aada776cfd7afe63a94d994877fdba31a3000
     28checksums           rmd160  e08e7c29fd4525a9454acfb76e21efb8fe890143 \
     29                    sha256  7fa57d818dfd1a85e76a4c746a1deb71501232706eb89400c976bcf48f9cb966
     30
     31subport qt5-${name} {
     32    description     ${description} - Qt5 version
     33    long_description \
     34                    ${long_description} It is built against the Qt5 libraries.
     35}
     36
     37if {${subport} eq "${name}"} {
     38    conflicts       qt5-${name}
     39    PortGroup       qt4 1.0
     40} else {
     41    conflicts       ${name}
     42    PortGroup       qt5 1.0
     43}
    3244
    3345depends_build-append port:git \
    3446                    port:doxygen
     
    4456                    port:libxml2 \
    4557                    port:libexif
    4658
    47 configure.args      --enable-gpl \
     59# NB: qt-includedir can and should be set to ${qt_includes_dir},
     60# not ${qt_includes_dir}/Qt !!
     61configure.args-append \
     62                    --enable-gpl \
    4863                    --qt-libdir=${qt_frameworks_dir} \
    49                     --qt-includedir=${qt_includes_dir}/Qt \
     64                    --qt-includedir=${qt_includes_dir} \
    5065                    --disable-jackrack \
    5166                    --disable-mmx \
    5267                    --disable-gtk2 \
     
    6277configure.cflags-append     "-I${qt_includes_dir}"
    6378configure.ldflags-delete    "-L${prefix}/lib"
    6479
     80post-patch {
     81    reinplace -W ${worksrcpath}/src "s|__DARWIN__|__APPLE__|g" \
     82                            framework/mlt_factory.c \
     83                            framework/mlt_properties.c \
     84                            framework/mlt_property.c \
     85                            framework/mlt_property.h \
     86                            melt/melt.c \
     87                            mlt++/MltProperties.cpp \
     88                            mlt++/MltProperties.h \
     89                            modules/decklink/common.cpp \
     90                            modules/decklink/common.h \
     91                            modules/frei0r/factory.c \
     92                            modules/jackrack/plugin.c \
     93                            modules/jackrack/plugin_mgr.c \
     94                            modules/opengl/factory.c \
     95                            modules/opengl/filter_glsl_manager.cpp \
     96                            modules/plusgpl/utils.c \
     97                            modules/plusgpl/utils.h \
     98                            modules/sdl/consumer_sdl.c \
     99                            modules/sdl/consumer_sdl_audio.c \
     100                            modules/sdl/consumer_sdl_osx.h \
     101                            modules/sdl/consumer_sdl_still.c \
     102                            modules/videostab/stab/estimate.c \
     103                            tests/test_filter/test_filter.cpp \
     104                            tests/test_properties/test_properties.cpp
     105}
     106
    65107build.args-append           CC="${configure.cc}" CXX="${configure.cxx}" CPP="${configure.cpp}"
    66108
    67109if {[variant_isset universal]} {