# $Id: Portfile 80603 2011-07-15 16:22:44Z jmr@macports.org $

PortSystem 1.0

name		xorg-libXmu
version		1.1.0
categories	x11 devel
license		X11
maintainers	jeremyhu openmaintainer
description	X.org libXmu
homepage	http://www.x.org
platforms	darwin macosx
long_description X.org Xmu library
master_sites	xorg:individual/lib/

distname	libXmu-${version}
checksums           md5     6836883a0120e8346cf7f58dc42e465a \
                    sha1    81876a0848070bfc4476a2538fc16898eb6d96cd \
                    rmd160  e6ca19dfb86a3532faa6e37c8a5cd6edff6a1c62
use_bzip2	yes
use_parallel_build      yes

depends_build \
	port:pkgconfig

depends_lib \
	port:xorg-libXext \
	port:xorg-libXt

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

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-docs

	configure.args-append \
		--with-xmlto \
		--with-fop \
		--enable-docs

	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 libXmu-(\\d+(?:\\.\\d+)*)
