blob: 5c966bbe6521af1c58a7997a3fa6eb7f2b7b9cb5 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2007 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-r1.ebuild,v 1.15 2007/10/23 23:57:31 jer Exp $
WANT_AUTOMAKE=latest
WANT_AUTOCONF=latest
inherit eutils flag-o-matic autotools
DESCRIPTION="library to use arbitrary fonts in OpenGL applications"
HOMEPAGE="http://homepages.paradise.net.nz/henryj/code/#FTGL"
SRC_URI="http://opengl.geek.nz/ftgl/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 hppa mips ppc ppc64 sparc x86 ~x86-fbsd"
IUSE=""
DEPEND=">=media-libs/freetype-2.0.9
virtual/opengl
virtual/glut"
RDEPEND="${DEPEND}"
S=${WORKDIR}/FTGL/unix
src_unpack() {
unpack ${A}
# Use the correct includedir for pkg-config
epatch \
"${FILESDIR}"/${PV}-ftgl.pc.in.patch \
"${FILESDIR}"/${P}-gcc41.patch
if ! has_version app-doc/doxygen ; then
cd FTGL/docs
tar xzf html.tar.gz || die "unpack html.tar.gz"
ln -fs ../../docs/html "${S}/docs"
fi
sed -i \
-e "s:\((PACKAGE_NAME)\):\1-${PVR}:g" ${S}/docs/Makefile \
|| die "sed failed"
sed -i \
-e "s: \\$:\t\\$:g" ${S}/src/Makefile \
|| die "sed failed"
cd ${S}
AT_M4DIR=m4 eautoreconf
}
src_compile() {
strip-flags # ftgl is sensitive - bug #112820
econf \
--enable-shared \
--enable-shared \
|| die
emake || die
}
src_install() {
einstall || die
dodoc README.txt
}
|