blob: 83d1d1d8c3140d0c60d1e78eb22b02ec51519bbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/ftgl/ftgl-2.1.3_rc5.ebuild,v 1.9 2009/11/10 16:36:21 mr_bones_ Exp $
inherit eutils flag-o-matic autotools
MY_PV=${PV/_/-}
MY_PV2=${PV/_/\~}
MY_P=${PN}-${MY_PV}
MY_P2=${PN}-${MY_PV2}
DESCRIPTION="library to use arbitrary fonts in OpenGL applications"
HOMEPAGE="http://ftgl.wiki.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
LICENSE="MIT"
SLOT="0"
KEYWORDS="alpha amd64 hppa ~mips ppc ppc64 sparc x86 ~x86-fbsd"
IUSE=""
DEPEND=">=media-libs/freetype-2.0.9
virtual/opengl
virtual/glu
virtual/glut"
S=${WORKDIR}/${MY_P2}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-gentoo.patch
AT_M4DIR=m4 eautoreconf
}
src_compile() {
strip-flags # ftgl is sensitive - bug #112820
econf
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
rm -rf "${D}"/usr/share/doc/ftgl
dodoc AUTHORS BUGS ChangeLog INSTALL NEWS README TODO \
docs/projects_using_ftgl.txt
}
|