Ticket #46558: PBGS-482.diff

File PBGS-482.diff, 2.8 KB (added by RJVB (René Bertin), 8 years ago)
  • Portfile

    old new  
    22# $Id:
    33
    44PortSystem          1.0
    5 PortGroup           qt4 1.0
    6 PortGroup           cmake 1.0
    75
    86name                phonon-backend-gstreamer
    97version             4.8.2
    108revision            2
    11 categories          audio kde kde4
    129license             {LGPL-2.1 LGPL-3}
    1310maintainers         michaelld openmaintainer
    1411description         GStreamer backend for Phonon
    15 long_description    A GStreamer backend for the Phonon multimedia library.
    1612platforms           darwin
    1713homepage            http://phonon.kde.org
    1814master_sites        kde:stable/phonon/${name}/${version}/src
    1915use_xz              yes
    2016distname            phonon-backend-gstreamer-${version}
     17#checksums           rmd160 b85b2a248795d72087a9d50479f26f3a59b73e29 \
     18#                    sha256 f819cbd6296e1e19579e365902f7930ec8571e8cbb08718484091a795f70587e
    2119checksums           rmd160 9c0ec7ef27e925c207e769edc225b1d7202c7e37 \
    2220                    sha256 20e0f71f2beb4f859db8385079a13aef5473863ee6f27aad7b065aa7bfe931e0
    2321
    24 depends_lib-append  port:phonon port:gstreamer1-gst-plugins-base
     22depends_lib-append  port:gstreamer1-gst-plugins-good
    2523
    26 depends_build-append port:automoc
     24subport qt5-${name} {
     25    replaced_by     ${name}-qt5
     26    PortGroup       obsolete 1.0
     27}
     28
     29subport ${name}-qt5 {
     30    PortGroup       qt5 1.0
     31    PortGroup       cmake 1.0
     32    categories      audio kde kf5
     33    long_description    A GStreamer backend for the Phonon4Qt5 multimedia library.
     34    depends_lib-append  port:phonon-qt5
     35
     36    configure.args-append   -DPHONON_BUILD_PHONON4QT5:BOOL=ON
     37    post-destroot {
     38        delete      ${destroot}${prefix}/share/icons
     39    }
     40}
     41
     42if {${subport} ne "${name}-qt5"} {
     43    PortGroup       qt4 1.0
     44    PortGroup       cmake 1.0
     45    categories      audio kde kde4
     46    long_description    A GStreamer backend for the Phonon multimedia library.
     47    depends_lib-append  port:phonon port:automoc
     48
     49    configure.args-append -DPhonon_DIR=${qt_cmake_module_dir}/phonon
     50    post-destroot {
     51        if {[file exists ${qt_plugins_dir}] && ![file exists ${qt_plugins_dir}/phonon_backend]} {
     52            xinstall -m 755 -d ${destroot}${qt_plugins_dir}
     53            ln -s ${prefix}/lib/kde4/plugins/phonon_backend ${destroot}${qt_plugins_dir}
     54        }
     55    }
     56}
    2757
    28 # do VPATH (out of source tree) build
    29 
    30 cmake.out_of_source yes
    31 
    32 configure.args-append -DPhonon_DIR=${cmake_share_module_dir}/phonon
    33 
    34 patchfiles          phononBGSTr-avoid-x11renderer.patch
     58patchfiles-append   phononBGSTr-avoid-x11renderer.patch
    3559
    3660livecheck.type          regex
    3761livecheck.url           http://www.gtlib.gatech.edu/pub/kde/stable/phonon/${name}/