# $Id: Portfile 90421 2012-03-05 02:27:52Z jeremyhu@macports.org $

PortSystem        1.0

name              xorg-libice
version           1.0.8
categories        x11 devel
license           X11
maintainers       jeremyhu openmaintainer
platforms         darwin macosx

description       X.org libice
long_description  X Inter-Client Exchange Protocol

homepage          http://www.x.org/
master_sites      xorg:individual/lib/
distname          libICE-${version}
use_bzip2         yes
use_parallel_build      yes

checksums           sha1    ddb14df8bbc43df7322978f5f9f802936e2a7324 \
                    rmd160  18d6e7dbb0804bff181120758e7ce4d0ca609478 \
                    sha256  24a991284d02ff0c789bc8d11ad2e4dffe144cb70f24e28f9ce3e8b1ee08b71e

depends_build     port:pkgconfig \
                  port:xorg-xtrans

depends_lib       port:xorg-xproto

configure.args \
	--without-xmlto \
	--without-fop \
	--disable-docs \
	--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

	depends_skip_archcheck-append \
		xmlto

	configure.args-delete \
		--without-xmlto \
		--without-fop \
		--disable-docs \
		--disable-specs

	configure.args-append \
		--with-xmlto \
		--with-fop \
		--enable-docs \
		--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 libICE-(\\d+(?:\\.\\d+)*)
