# $Id: Portfile 53730 2009-07-13 02:31:15Z jeremyhu@macports.org $

PortSystem 1.0

name		xorg-libX11
version		1.2.2
categories	x11 devel
maintainers	jeremyhu openmaintainer
description	X.org libX11
homepage	http://www.x.org
platforms	darwin macosx
long_description libX11 is the main library used by X Window System applications to communicate with the X server.
master_sites	 ${homepage}/pub/individual/lib/

distname	libX11-${version}
checksums           md5     94cbee7fae2ddb92b2d80116af871f54 \
                    sha1    7962063e124856f8a36afd760a934e6e429f036b \
                    rmd160  6032ed99cbd6df8e92ae7cf319bf220bc5768054
use_bzip2	yes
use_parallel_build      yes

depends_build   port:pkgconfig \
                port:xorg-xtrans \
		port:libtool \
		port:autoconf \
		port:automake \
		port:xorg-util-macros

depends_lib     port:xorg-libXdmcp \
                port:xorg-libXau \
                port:xorg-bigreqsproto \
                port:xorg-xcmiscproto \
                port:xorg-xproto \
                port:xorg-xextproto \
                port:xorg-xf86bigfontproto \
                port:xorg-inputproto \
                port:xorg-kbproto

use_autoreconf yes
autoreconf.args -fvi

configure.args  --without-xcb
variant x11_xcb description "use XCB for low-level protocol implementation" {
	depends_lib-append port:xorg-libxcb
	configure.args-delete --without-xcb
	configure.args-append --with-xcb
}

livecheck.check regex
livecheck.url   [lindex ${master_sites} 0]?C=M&O=D
livecheck.regex libX11-(\\d+(?:\\.\\d+)*)
