# $Id: Portfile 54724 2009-08-01 01:36:39Z snc@macports.org $

PortSystem 1.0

name		xorg-libXfont
version		1.4.0
revision	2
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     3a8e06b25912ef339d70a8ba003da9b5 \
                    sha1    f47a2f41273cdbe5198ac700df70686fab72cd35 \
                    rmd160  999e6bbbbfaa2ad238abd9b7f1d93adf95143614
use_bzip2	yes

use_parallel_build  yes

depends_build \
	port:libtool \
	port:autoconf \
	port:automake \
	port:xorg-util-macros \
	port:pkgconfig \
	port:xorg-xtrans

depends_lib \
	port:freetype \
	port:xorg-libfontenc \
	port:bzip2 \
	port:zlib \
	port:xorg-fontcacheproto \
	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

patchfiles e1927f80deabe0268dc18b4a9f3ceda1325171f5.patch
patch.args -R -p1

use_autoreconf yes
autoreconf.args -fvi

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