# $Id: Portfile 111127 2013-09-15 23:39:35Z jeremyhu@macports.org $

PortSystem 1.0

name		xorg-libXmu
version		1.1.2
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           sha1    7e6aeef726743d21aa272c424e7d7996e92599eb \
                    rmd160  8f4224ddacffaf0fbe1d6340fc846dfd3b1563b1 \
                    sha256  756edc7c383254eef8b4e1b733c3bf1dc061b523c9f9833ac7058378b8349d0b
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+)*)
