# -*- 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
version             20090316
categories          x11
maintainers         {jeremyhu @jeremyhu} openmaintainer
license             Permissive

supported_archs     noarch

description         The X Window System
long_description    \
    X11, or X, is a vendor-neutral, system-architecture neutral     \
    network-transparent window system and user interface standard.  \
    In other words, it is a GUI for UNIX. X can use your network --     \
    you may run CPU-intensive programs on high powered workstations \
    and display the user interface, the windows, on inexpensive     \
    desktop machines.

platforms           any
homepage            https://www.x.org/

depends_run         port:xorg-apps \
                    path:bin/Xquartz:xorg-server \
                    port:quartz-wm

# use xorg-server-legacy on 10.10 and less, for now at least
platform darwin {
    if {${os.major} < 15} {
        depends_run-replace path:bin/Xquartz:xorg-server \
                            path:bin/Xquartz:xorg-server-legacy
    }
}

distfiles
use_configure       no
build               {}
destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
}

livecheck.type      none
