# -*- 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                Thunar
version             4.16.10
revision            0
checksums           rmd160  b80a1c30edde8e90e12a5defcde38ba32cd70203 \
                    sha256  f105c8f5abc50c411f6218f913561ae3a485826bd0cd09503a4772d015899c92 \
                    size    2324476

set branch          [join [lrange [split ${version} .] 0 1] .]
categories          xfce
license             GPL-2+ LGPL-2+
maintainers         nomaintainer
description         Thunar is a modern file manager for the Unix/Linux desktop
long_description    ${description}

homepage            https://docs.xfce.org/xfce/thunar/start
master_sites        https://archive.xfce.org/src/xfce/thunar/${branch}/
distname            thunar-${version}
use_bzip2           yes

patchfiles          INTLTOOL_PERL.patch \
                    no-symlink.patch

configure.args      --enable-dbus \
                    --enable-startup-notification \
                    --enable-pcre \
                    --enable-exif

depends_build       port:intltool \
                    port:pkgconfig

depends_lib         port:desktop-file-utils \
                    port:exo \
                    port:libexif \
                    port:libnotify \
                    port:pcre \
                    port:shared-mime-info \
                    port:startup-notification \
                    port:xfce4-panel

variant quartz conflicts x11 {
    depends_lib-delete \
                    port:startup-notification
    configure.args-append \
                    --disable-wallpaper-plugin
    configure.args-replace \
                    --enable-startup-notification --disable-startup-notification
}
