# $Id: Portfile 106467 2013-05-27 18:52:45Z jeremyhu@macports.org $

PortSystem          1.0

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

checksums           sha1    68b9c6032f4ac91334a9ad07b0c58a89841e83b1 \
                    rmd160  134cdf3b1bd19850b680e889e228d48e39068554 \
                    sha256  7bf44a32ad04dbbcf3b5eef2cbfe879459378b312cb795e0d2d25e665f7196b7

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

depends_lib         port:xorg-libFS port:xorg-libXfont

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       http://xorg.freedesktop.org/archive/individual/app/?C=M&O=D
