# $Id: Portfile 80471 2011-07-13 15:58:50Z jmr@macports.org $

PortSystem 1.0

name            xorg-libXext
version         1.3.0
categories      x11 devel
license         X11
maintainers     jeremyhu openmaintainer
description     X.org libXext
homepage        http://www.x.org
platforms       darwin macosx
long_description ${description}
master_sites    xorg:individual/lib/

distname    libXext-${version}
checksums           md5     161d200b690ace818db1cc7537e70ba9 \
                    sha1    0bf3708177b9320091ebc069e905c042c31d859d \
                    rmd160  fc3bb37882945e3475a338cb83c89dae04eb75fe
use_bzip2   yes
use_parallel_build      yes

depends_build   port:pkgconfig

depends_lib     port:xorg-libX11 \
                port:xorg-xextproto

configure.env-append RAWCPP=${configure.cpp}

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 libXext-(\\d+(?:\\.\\d+)*)
