# $Id: Portfile 90514 2012-03-08 04:15:51Z jeremyhu@macports.org $

PortSystem 1.0

name            xorg-libXext
version         1.3.1
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           sha1    764ac472ae19a0faade193717a9e0938d3430aaa \
                    rmd160  add5e4362d64e57f885d35abaae9b5f3dc0d14d2 \
                    sha256  56229c617eb7bfd6dec40d2805bc4dfb883dfe80f130d99b9a2beb632165e859
use_bzip2   yes
use_parallel_build      yes

depends_build   port:pkgconfig \
                port:xorg-util-macros

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

use_autoreconf  yes
autoreconf.args -fvi

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