# $Id: Portfile 113161 2013-11-11 06:40:09Z jeremyhu@macports.org $

PortSystem 1.0

name            xorg-libXext
version         1.3.2
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    49b6f026b0555d020014dbc24b49afc2986a30e0 \
                    rmd160  590c22c5fd97719f2604dd231f007d86d203c8ac \
                    sha256  f829075bc646cdc085fa25d98d5885d83b1759ceb355933127c257e8e50432e0
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+)*)
