# -*- 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

PortSystem          1.0

name                denemo
version             2.6.0
revision            2
checksums           rmd160  27af270ad5f80485565d0f4d95d99625d770768b \
                    sha256  4be5970c69847f97f1f876275c9744e5034e7c983b12a1045fb20c236494b55d \
                    size    17620623

categories          print audio x11
maintainers         nomaintainer
license             GPL-3+

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            https://www.denemo.org
master_sites        gnu

depends_build       port:intltool \
                    port:autoconf \
                    port:automake \
                    port:gettext \
                    port:libtool \
                    path:bin/pkg-config:pkgconfig

depends_lib         port:aubio \
                    port:evince \
                    port:fftw-3 \
                    port:fluidsynth \
                    port:gettext-runtime \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    port:gtksourceview3 \
                    port:guile-2.2 \
                    port:jack \
                    path:lib/pkgconfig/librsvg-2.0.pc:librsvg \
                    port:libsmf \
                    port:libsndfile \
                    port:libxml2 \
                    port:portaudio \
                    port:portmidi \
                    port:rubberband

depends_run         path:bin/lilypond:lilypond

# guile is not universal.
universal_variant   no

patchfiles          implicit.patch

# reconfigure using upstream autogen.sh for intltool 0.51 compatibility

post-patch {
    xinstall -m 0755 ${filespath}/autogen.sh ${worksrcpath}
    reinplace "s|/usr/|${prefix}/|" ${worksrcpath}/autogen.sh
}

configure.cmd       ./autogen.sh && ./configure

configure.args      --enable-evince \
                    --enable-fluidsynth \
                    --enable-gtk3 \
                    --enable-guile_2_2 \
                    --enable-jack \
                    --enable-portaudio \
                    --enable-portmidi \
                    --enable-rubberband

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