# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 115091 2013-12-24 08:17:07Z ryandesign@macports.org $

PortSystem			1.0

name				Xft2
version				2.3.1
revision			1
categories			x11
license				X11
maintainers			 jeremyhu openmaintainer
description			client-side font API for X applications
long_description \
	The current version of Xft provides a client-side font API for \
	X applications. It uses Fontconfig to select fonts and the X \
	protocol for rendering them. When available, Xft uses the \
	Render extension to accelerate text drawing. When Render is \
	not available, Xft uses the core protocol to draw client-side \
	glyphs. This provides completely compatible support of \
	client-side fonts for all X servers.

platforms			darwin

homepage            http://www.freedesktop.org/wiki/Software/Xft/
master_sites		        http://xorg.freedesktop.org/releases/individual/lib/
distname			libXft-${version}
use_bzip2			yes
use_parallel_build		yes

checksums           sha1    c7ec1361e3d4f095910f8c58988ab42e32f314d9 \
                    rmd160  81a29298af843dff03234a6f0068ae052e698380 \
                    sha256  7fce32b92dcb7b2869bed567af2abc7bbad0d5d6fcf471b8a3e137964a31bbbd

depends_build \
	port:pkgconfig

depends_lib \
	port:zlib \
	port:xrender \
	port:freetype \
	port:fontconfig \
	port:expat

patchfiles          patch-freetype-2.5.1.diff

configure.args      --disable-silent-rules

livecheck.type      regex
livecheck.url       ${master_sites}?C=M&O=D
livecheck.regex     libXft-(\[0-9.\]+)\\.tar\\.bz2
