# $Id: Portfile 107190 2013-06-20 23:24:11Z jeremyhu@macports.org $

PortSystem 1.0

name            xorg-libXtst
version         1.2.2
categories      x11 devel
license         X11
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           sha1    7fd92a3c865c3c5e1cc724646babc3e1cdc799bc \
                    rmd160  3256323862479b0d58cc108076eef15b038d57ff \
                    sha256  ef0a7ffd577e5f1a25b1663b375679529663a1880151beaa73e9186c8309f6d9

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+)*)
