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

PortSystem 1.0

name		xorg-scrnsaverproto
version		1.2.2
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           sha1    640a2cbef5893aacda74799e6fa4d973e629b753 \
                    rmd160  7822f18bef696129485d86c83824e35f6ffbc0fa \
                    sha256  8bb70a8da164930cceaeb4c74180291660533ad3cc45377b30a795d1b85bcd65
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+)*)
