# -*- 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            xfce4-dev-tools
version         4.18.1
revision        0
checksums       rmd160  1954379cfef6937d3a4ca955422f6ea3fa81ebe2 \
                sha256  812cabe7048922ebc176564b73c3e427e467c9566365ee3e54c0487d305a7681 \
                size    363652

set branch      [join [lrange [split ${version} .] 0 1] .]
categories      xfce devel
license         GPL-2+
maintainers     nomaintainer
description     A collection of tools and macros for Xfce developer
long_description ${description}
homepage        https://www.xfce.org
master_sites    https://archive.xfce.org/src/xfce/${name}/${branch}/
use_bzip2       yes

depends_build-append \
                port:pkgconfig

depends_lib-append \
                port:gettext-runtime \
                path:lib/pkgconfig/glib-2.0.pc:glib2 \
                port:gtk-doc \
                port:intltool

depends_run-append \
                port:autoconf \
                port:automake \
                bin:git:git \
                port:libtool \
                bin:svn:subversion

if {${os.platform} eq "darwin" && ${os.major} < 13} {
    depends_run-replace \
                bin:git:git port:git
    git.cmd     ${prefix}/bin/git
}

patchfiles      xdt-autogen.patch

post-patch {
    reinplace "s|@@PREFIX@@|${prefix}|g" \
                ${worksrcpath}/scripts/xdt-autogen.in
}

configure.args-append \
                --disable-silent-rules
