# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="FTGL is a free, open source library to enable developers to use arbitrary fonts in their OpenGL (www.opengl.org) applications." HOMEPAGE="http://homepages.paradise.net.nz/henryj/code/#FTGL" SRC_URI="http://homepages.paradise.net.nz/henryj/code/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=media-libs/freetype-2.0.9 virtual/opengl virtual/glut" #RDEPEND="" S=${WORKDIR}/FTGL/unix src_unpack() { unpack ${A} cd ${WORKDIR} # patch to get glyphs with the right colour in the cache (from blender README) epatch ${FILESDIR}/ftgl-glyphs.patch if ! has_version doxygen; then cd FTGL/docs tar xzf html.tar.gz ln -fs ../../docs/html ${S}/docs fi sed -i "s:\((PACKAGE_NAME)\):\1-${PVR}:g" ${S}/docs/Makefile sed -i "s: \\$:\t\\$:g" ${S}/src/Makefile } src_compile() { cd ${S} ./configure \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man || die "./configure failed" emake || die "emake failed" } src_install() { einstall || die dodoc README.txt } pkg_postinst() { einfo "" einfo "Start demo with FTGLDemo <.ttf file with path>." einfo "" }