# $Id: Portfile 61914 2009-12-23 21:36:13Z ryandesign@macports.org $ PortSystem 1.0 PortGroup kde4 1.0 name amarok version 2.2.0 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 5a0188c5eb7d343109b82964942d8eb5 depends_lib-append port:kdebase4-runtime port:kdelibs4 \ port:qtscriptgenerator port:liblastfm \ port:taglib port:taglib-extras \ port:loudmouth \ path:bin/mysql_config5:mysql5 pre-configure { if {![file exists ${prefix}/lib/mysql5/mysql/libmysqld.a]} { ui_error "${name} cannot be installed because MySQL was not installed with the libmysqld embedded server." return -code error "incompatible MySQL installation" } } patchfiles patch-src-app-mac.patch patch.dir ${workpath}/${distname} patch.pre_args -p1 configure.env QTDIR=${prefix}/libexec/qt4-mac configure.args-append ../${distname} post-destroot { # Place bundle icons in correct location system "mv ${destroot}${prefix}/bin/amarok.app/Contents/Resources/* ${destroot}${applications_dir}/KDE4/Amarok.app/Contents/Resources/" system "rm -rf ${destroot}${prefix}/bin" }