# $Id: Portfile,v 1.11 2006/06/30 04:05:35 ben Exp $

PortSystem 1.0

name		libsdl_ttf
version		2.0.8
categories	devel graphics
maintainers	darwinports@opendarwin.org
platforms	macosx
description	add on library for libSDL for rendering TrueType fonts
long_description	This library is a wrapper around the excellent \
			FreeType 2.0 library allowing to render TrueType fonts \
			in SDL applications.
	
homepage	http://www.libsdl.org/projects/SDL_ttf
master_sites	${homepage}/release/
distname	SDL_ttf-${version}
checksums	sha1 a2c4cb1525173414ca7e5eaefbabadca69bd1114

depends_lib	port:libsdl port:freetype port:zlib

configure.args	--disable-sdltest

post-destroot	{
	xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 0644 -W ${worksrcpath} CHANGES COPYING README \
		${destroot}${prefix}/share/doc/${name}
}

platform darwin 6 {
	depends_lib-append	lib:libdl:dlcompat
}

platform darwin 8 {
	configure.env CC=/usr/bin/gcc CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}
