# -*- 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                xfs
version             1.2.0
revision            1
categories          x11 graphics
license             X11
maintainers         {jeremyhu @jeremyhu} openmaintainer
description         X11 font server
long_description \
   xfs is the X Window System font server.  It supplies fonts to X Window \
   System display servers.

platforms           darwin

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

checksums           rmd160  131a282dcf30b3e56e39d3107349fe4fcb020e9a \
                    sha256  db2212115783498f8eeaaee1349461d6c4e9d2005e142bacd3a984fe57269860 \
                    size    233957

depends_build       port:pkgconfig port:xorg-util-macros port:xorg-xtrans port:xorg-font-util

depends_lib         port:xorg-libXfont2

configure.args \
	--without-xmlto \
	--without-fop \
	--disable-devel-docs

build.args V=1

# Depending on ghostscript for the PDF documentation creates a dependency
# loop, so you may want to install first without the docs variant
variant docs description "Install extra documentation" {
	depends_build-append \
		port:fop \
		port:xmlto

	depends_skip_archcheck-append \
		xmlto

	configure.args-delete \
		--without-xmlto \
		--without-fop \
		--disable-devel-docs

	configure.args-append \
		--with-xmlto \
		--with-fop \
		--enable-devel-docs

	configure.env-append \
		XMLTO=${prefix}/bin/xmlto \
		FOP=${prefix}/bin/fop
}

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