# $Id: Portfile 91044 2012-03-23 07:56:25Z jeremyhu@macports.org $

PortSystem 1.0

name		xorg-fontsproto
version		2.1.2
categories	x11 devel
license		X11
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           sha1    538f0880faa6981cb1a348ced93dc715c42840f7 \
                    rmd160  5a196c43dab89c7f4887dc14b419d53604e5672b \
                    sha256  869c97e5a536a8f3c9bc8b9923780ff1f062094bab935e26f96df3d6f1aa68a9
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+)*)
