source: trunk/dports/kde/amarok/Portfile

Last change on this file was 124848, checked in by jmr@…, 3 years ago

amarok: more correct license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 124848 2014-08-29 01:49:38Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           kde4    1.1
6
7name                amarok
8conflicts           amarok-devel
9version             2.6.0
10revision            2
11categories          kde kde4
12maintainers         nomaintainer
13# Future GPL versions must be approved by KDE
14license             {GPL-2 GPL-3}
15description         Amarok, the world-renowned media player.
16long_description    Amarok is a music player and manager with an intuitive \
17                    interface. It provides a variety of feature which helps \
18                    to discover and manage your music.
19platforms           darwin
20homepage            http://amarok.kde.org
21master_sites        kde:stable/${name}/${version}/src/
22use_bzip2           yes
23
24checksums           rmd160  89b8e3a56390dc240efc7dddd8e97ac9e4a03127 \
25                    sha256  a91280e588181cf9363d7146f339ef527220fe0c8057f26f010f592b01fdd2c0
26
27configure.args-append   -DKDE4_BUILD_TESTS=OFF
28
29depends_lib-append  port:kde4-runtime port:kdelibs4 \
30                    port:qtscriptgenerator port:liblastfm \
31                    port:taglib port:taglib-extras \
32                    port:loudmouth port:qca port:libmtp port:libgpod
33
34patchfiles          patch-src-app_mac.cpp.diff \
35                    patch-TrayIcon.diff \
36                    patch-FindMySQLAmarok.diff
37
38# prototype for 'Dynamic::BiasPtr Dynamic::AbstractBiasFactory::createFromXml(QCoreXmlStreamReader*)' does not match any in class 'Dynamic::AbstractBiasFactory'
39universal_variant   no
40
41pre-configure {
42    reinplace "s|@PREFIX@|${prefix}|g" \
43        ${worksrcpath}/cmake/modules/FindMySQLAmarok.cmake
44}
45
46variant mysql51 \
47    conflicts mysql55 mysql56 mariadb55 percona55 \
48    description {build with mysql51 port} {
49
50    depends_lib-append      port:mysql51
51
52    pre-configure {
53        reinplace "s|@MYSQL@|mysql51|g" \
54            ${worksrcpath}/cmake/modules/FindMySQLAmarok.cmake
55    }
56}
57
58variant mysql55 \
59    conflicts mysql51 mysql56 mariadb55 percona55 \
60    description {build with mysql55 port} {
61
62    depends_lib-append      port:mysql55
63
64    pre-configure {
65        reinplace "s|@MYSQL@|mysql55|g" \
66            ${worksrcpath}/cmake/modules/FindMySQLAmarok.cmake
67    }
68}
69
70variant mysql56 \
71    conflicts mysql51 mysql55 mariadb55 percona55 \
72    description {build with mysql56 port} {
73
74    depends_lib-append      port:mysql56
75
76    pre-configure {
77        reinplace "s|@MYSQL@|mysql56|g" \
78            ${worksrcpath}/cmake/modules/FindMySQLAmarok.cmake
79    }
80}
81
82variant mariadb55 \
83    conflicts mysql51 mysql55 mysql56 percona55 \
84    description {build with mariadb port} {
85
86    depends_lib-append      port:mariadb
87
88    pre-configure {
89        reinplace "s|@MYSQL@|mariadb|g" \
90            ${worksrcpath}/cmake/modules/FindMySQLAmarok.cmake
91    }
92}
93
94variant percona55 \
95    conflicts mysql51 mysql55 mysql56 mariadb55 \
96    description {build with percona55 port} {
97
98    depends_lib-append      port:percona
99
100    pre-configure {
101        reinplace "s|@MYSQL@|percona|g" \
102            ${worksrcpath}/cmake/modules/FindMySQLAmarok.cmake
103    }
104}
105
106if {![variant_isset mysql51] && ![variant_isset mysql55] && ![variant_isset mysql56] \
107    && ![variant_isset mariadb55] && ![variant_isset percona55]} {
108    default_variants +mariadb55
109}
110
111livecheck.url       http://kde.mirrors.hoobly.com/stable/${name}
112livecheck.regex     (\\d+\\.\\d+\\.\\d+)
Note: See TracBrowser for help on using the repository browser.