# $Id: Portfile 102011 2013-01-24 18:19:50Z jeremyhu@macports.org $

PortSystem          1.0

name                xdm
version             1.1.11
categories          x11
license             X11 BSD
maintainers         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            http://www.x.org/
master_sites        xorg:individual/app/
use_bzip2           yes

checksums           md5     64a1af1f7eb69feae12e75d4cc3aaf19 \
                    sha1    8195a8e17d71d18cb89813d04b69a3750e9e818e \
                    rmd160  574b5bda0b46a43d0df474279d03e49fa93c9a92

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

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

patchfiles          0001-Look-for-pam-in-both-pam-and-security-paths.patch
patch.pre_args      -p1

use_autoreconf      yes
autoreconf.args     -fvi

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

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