# -*- 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
maintainers {jeremyhu @jeremyhu} openmaintainer
description X11 startup script processor
long_description xinit is responsible for configuring the initial environment \
homepage https://www.x.org
master_sites xorg:individual/app/
checksums rmd160 e393a9a41f9582b955a7f174f3b1b10ece0fa92b \
sha256 de9b8f617b68a70f6caf87da01fcf0ebd2b75690cdcba9c921d0ef54fa54abb9 \
depends_run bin:xauth:xauth \
depends_build port:pkgconfig \
depends_lib port:xorg-libX11
if {[vercmp ${os.version} 10.3.0] < 0} {
patchfiles-append disable-launchagent.patch
configure.args --disable-silent-rules \
--with-launchd-id-prefix=org.macports
configure.args-append RAWCPP=${prefix}/bin/tradcpp
xinstall -d ${destroot}${prefix}/etc/X11/xinit/xinitrc.d
xinstall -m 755 {*}[glob ${filespath}/xinitrc.d/*.sh] ${destroot}${prefix}/etc/X11/xinit/xinitrc.d
xinstall -m 755 ${filespath}/font_cache.sh ${destroot}${prefix}/bin/font_cache
reinplace "s|__PREFIX__|${prefix}|g" \
{*}[glob ${destroot}${prefix}/etc/X11/xinit/xinitrc.d/*.sh] \
${destroot}${prefix}/bin/font_cache
# OS X 10.6.3 was the first version whose native X11 allowed the modern socket naming