# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 66804 2010-04-23 02:08:25Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           cmake 1.0

name                lmms
version             0.4.5
categories          multimedia
maintainers         nomaintainer

description         Linux Multimedia Studio
long_description    Free alternative to popular programs such as FruityLoops, Cubase and Logic

homepage            http://lmms.sourceforge.net
platforms           darwin
master_sites        sourceforge
#parallel build seems broken :(
use_parallel_build  no
use_bzip2           yes
checksums           md5     6d58d73b44baddadc4f0ac6464fbd530 \
                    sha1    b26299c027b1e7f228e4d0110beb4b0a968eecb8 \
                    rmd160  ad75e29a8c94f82e1178eacd838d524177bc3896

#disable VST because it is not supported on OS X
configure.args-append   -DWANT_VST=off

depends_lib         port:libsndfile \
                    path:bin/qmake-mac:qt4-mac \
                    path:lib/pkgconfig/sdl.pc:libsdl \
                    port:fftw-3-single \
                    port:fluidsynth

# Disable zynaddsubfx plugin on x86_64 as the included fltk does not build
if {${configure.build_arch} == "x86_64"} {
    patchfiles patch-disable-zynaddsubfx.diff
}

livecheck.type      regex
livecheck.url       http://sourceforge.net/projects/${name}/files/
livecheck.regex     ${name}-(\[0-9.\]+)\\.tar
