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

PortSystem 1.0

name		xorg-bigreqsproto
version		1.1.2
categories	x11 devel
license		X11
maintainers	jeremyhu openmaintainer
description	X.org bigreqsproto
homepage	http://www.x.org
platforms	darwin
supported_archs	noarch
long_description Prototype headers for BigReqs extension to X11
master_sites 	xorg:individual/proto/

distname	bigreqsproto-${version}
checksums           sha1    ef1765eeb5e9e38d080225fe6a64ed7cd2984b46 \
                    rmd160  3bff3c4c05a0061e492181d4e687469e590b3900 \
                    sha256  462116ab44e41d8121bfde947321950370b285a5316612b8fce8334d50751b1e
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 bigreqsproto-(\\d+(?:\\.\\d+)*)
