Ticket #46558: PGBS-482.diff

File PGBS-482.diff, 2.8 KB (added by RJVB (René Bertin), 9 years ago)

Oops, my bad. If I'd checked I'd have seen I wasn't diff'ing against the Portfile currently in MacPorts svn ...

  • Portfile

    old new  
    22# $Id:
    33
    44PortSystem          1.0
    5 PortGroup           qt4 1.0
    6 PortGroup           cmake 1.0
    75
    86name                phonon-backend-gstreamer
    9 version             4.7.2
    10 revision            1
    11 categories          audio kde kde4
     7version             4.8.2
    128license             {LGPL-2.1 LGPL-3}
    139maintainers         michaelld openmaintainer
    1410description         GStreamer backend for Phonon
    15 long_description    A GStreamer backend for the Phonon multimedia library.
    1611platforms           darwin
    1712homepage            http://phonon.kde.org
    1813master_sites        kde:stable/phonon/${name}/${version}/src
    1914use_xz              yes
    2015distname            phonon-backend-gstreamer-${version}
    21 checksums           rmd160 cd98d20f90972899018649fdb2c8a7ed32d6b437 \
    22                     sha256 80b72a9092f540dd0a2abd2898328f3d5f9febfa073b0b1d44592a050a99d2b1
     16#checksums           rmd160 b85b2a248795d72087a9d50479f26f3a59b73e29 \
     17#                    sha256 f819cbd6296e1e19579e365902f7930ec8571e8cbb08718484091a795f70587e
     18checksums           rmd160 9c0ec7ef27e925c207e769edc225b1d7202c7e37 \
     19                    sha256 20e0f71f2beb4f859db8385079a13aef5473863ee6f27aad7b065aa7bfe931e0
     20
     21depends_lib-append  port:gstreamer1-gst-plugins-good
     22
     23subport qt5-${name} {
     24    replaced_by     ${name}-qt5
     25    PortGroup       obsolete 1.0
     26}
     27
     28subport ${name}-qt5 {
     29    PortGroup       qt5 1.0
     30    PortGroup       cmake 1.0
     31    categories      audio kde kf5
     32    long_description    A GStreamer backend for the Phonon4Qt5 multimedia library.
     33    depends_lib-append  port:phonon-qt5
     34
     35    configure.args-append   -DPHONON_BUILD_PHONON4QT5:BOOL=ON
     36    post-destroot {
     37        delete      ${destroot}${prefix}/share/icons
     38    }
     39}
     40
     41if {${subport} ne "${name}-qt5"} {
     42    PortGroup       qt4 1.0
     43    PortGroup       cmake 1.0
     44    categories      audio kde kde4
     45    long_description    A GStreamer backend for the Phonon multimedia library.
     46    depends_lib-append  port:phonon port:automoc
     47
     48    configure.args-append -DPhonon_DIR=${qt_cmake_module_dir}/phonon
     49    post-destroot {
     50        if {[file exists ${qt_plugins_dir}] && ![file exists ${qt_plugins_dir}/phonon_backend]} {
     51            xinstall -m 755 -d ${destroot}${qt_plugins_dir}
     52            ln -s ${prefix}/lib/kde4/plugins/phonon_backend ${destroot}${qt_plugins_dir}
     53        }
     54    }
     55}
    2356
    24 depends_lib-append  port:phonon port:gstreamer010-gst-plugins-base
    25 
    26 depends_build-append port:automoc
    27 
    28 configure.args-append -DPhonon_DIR=${qt_cmake_module_dir}/phonon
    29 
    30 patchfiles          phononBGSTr-avoid-x11renderer.patch
     57patchfiles-append   phononBGSTr-avoid-x11renderer.patch
    3158
    3259livecheck.type          regex
    3360livecheck.url           http://www.gtlib.gatech.edu/pub/kde/stable/phonon/${name}/