1 | # -*- 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: |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | fetch.type git |
---|
7 | if {[file exists ${filespath}/phonon-vlc-git/.git]} { |
---|
8 | git.url ${filespath}/phonon-vlc-git |
---|
9 | } else { |
---|
10 | git.url git://anongit.kde.org/phonon-vlc |
---|
11 | } |
---|
12 | # git.branch dd89f9e1 |
---|
13 | # v0.9.0-1-g340fd9f |
---|
14 | git.branch 340fd9f9dbbb3b4be7a949bbb7e8f74cded6879c |
---|
15 | |
---|
16 | name phonon-backend-vlc |
---|
17 | version 0.9.0.1 |
---|
18 | license {LGPL-2.1 LGPL-3} |
---|
19 | maintainers gmail.com:rjvbertin openmaintainer |
---|
20 | description VLC backend for Phonon |
---|
21 | platforms darwin |
---|
22 | homepage http://projects.kde.org/projects/kdesupport/phonon/phonon-vlc |
---|
23 | distname phonon-backend-vlc-git |
---|
24 | |
---|
25 | if {${os.platform} eq "darwin"} { |
---|
26 | depends_lib-append path:lib/libvlc.dylib:libVLC |
---|
27 | } |
---|
28 | |
---|
29 | subport ${name}-qt5 { |
---|
30 | PortGroup qt5 1.0 |
---|
31 | PortGroup cmake 1.0 |
---|
32 | categories audio kde kf5 |
---|
33 | long_description A VLC backend for the Phonon4Qt5 multimedia library. |
---|
34 | depends_lib-append port:phonon-qt5 |
---|
35 | |
---|
36 | cmake.out_of_source yes |
---|
37 | configure.args-append -DPHONON_BUILD_PHONON4QT5:BOOL=ON |
---|
38 | } |
---|
39 | |
---|
40 | if {${subport} ne "${name}-qt5"} { |
---|
41 | PortGroup qt4 1.0 |
---|
42 | PortGroup cmake 1.0 |
---|
43 | categories audio kde kde4 |
---|
44 | long_description A VLC backend for the Phonon multimedia library. |
---|
45 | depends_lib-append port:phonon port:automoc |
---|
46 | |
---|
47 | cmake.out_of_source yes |
---|
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 | } |
---|
56 | |
---|
57 | |
---|
58 | livecheck.type regex |
---|
59 | livecheck.url http://www.gtlib.gatech.edu/pub/kde/stable/phonon/${name}/ |
---|
60 | livecheck.regex "\(\\d+(?:\\.\\d+)*)\/" |
---|