# $Id: Portfile,v 1.22 2006/07/16 06:22:37 yves Exp $

PortSystem	1.0
name            freetype
version         2.1.10
revision        1
categories      print graphics
maintainers     darwinports@opendarwin.org
description     A software font engine
long_description \
		FreeType2 is a software font engine that is designed to \
		be small, efficient, highly customizable and portable while \
		capable of producing   high-quality output (glyph images). \
		It can be used in graphics libraries, display servers, font \
		conversion tools, text image generation tools, and many \
		other products as well.
homepage        http://freetype.sourceforge.net/
platforms       darwin
master_sites    http://download.savannah.gnu.org/releases/freetype/ \
                    sourceforge
use_bzip2       yes
checksums       md5 a4012e7d1f6400df44a16743b11b8423
patchfiles      patch-ftconfig.h

depends_lib     port:zlib
configure.args  --with-zlib=${prefix}
configure.env   CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"

variant x86	{
	patchfiles-append	patch-builds-unix-configure
}

variant bytecode {
    pre-configure {
        ui_msg "\n\n\
            You may want not to compile a bytecode interpreter into the\n\
            TrueType driver. Without this you will only compile the code\n\
            necessary to load TrueType glyphs without hinting.\n\n\
            Note that there are important patent issues related to the\n\
            use of the interpreter.\n\n"
    }
    patchfiles-append patch-ftoption.h
}
