Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 87121
Collapse All | Expand All

(-)freetype/freetype-2.1.9-r2.ebuild (+78 lines)
Line 0 Link Here
1
diff -x '*~' -uNr freetype-2.1.9/src/truetype/ttgload.c freetype-2.1.9.patched/src/truetype/ttgload.c
2
--- freetype-2.1.9/src/truetype/ttgload.c	2004-06-21 23:16:56.000000000 +0200
Line 0 Link Here
1
# Copyright 1999-2005 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/freetype-2.1.9-r2.ebuild,v 1.16 2005/03/30 19:40:32 bernie Exp $
4
5
inherit eutils flag-o-matic gnuconfig libtool
6
7
SPV="`echo ${PV} | cut -d. -f1,2`"
8
9
DESCRIPTION="A high-quality and portable font engine"
10
HOMEPAGE="http://www.freetype.org/"
11
SRC_URI="mirror://sourceforge/freetype/${P/_/}.tar.bz2
12
	doc? ( mirror://sourceforge/${PN}/ftdocs-${PV}.tar.bz2 )"
13
14
LICENSE="FTL GPL-2"
15
SLOT="2"
16
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 ppc-macos s390 sparc x86"
17
#IUSE="zlib bindist cjk doc"
18
IUSE="zlib bindist doc"
19
20
# The RDEPEND below makes sure that if there is a version of moz/ff/tb
21
# installed, then it will have the freetype-2.1.8+ binary compatibility patch.
22
# Otherwise updating freetype will cause moz/ff/tb crashes.  #59849
23
# 20 Nov 2004 agriffis
24
DEPEND="virtual/libc
25
	zlib? ( sys-libs/zlib )"
26
RDEPEND="${DEPEND}
27
	!<www-client/mozilla-1.7.3-r3
28
	!<www-client/mozilla-firefox-1.0-r3
29
	!<mail-client/mozilla-thunderbird-0.9-r3
30
	!<media-libs/libwmf-0.2.8.2"
31
32
src_unpack() {
33
34
	unpack ${A}
35
36
	cd ${S}
37
	# add autohint patch from http://www.kde.gr.jp/~akito/patch/freetype2/
38
	# FIXME : patch hasn't been updated yet
39
	# use cjk && epatch ${FILESDIR}/${SPV}/${P}-autohint-cjkfonts-20031130.patch
40
	epatch ${FILESDIR}/${P}-fix_bci2.patch
41
42
	gnuconfig_update ${S}
43
	uclibctoolize
44
	epunt_cxx
45
}
46
47
src_compile() {
48
49
	# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=118021
50
	append-flags "-fno-strict-aliasing"
51
52
	use bindist || append-flags "${CFLAGS} -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER"
53
54
	make setup CFG="--host=${CHOST} --prefix=/usr `use_with zlib` --libdir=/usr/$(get_libdir)" unix || die
55
56
	emake || die
57
58
	# Just a check to see if the Bytecode Interpreter was enabled ...
59
	if [ -z "`grep TT_Goto_CodeRange ${S}/objs/.libs/libfreetype.so`" ]
60
	then
61
		die "Could not enable Bytecode Interpreter!"
62
	fi
63
64
}
65
66
src_install() {
67
68
	# make prefix=${D}/usr install || die
69
	make DESTDIR="${D}" install || die
70
71
	dodoc ChangeLog README
72
	dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,*.txt,PATENTS,TODO}
73
74
	use doc && dohtml -r docs/*
75
76
}

Return to bug 87121