# -*- 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
PortGroup               active_variants 1.1

name                    xournal
version                 0.4.8.2016
revision                1
categories              x11
platforms               darwin
maintainers             {ryandesign @ryandesign} openmaintainer
license                 GPL-2+
homepage                http://xournal.sourceforge.net/
master_sites            sourceforge:project/${name}/${name}/${version}

description             notetaking, sketching and journal app for use with a \
                        stylus

long_description        ${name} is an application for notetaking, sketching, \
                        and keeping a journal using a stylus. It's similar to \
                        other applications such as Jarnal, Gournal, and NoteLab.

checksums               rmd160  36a0b2bb848d4801e2b00cf2cd58c8f847488c5d \
                        sha256  b25898dbd7a149507f37a16769202d69fbebd4a000d766923bbd32c5c7462826 \
                        size    646082

depends_build           port:pkgconfig

depends_lib             path:lib/pkgconfig/gtk+-2.0.pc:gtk2 \
                        port:libgnomecanvas \
                        path:lib/pkgconfig/poppler.pc:poppler \
                        port:zlib

patchfiles              implicit.patch

require_active_variants gtk2 x11

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README ${destroot}${docdir}
}

notes {
If you are unable to draw in Xournal, try disabling "Use XInput" in the Options menu.
}
