# $Id: Portfile 80472 2011-07-13 16:00:00Z jmr@macports.org $

PortSystem 1.0

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

distname	scrnsaverproto-${version}
checksums           md5     6af0f2e3369f5f74e69345e214f5fd0d \
                    sha1    94758e81ac20469c5b586b6cef924c8ab9a32e0f \
                    rmd160  8e567d080daa9adcbfeeeb9b0fe27ec68e441246
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 scrnsaverproto-(\\d+(?:\\.\\d+)*)
