# $Id: Portfile 66686 2010-04-20 13:10:22Z yves@macports.org $

PortSystem 1.0

name             denemo
version          0.8.10
categories       print audio x11
platforms        darwin
maintainers      nomaintainer

description      Denemo is a unique score editor
long_description \
    Denemo is a unique score editor which exports notation \
    to LilyPond and ABC music formats. \
    It also acts as a frontend for Csound score files. \
    Denemo is different from most graphic music editors, \
    this is partly because it was created to help edit Lilypond notation \
    and partly because of its unique design philosophy.

homepage         http://www.denemo.org/

master_sites     http://download.savannah.gnu.org/releases/denemo/
checksums        md5 3b87158576d9c3fc44f80bd39f39c386

depends_lib      port:aubio port:gtksourceview2 port:guile port:jack port:librsvg port:portaudio
depends_run      port:qtplay

patchfiles       patch-denemo.conf patch-prefops.c
post-patch {
    reinplace "s|../../mkinstalldirs|mkinstalldirs|g" \
        ${worksrcpath}/pixmaps/Makefile.in
    system "touch ${worksrcpath}/src/malloc.h"
}

configure.args   --disable-nls --enable-jack \
                 --sysconfdir=${prefix}/etc

use_parallel_build yes

variant csound description "Csound can be used for playback." {
    depends_run-append port:csound
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     ${name}-(\[0-9.\]+)\\.tar
