# -*- 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
PortGroup compiler_blacklist_versions 1.0
maintainers {gmail.com:starkhalo @harciga} \
description The zathura-djvu plugin adds DjVu support to zathura.
long_description The zathura-djvu plugin adds DjVu support to zathura by \
using the djvulibre library.
homepage http://pwmt.org/projects/zathura/plugins/
master_sites http://pwmt.org/projects/zathura-djvu/download/
distname zathura-djvu-${version}
checksums rmd160 cddb68260f74ff406053c362f94b51caeae8f670 \
sha256 08b7110af13e17a9d221bd7a0f7d3b479b3e31631d78bc6c5efb46271a299c0d
patchfiles patch-Makefile.diff \
depends_build port:pkgconfig
depends_lib port:desktop-file-utils \
path:lib/libgirara-gtk3.dylib:girara \
# blacklist compilers that don't support -std=c11
compiler.blacklist *gcc* {clang < 300}
build.args PREFIX=${prefix}
build.env CC=${configure.cc} \
CFLAGS="[get_canonical_archflags cc]" \
LDFLAGS="[get_canonical_archflags ld]" \
destroot.env {*}${build.env}
destroot.args {*}${build.args}
system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
livecheck.url [lindex ${master_sites} 0]
livecheck.regex zathura-djvu-(\[0-9.\]+)${extract.suffix}