# $Id: Portfile 91048 2012-03-23 07:58:51Z jeremyhu@macports.org $

PortSystem 1.0

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

distname	xcmiscproto-${version}
checksums           sha1    59ae9ec6414964440bf654b207618e5dd66a32fb \
                    rmd160  06890647d88499b9533669837c0091e424b06ba2 \
                    sha256  b13236869372256c36db79ae39d54214172677fb79e9cdc555dceec80bd9d2df
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 xcmiscproto-(\\d+(?:\\.\\d+)*)
