# -*- 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                xdm
version             1.1.12
revision            0
categories          x11
license             X11 BSD
maintainers         {jeremyhu @jeremyhu} openmaintainer
description         X11 display manager with support for XDMCP, host chooser
long_description \
   xdm manages a collection of X displays, which may be on the local host \
   or remote servers.

platforms           darwin

homepage            https://www.x.org/
master_sites        xorg:individual/app/
use_bzip2           yes

checksums           rmd160  63bf363980062847a6546225cf9ef74377d4bce7 \
                    sha256  0dd283f72dda098d09e2925b9278c95e21551e693a5802ab442d1b577d8327f4 \
                    size    512074

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

depends_lib         port:xorg-libXinerama \
                    port:xorg-libXaw

patch.pre_args-replace  -p0 -p1
patchfiles          socket.patch

use_autoreconf      yes
autoreconf.args     -fvi

configure.args      --disable-silent-rules

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

livecheck.type      regex
livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
livecheck.url       https://xorg.freedesktop.org/archive/individual/app/?C=M&O=D
