21 | | checksums rmd160 9c0ec7ef27e925c207e769edc225b1d7202c7e37 \ |
22 | | sha256 20e0f71f2beb4f859db8385079a13aef5473863ee6f27aad7b065aa7bfe931e0 |
23 | | |
24 | | depends_lib-append port:phonon port:gstreamer1-gst-plugins-base |
25 | | |
26 | | depends_build-append port:automoc |
27 | | |
28 | | patchfiles patch-cmake-FindGStreamer.cmake.diff \ |
29 | | phononBGSTr-avoid-x11renderer.patch |
30 | | |
31 | | cmake.out_of_source yes |
32 | | |
33 | | configure.args-append -DPhonon_DIR=${cmake_share_module_dir}/phonon |
34 | | |
35 | | livecheck.type regex |
36 | | livecheck.url http://www.gtlib.gatech.edu/pub/kde/stable/phonon/${name}/ |
37 | | livecheck.regex "\(\\d+(?:\\.\\d+)*)\/" |
| 16 | # checksums rmd160 9c0ec7ef27e925c207e769edc225b1d7202c7e37 \ |
| 17 | # sha256 20e0f71f2beb4f859db8385079a13aef5473863ee6f27aad7b065aa7bfe931e0 |
| 18 | checksums rmd160 43095bdb9fe8729fd795910188c46cdcb0eae12f \ |
| 19 | sha256 cec3e5ece1261d344b68363ef0606ebf49772628ba94bb55b0c0d18773b885f1 |
| 20 | set worksrcdir phonon-gstreamer-${version} |
| 21 | |
| 22 | depends_lib-append port:gstreamer1-gst-plugins-good |
| 23 | |
| 24 | subport qt5-${name} { |
| 25 | replaced_by ${name}-qt5 |
| 26 | PortGroup obsolete 1.0 |
| 27 | } |
| 28 | |
| 29 | subport ${name}-qt5 { |
| 30 | PortGroup qt5 1.0 |
| 31 | PortGroup cmake 1.0 |
| 32 | cmake.out_of_source yes |
| 33 | categories audio kde kf5 |
| 34 | long_description A GStreamer backend for the Phonon4Qt5 multimedia library. |
| 35 | depends_lib-append port:phonon-qt5 |
| 36 | |
| 37 | configure.args-append -DPHONON_BUILD_PHONON4QT5:BOOL=ON |
| 38 | post-destroot { |
| 39 | delete ${destroot}${prefix}/share/icons |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | if {${subport} ne "${name}-qt5"} { |
| 44 | PortGroup qt4 1.0 |
| 45 | PortGroup cmake 1.0 |
| 46 | cmake.out_of_source yes |
| 47 | categories audio kde kde4 |
| 48 | long_description A GStreamer backend for the Phonon multimedia library. |
| 49 | depends_lib-append port:phonon port:automoc |
| 50 | |
| 51 | configure.args-append -DPhonon_DIR=${qt_cmake_module_dir}/phonon |
| 52 | post-destroot { |
| 53 | if {[file exists ${qt_plugins_dir}] && ![file exists ${qt_plugins_dir}/phonon_backend]} { |
| 54 | xinstall -m 755 -d ${destroot}${qt_plugins_dir} |
| 55 | ln -s ${prefix}/lib/kde4/plugins/phonon_backend ${destroot}${qt_plugins_dir} |
| 56 | } |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | patchfiles-append patch-phononBGSTr-avoid-x11renderer.diff |
| 61 | |
| 62 | livecheck.type regex |
| 63 | livecheck.url http://www.gtlib.gatech.edu/pub/kde/stable/phonon/${name}/ |
| 64 | livecheck.regex "\(\\d+(?:\\.\\d+)*)\/" |