# $Id: Portfile 80073 2011-07-03 23:34:53Z jmr@macports.org $

PortSystem 1.0

name		xorg-fontsproto
version		2.1.1
categories	x11 devel
maintainers	jeremyhu openmaintainer
description	X.org fontsproto
homepage	http://www.x.org
platforms	darwin
supported_archs	noarch
long_description Font-related prototype header files for X11
master_sites	 xorg:individual/proto/

distname	fontsproto-${version}
checksums           md5     37102ffcaa73f77d700acd6f7a25d8f0 \
                    sha1    77ab428ad4ad7cf0294a72a2201d665c4edf5fb1 \
                    rmd160  5c7b646dbfec1bf4ee1a38d490d9885c08ada0dd
use_bzip2	yes

configure.args \
	--without-xmlto \
	--without-fop \
	--disable-specs

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 \
		port:xorg-sgml-doctools

	configure.args-delete \
		--without-xmlto \
		--without-fop \
		--disable-specs

	configure.args-append \
		--with-xmlto \
		--with-fop \
		--enable-specs

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

livecheck.type  regex
livecheck.url   http://xorg.freedesktop.org/archive/individual/proto/?C=M&O=D
livecheck.regex fontsproto-(\\d+(?:\\.\\d+)*)
