# $Id: Portfile 91046 2012-03-23 07:57:24Z jeremyhu@macports.org $

PortSystem 1.0

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

distname	recordproto-${version}
checksums           sha1    1f48c4b0004d8b133efd0498e8d88d68d3b9199c \
                    rmd160  7cf5ab53e3c06fcb917d67fdbfe235be5b019b23 \
                    sha256  a777548d2e92aa259f1528de3c4a36d15e07a4650d0976573a8e2ff5437e7370
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 recordproto-(\\d+(?:\\.\\d+)*)
