# -*- 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
# $Id: Portfile 77147 2011-03-21 06:27:29Z rmstonecipher@macports.org $

PortSystem          1.0
PortGroup           kde4    1.1

name                amarok
conflicts           amarok-devel
version             2.3.2
revision            1
categories          kde kde4
maintainers         illogic-al openmaintainer
description         Amarok, the world-renowned media player.
long_description    Amarok is a music player and manager with an intuitive \
                    interface. It provides a variety of feature which helps \
                    to discover and manage your music.
platforms           darwin
homepage            http://amarok.kde.org
master_sites        kde:stable/${name}/${version}/src/
use_bzip2           yes
checksums           md5 4e03dc009f8b44d9b8dfb5f6d1034081 \
                    sha1 594d6d3ad57832fb80ba4387459356132d37ace2 \
                    rmd160 3c2a7868fb7b3f74e35e124cf3a8bad5d8653390

depends_lib-append  port:kdebase4-runtime port:kdelibs4 \
                    port:qtscriptgenerator port:liblastfm \
                    port:taglib port:taglib-extras \
                    port:loudmouth port:qca port:libmtp port:libgpod \
                    path:lib/mysql5/mysql/libmysqld.a:mysql5

post-patch {
    # fix 32/64-bit pointer for 'this' in AE
    reinplace "s@long@URefCon@g" ${workpath}/${distname}/src/app_mac.cpp
    reinplace "/setupEventHandler_mac/s@long@URefCon@g" \
        ${workpath}/${distname}/src/App.cpp
}
