# $Id: Portfile 101855 2013-01-20 20:08:00Z jeremyhu@macports.org $

PortSystem 1.0

name            xorg-libXcomposite
version         0.4.4
categories      x11 devel
license         X11
maintainers     jeremyhu openmaintainer
description     X.org libXcomposite
homepage        http://www.x.org
platforms       darwin macosx
long_description Composite extension
master_sites     xorg:individual/lib/

distname    libXcomposite-${version}
checksums           md5     f7a218dcbf6f0848599c6c36fc65c51a \
                    sha1    75fd0b996e56e12db1d84e9b63549c5c3f2631ca \
                    rmd160  eb648bea6e2850ced618e95f1e49bd32b139efe8

use_bzip2   yes
use_parallel_build      yes

depends_build   port:pkgconfig

depends_lib     port:xorg-libXfixes \
                port:xorg-libXext \
                port:xorg-compositeproto

configure.args \
	--without-xmlto

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:xmlto

	depends_skip_archcheck-append \
		xmlto

	configure.args-delete \
		--without-xmlto

	configure.args-append \
		--with-xmlto

	configure.env-append \
		XMLTO="${prefix}/bin/xmlto"
}

livecheck.type  regex
livecheck.url   http://xorg.freedesktop.org/archive/individual/lib/?C=M&O=D
livecheck.regex libXcomposite-(\\d+(?:\\.\\d+)*)
