# -*- 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            xorg-libXt
version         1.3.0
revision        1

checksums       rmd160  419bd67ac7b1370267f52d2576e461aee56255e9 \
                sha256  52820b3cdb827d08dc90bdfd1b0022a3ad8919b57a39808b12591973b331bf91 \
                size    688084

categories      x11 devel
license         X11
maintainers     {jeremyhu @jeremyhu} openmaintainer
description     X.org libXt
homepage        https://www.x.org
platforms       darwin macosx
long_description X Toolkit Intrinsics, an abstract widget library upon \
    which other toolkits are based. Xt is the basis for many toolkits, \
    including the Athena widgets, Xaw, and LessTif, a Motif \
    implementation.
master_sites    xorg:individual/lib/

distname        libXt-${version}

use_xz          yes

patchfiles      patch-src-vendor.diff

# this port repeatedly fails to build parallel on Tiger
platform darwin 8 {
    use_parallel_build   no
}

depends_build   port:pkgconfig \
                port:xorg-util-macros

depends_lib     port:xorg-libsm \
                port:xorg-libX11

configure.env-append RAWCPP=${configure.cpp}

use_autoreconf  yes
autoreconf.args -fvi

livecheck.type  regex
livecheck.url   https://xorg.freedesktop.org/archive/individual/lib/?C=M&O=D
livecheck.regex libXt-(\\d+(?:\\.\\d+)*)
