# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/ftgl/ftgl-2.1.2-r2.ebuild,v 1.1 2008/01/05 01:15:02 mr_bones_ Exp $ WANT_AUTOMAKE=latest WANT_AUTOCONF=latest inherit eutils MY_PV=${PV/_/-} MY_PV2=${PV/_/\~} DESCRIPTION="library to use arbitrary fonts in OpenGL applications" HOMEPAGE="http://homepages.paradise.net.nz/henryj/code/#FTGL" SRC_URI="mirror://sourceforge/ftgl/${PN}-${MY_PV}.tar.bz2" LICENSE="LGPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" IUSE="X doc" RDEPEND=">=media-libs/freetype-2.3.7 virtual/opengl virtual/glut" DEPEND="${RDEPEND} doc? ( app-doc/doxygen )" S="${WORKDIR}/${PN}-${MY_PV2}" src_compile() { econf \ --disable-dependency-tracking \ --with-glut-inc=/usr/include/ \ --with-glut-lib=/usr/lib \ --with-gl-inc=/usr/include/ \ --with-gl-lib=/usr/lib \ $(use_with X) # fix cflags sed -i \ -e "s:-g -O2:${CFLAGS}:" \ -e "s:-Wall:${CXXFLAGS}:" \ Makefile || die "sed Makefile failed" if use doc; then sed -i \ -e "s:src test demo docs:src test demo:" \ Makefile || die "sed Makefile failed" fi emake || die "emake failed" } src_install() { einstall || die "einstall failed" dodoc README NEWS TODO BUGS AUTHORS }