# $Id: Portfile 62556 2010-01-11 00:36:42Z jeremyhu@macports.org $

PortSystem 1.0

name		xorg-libXfont
version		1.4.1
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	 http://xorg.freedesktop.org/archive/individual/lib/

distname	libXfont-${version}
checksums           md5     4f2bed2a2be82e90a51a24bb3a22cdf0 \
                    sha1    f8dc669760975b41885143f828b54164224c8a31 \
                    rmd160  a3368fb979409aaaf577b3c8ff6e3aa906f63114
use_bzip2	yes

use_parallel_build  yes

depends_build \
	port:xorg-util-macros \
	port:pkgconfig \
	port:xorg-xtrans

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

configure.args --with-bzip2

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

use_autoreconf yes
autoreconf.args -fvi

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