source: trunk/dports/kde/amarok-devel/Portfile @ 61914

Last change on this file since 61914 was 61914, checked in by ryandesign@…, 11 years ago

amarok, amarok-devel: fix mysql5 dependency specification and add pre-configure check for presence of required libmysqld.a library; see #22879

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 61914 2009-12-23 21:36:13Z ryandesign@macports.org $
2
3PortSystem          1.0
4PortGroup           kde4    1.0
5
6name                amarok-devel
7version             git-20090927
8categories          kde kde4
9maintainers         illogic-al openmaintainer
10description         Amarok, the world-renowned media player.
11long_description    Amarok is a music player and manager with an intuitive \
12                    interface. It provides a variety of feature which helps \
13                    to discover and manage your music.
14platforms           darwin
15homepage            http://amarok.kde.org
16master_sites        http://gitorious.org/amarok
17# The following are placeholders for official beta releases
18#master_sites       http://ftp.kde.org/unstable/${name}/${version}/src/
19#use_bzip2           yes
20#checksums           md5 410863050e5de95df82106cc9dfe486a
21distname            amarok
22fetch.type          git
23git.url             git://gitorious.org/amarok/amarok.git
24git.branch          33f852d6e293aa4632a4381d3468c7cf89224380
25worksrcdir          amarok
26
27depends_build-append port:git-core
28
29depends_lib-append  port:kdebase4-runtime port:kdelibs4 \
30                    port:qtscriptgenerator port:liblastfm \
31                    port:taglib port:taglib-extras \
32                    port:loudmouth \
33                    path:bin/mysql_config5:mysql5
34
35pre-configure {
36    if {![file exists ${prefix}/lib/mysql5/mysql/libmysqld.a]} {
37        ui_error "${name} cannot be installed because MySQL was not installed with the libmysqld embedded server."
38        return -code error "incompatible MySQL installation"
39    }
40}
41
42configure.env           QTDIR=${prefix}/libexec/qt4-mac
43configure.args-append   ../${distname}
44
45default_variants-append    +debug
46
47post-destroot {
48    # Place bundle icons in correct location
49        system "mv ${destroot}${prefix}/bin/amarok.app/Contents/Resources/* ${destroot}${applications_dir}/KDE4/Amarok.app/Contents/Resources/"
50        system "rm -rf ${destroot}${prefix}/bin"
51}
52
Note: See TracBrowser for help on using the repository browser.