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

github.setup    ib xarchiver 0.5.4.23
revision        0
categories      x11 xfce
license         GPL-2
maintainers     nomaintainer
description     Xarchiver is a desktop-agnostic GTK frontend \
                to various command line archiving tools
long_description \
                {*}${description}
homepage        http://xarchiver.xfce.org

checksums       rmd160  146c7e59920fcbcba3e10daddd770e0ded916ea1 \
                sha256  319935cd323e865d8aa12023b5286c314c128491ac58e853e63f6d6ea3da2a27 \
                size    1126908
github.tarball_from archive

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

depends_lib     port:gettext-runtime \
                path:lib/pkgconfig/gtk+-3.0.pc:gtk3

configure.args-append \
                --disable-doc \
                --disable-gtk2 \
                --disable-plugin \
                --disable-silent-rules

# https://github.com/ib/xarchiver/pull/199
patchfiles-append \
                0001-window.c-define-st_mtim-on-macOS.patch \
                0002-exe.c-define-le16toh-on-macOS.patch
