# -*- 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                xpad
version             5.8.0
revision            0
categories          x11 sysutils
license             GPL-3
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Virtual note-pad system for your desktop
long_description    ${name} is a sticky note application \
                    for jotting down things to remember.
homepage            https://launchpad.net/xpad/trunk
master_sites        https://launchpad.net/${name}/trunk/${version}/+download/
use_bzip2           yes
checksums           rmd160  5a523dd011436ffe6ead1f2f75d735a5fbde5b34 \
                    sha256  f26052308850c406b15adb8d86acd3962ef10af22b427bb1a5cff4eec96f82e9 \
                    size    162796

use_autoreconf      yes

depends_build-append \
                    port:gettext \
                    path:bin/pkg-config:pkgconfig

depends_lib-append  port:desktop-file-utils \
                    port:ayatana-ido \
                    path:lib/pkgconfig/cairo.pc:cairo \
                    path:lib/pkgconfig/gdk-pixbuf-2.0.pc:gdk-pixbuf2 \
                    port:gettext-runtime \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    port:gtksourceview4 \
                    port:libayatana-appindicator \
                    port:libayatana-indicator \
                    port:libdbusmenu \
                    port:libiconv \
                    port:xorg-libice \
                    port:xorg-libsm \
                    port:xorg-libX11

compiler.c_standard 1999

configure.args-append \
                    --disable-silent-rules \
                    --enable-nls \
                    --enable-appindicator=yes \
                    --with-libiconv-prefix=${prefix} \
                    --with-x

post-activate {
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
}
