# $Id: Portfile 118620 2014-04-06 10:08:16Z jeremyhu@macports.org $

PortSystem 1.0

name		xorg-xextproto
version		7.3.0
categories	x11 devel
license		X11
maintainers	jeremyhu openmaintainer
description	X.org xextproto
homepage	http://www.x.org
platforms	darwin
supported_archs	noarch
long_description Prototype headers for Xext
master_sites 	xorg:individual/proto/
distname	xextproto-${version}
use_bzip2	yes

checksums           sha1    b8d736342dcb73b71584d99a1cb9806d93c25ff8 \
                    rmd160  241a3050c149fc00d308723fed10eed837406359 \
                    sha256  f3f4b23ac8db9c3a9e0d8edb591713f3d70ef9c3b175970dd8823dfc92aa5bb0

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:xmlto \
		port:fop \
		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 \
		FOP="${prefix}/bin/fop" \
		XMLTO="${prefix}/bin/xmlto"
}

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