diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2002-12-14 17:35:44 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2002-12-14 17:35:44 +0000 |
commit | bbf4e30243caa90387004a0c11d6adadf07427c1 (patch) | |
tree | 3990b76bca335a92b5364e1c0badeba516b2b252 /media-libs/freetype | |
parent | make sure old Xft and Xrender libs are removed (diff) | |
download | gentoo-2-bbf4e30243caa90387004a0c11d6adadf07427c1.tar.gz gentoo-2-bbf4e30243caa90387004a0c11d6adadf07427c1.tar.bz2 gentoo-2-bbf4e30243caa90387004a0c11d6adadf07427c1.zip |
do not enable the FT Smooth patch by default
Diffstat (limited to 'media-libs/freetype')
-rw-r--r-- | media-libs/freetype/ChangeLog | 9 | ||||
-rw-r--r-- | media-libs/freetype/files/digest-freetype-2.1.3-r1 | 3 | ||||
-rw-r--r-- | media-libs/freetype/freetype-2.1.3-r1.ebuild | 69 |
3 files changed, 80 insertions, 1 deletions
diff --git a/media-libs/freetype/ChangeLog b/media-libs/freetype/ChangeLog index c53bd4aba7ae..2d04657a3ece 100644 --- a/media-libs/freetype/ChangeLog +++ b/media-libs/freetype/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-libs/freetype # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v 1.13 2002/12/13 04:17:47 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v 1.14 2002/12/14 17:35:44 azarah Exp $ + +*freetype-2.1.3-r1 (14 Dec 2002) + + 14 Dec 2002; Martin Schlemmer <azarah@gentoo.org> freetype-2.1.3-r1.ebuild : + Only apply the FT Smooth patch if 'smooth' in USE. I should really use a + better USE flag, but until a more generic one is found ... I did this, + as not everybody wants this, and it makes some fonts look worse ... *freetype-2.1.3 (13 Dec 2002) diff --git a/media-libs/freetype/files/digest-freetype-2.1.3-r1 b/media-libs/freetype/files/digest-freetype-2.1.3-r1 new file mode 100644 index 000000000000..aff48b07b0c8 --- /dev/null +++ b/media-libs/freetype/files/digest-freetype-2.1.3-r1 @@ -0,0 +1,3 @@ +MD5 09775a4111e066f782866d8a57d8481b freetype-2.1.3.tar.bz2 790213 +MD5 7c762b2333f4444d6afac14d3b9de663 ftdocs-2.1.3.tar.bz2 208745 +MD5 9d409f672e2cd292556f1e7e298890bb ft-smooth-20021210.tar.gz 560051 diff --git a/media-libs/freetype/freetype-2.1.3-r1.ebuild b/media-libs/freetype/freetype-2.1.3-r1.ebuild new file mode 100644 index 000000000000..4e95ab8847ad --- /dev/null +++ b/media-libs/freetype/freetype-2.1.3-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/freetype-2.1.3-r1.ebuild,v 1.1 2002/12/14 17:35:44 azarah Exp $ + +IUSE="doc" + +inherit eutils flag-o-matic + +FT_SMOOTH_VER="20021210" + +SPV="`echo ${PV} | cut -d. -f1,2`" +S="${WORKDIR}/${P}" +DESCRIPTION="A high-quality and portable font engine" +SRC_URI="mirror://sourceforge/freetype/${P}.tar.bz2 + doc? ( mirror://sourceforge/${PN}/ftdocs-${PV}.tar.bz2 ) + smooth? ( http://www.cs.mcgill.ca/~dchest/xfthack/ft-smooth-${FT_SMOOTH_VER}.tar.gz )" +HOMEPAGE="http://www.freetype.org/" + +SLOT="2" +LICENSE="FTL | GPL-2" +KEYWORDS="~x86 ~ppc ~sparc ~alpha" + +DEPEND="virtual/glibc" + +src_unpack() { + unpack ${A} + +# This is done now by adding '-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER' +# to our CFLAGS. +# <azarah@gentoo.org> (13 Dec 2002) + # Enable hinting for truetype fonts +# cd ${S}/include/freetype/config +# cp ftoption.h ftoption.h.orig +# sed -e 's:#undef TT_CONFIG_OPTION_BYTECODE_INTERPRETER:#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER:' \ +# ftoption.h.orig > ftoption.h + + # Patches fro better rendering quality. Home page: + # + # http://www.cs.mcgill.ca/~dchest/xfthack/ + # + cd ${S} + use smooth && epatch ${WORKDIR}/ft-smooth-${FT_SMOOTH_VER}/ft-all-together.diff +} + + +src_compile() { + # Enable Bytecode Interpreter. + append-flags "${CFLAGS} -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER" + + make CFG="--host=${CHOST} --prefix=/usr" || die + emake || die + + # Just a check to see if the Bytecode Interpreter was enabled ... + if [ -z "`grep TT_Goto_CodeRange ${S}/objs/.libs/libfreetype.so`" ] + then + eerror "Could not enable Bytecode Interpreter!" + die "Could not enable Bytecode Interpreter!" + fi +} + +src_install() { + make prefix=${D}/usr install || die + + dodoc ChangeLog README + dodoc docs/{BUGS,BUILD,CHANGES,*.txt,PATENTS,readme.vms,TODO} + + use doc && dohtml -r docs/* +} + |