# $Id: Portfile 80073 2011-07-03 23:34:53Z jmr@macports.org $

PortSystem 1.0

name		xorg-libXfont
version		1.4.3
categories	x11 devel
maintainers	jeremyhu openmaintainer
description	X.org libXfont
homepage	http://www.x.org
platforms	darwin macosx
long_description X font handling library for server and utilities
master_sites	 xorg:individual/lib/

distname	libXfont-${version}
checksums           md5     6fb689cfe13d8d9460f4abb5bd88588d \
                    sha1    191b40c566f80737cf6838747d86ebaee7b0c7d7 \
                    rmd160  f1ad5b5f5e6d4c28aaaeedbe46f284408f267705
use_bzip2	yes

use_parallel_build  yes

depends_build \
	port:pkgconfig \
	port:xorg-xtrans

depends_lib \
	port:freetype \
	port:xorg-libfontenc \
	port:bzip2 \
	port:zlib \
	port:xorg-xproto \
	port:xorg-fontsproto

# Newer libtool add -Wl,-single_module if this isn't set... breaking us
configure.env LT_MULTI_MODULE=1

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

	depends_skip_archcheck-append \
		xmlto

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

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