# $Id: Portfile 49047 2009-04-02 09:23:07Z ryandesign@macports.org $

PortSystem          1.0

name                uade2
version             2.12
categories          audio
maintainers         mac.com:mlund
description         Unix Amiga Delitracker Emulator
long_description    UADE plays old amiga music formats by emulating Amiga hardware.\
                    It re-uses Amiga Eagleplayer plugins to play different formats.
homepage            http://zakalwe.fi/uade
platforms           darwin
distname            uade-${version}
use_bzip2           yes
master_sites        http://zakalwe.fi/uade/uade2/

checksums           md5 72342daf52b43ac0c51086cdc088f25c \
                    sha1 799eab82fa984c735bbed179c03190e5249a58ab \
                    rmd160 9a22225c21829d73ad2738c17872e6d31754ed14

depends_build       path:bin/pkg-config:pkgconfig
depends_lib         port:libao

configure.args      --without-uadefs --without-xmms --without-audacious --package-prefix=${destroot}
post-configure {
  reinplace "s|objcopy|echo|g" ${worksrcpath}/src/frontends/xmms/Makefile
}

variant uadefs description {Build with Amiga to WAV filesystem (fuse)} {
  depends_lib-append       port:macfuse
  configure.args-delete    --without-uadefs
}

variant xmms description {Build with plugin for the xmms player} {
  depends_lib-append       port:xmms
  configure.args-delete    --without-xmms
}

