# $Id: Portfile 80073 2011-07-03 23:34:53Z jmr@macports.org $

PortSystem 1.0

name            xorg-libXtst
version         1.2.0
categories      x11 devel
maintainers     jeremyhu openmaintainer
description     X.org libXt
homepage        http://www.x.org
platforms       darwin macosx
long_description X.org libXtst library.
master_sites     xorg:individual/lib/

distname    libXtst-${version}
checksums           md5     7c592c72da6676f8b0aeec9133b81686 \
                    sha1    9fb06ed599caf7f9e7115cbbfadf02b47c17aa72 \
                    rmd160  0cde01dd80e77308e79ffecad01f0a1e3d391c39

use_bzip2   yes
use_parallel_build      yes

depends_build   port:pkgconfig

depends_lib     port:xorg-libXext \
                port:xorg-libXi \
                port:xorg-recordproto

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

	depends_skip_archcheck-append \
		xmlto

	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/lib/?C=M&O=D
livecheck.regex libXtst-(\\d+(?:\\.\\d+)*)
