# $Id: Portfile 80076 2011-07-03 23:46:28Z jmr@macports.org $

PortSystem          1.0

name                xfs
version             1.1.1
categories          x11 graphics
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           md5     e02c6cae689c082b8c98a421df8f8670 \
                    sha1    aa0f4cb4e307c531a78ba9d09c44d042c072742b \
                    rmd160 5245c6276e4d71f697d2c388f92128f64231e40c 

depends_build       port:pkgconfig

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
