summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarinus Schraal <foser@gentoo.org>2004-07-20 00:31:05 +0000
committerMarinus Schraal <foser@gentoo.org>2004-07-20 00:31:05 +0000
commitdeb3784702abc3950db5299a2e7753a7e6a4bace (patch)
treeee5ae2a9e8e6811112d63f87562c58de189113d9 /media-libs/freetype
parentInitial import. (Manifest recommit) (diff)
downloadgentoo-2-deb3784702abc3950db5299a2e7753a7e6a4bace.tar.gz
gentoo-2-deb3784702abc3950db5299a2e7753a7e6a4bace.tar.bz2
gentoo-2-deb3784702abc3950db5299a2e7753a7e6a4bace.zip
new release 'n cleanup
Diffstat (limited to 'media-libs/freetype')
-rw-r--r--media-libs/freetype/ChangeLog9
-rw-r--r--media-libs/freetype/Manifest2
-rw-r--r--media-libs/freetype/files/2.1/freetype-2.1.3-slighthint.patch318
-rw-r--r--media-libs/freetype/files/digest-freetype-2.1.3-r23
-rw-r--r--media-libs/freetype/files/digest-freetype-2.1.42
-rw-r--r--media-libs/freetype/files/digest-freetype-2.1.4-r12
-rw-r--r--media-libs/freetype/files/digest-freetype-2.1.92
-rw-r--r--media-libs/freetype/freetype-2.1.3-r2.ebuild62
-rw-r--r--media-libs/freetype/freetype-2.1.4.ebuild59
-rw-r--r--media-libs/freetype/freetype-2.1.9.ebuild (renamed from media-libs/freetype/freetype-2.1.4-r1.ebuild)37
10 files changed, 33 insertions, 463 deletions
diff --git a/media-libs/freetype/ChangeLog b/media-libs/freetype/ChangeLog
index 0e1764a68271..933cddf3deaf 100644
--- a/media-libs/freetype/ChangeLog
+++ b/media-libs/freetype/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-libs/freetype
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v 1.50 2004/07/01 07:55:56 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/ChangeLog,v 1.51 2004/07/20 00:31:05 foser Exp $
+
+*freetype-2.1.9 (20 Jul 2004)
+
+ 20 Jul 2004; foser <foser@gentoo.org> freetype-2.1.9.ebuild :
+ New release
+ Add -fno-strict-aliasing (https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=118021)
+ Disabled cjk patch, it doesn't apply anymore
01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org>
freetype-1.3.1-r3.ebuild, freetype-1.3.1-r4.ebuild,
diff --git a/media-libs/freetype/Manifest b/media-libs/freetype/Manifest
index d3443738c69f..3cab3ec09b7d 100644
--- a/media-libs/freetype/Manifest
+++ b/media-libs/freetype/Manifest
@@ -2,6 +2,7 @@ MD5 055df785fa962ac71870795d2f6be8eb freetype-2.1.5-r1.ebuild 1360
MD5 26ac9794e0a57e9df8b0336b4dd801e6 freetype-2.1.7.ebuild 1416
MD5 d9fdec25dc534e0ee2e168c84ed749df freetype-2.1.3-r2.ebuild 1875
MD5 5a94b3f36715cb07c4b7079f893a06dc freetype-1.3.1-r4.ebuild 2978
+MD5 26ac9794e0a57e9df8b0336b4dd801e6 freetype-2.1.9.ebuild 1416
MD5 f27920cb1f089b74ecc4527db0e37aa4 freetype-2.1.4.ebuild 1422
MD5 832135ca82d2cb1c1aee83bc4660edf2 freetype-2.1.4-r1.ebuild 1425
MD5 acab8bf5e3894049a0e1e08edc79d403 freetype-1.3.1-r3.ebuild 2702
@@ -14,6 +15,7 @@ MD5 d42207bb27a2046e454b706339adaa25 files/digest-freetype-1.3.1-r4 136
MD5 fbb764a61074365c9253108c9af49348 files/digest-freetype-2.1.4 132
MD5 4889d3ad3f18d1c357b3d707c7b71f1c files/digest-freetype-2.1.5 67
MD5 e311f2a688631e2869cd5fdb025a1862 files/digest-freetype-2.1.7 132
+MD5 29bbc2c883bf52623f42dd235cd23fd6 files/digest-freetype-2.1.9 132
MD5 6af87871d2920a670cd63d6b092cab3f files/digest-freetype-2.1.3-r2 202
MD5 fbb764a61074365c9253108c9af49348 files/digest-freetype-2.1.4-r1 132
MD5 4889d3ad3f18d1c357b3d707c7b71f1c files/digest-freetype-2.1.5-r1 67
diff --git a/media-libs/freetype/files/2.1/freetype-2.1.3-slighthint.patch b/media-libs/freetype/files/2.1/freetype-2.1.3-slighthint.patch
deleted file mode 100644
index 36c1a345037e..000000000000
--- a/media-libs/freetype/files/2.1/freetype-2.1.3-slighthint.patch
+++ /dev/null
@@ -1,318 +0,0 @@
---- freetype-2.1.2/src/pshinter/pshalgo2.c.slighthint Wed Jul 3 16:40:03 2002
-+++ freetype-2.1.2/src/pshinter/pshalgo2.c Wed Jul 3 18:08:53 2002
-@@ -352,10 +352,29 @@
- #endif
-
-
-+static FT_Fixed
-+ psh2_hint_snap_stem_side_delta ( FT_Fixed pos,
-+ FT_Fixed len )
-+ {
-+ FT_Fixed delta1 = ( ( pos + 32 ) & -64 ) - pos;
-+ FT_Fixed delta2 = ( ( pos + len + 32 ) & -64 ) - pos - len;
-+
-+ if ( ABS( delta1 ) <= ABS( delta2 ) )
-+ {
-+ return delta1;
-+ }
-+ else
-+ {
-+ return delta2;
-+ }
-+ }
-+
-+
- static void
- psh2_hint_align( PSH2_Hint hint,
- PSH_Globals globals,
-- FT_Int dimension )
-+ FT_Int dimension,
-+ FT_ULong hint_flags )
- {
- PSH_Dimension dim = &globals->dimension[dimension];
- FT_Fixed scale = dim->scale_mult;
-@@ -372,16 +391,33 @@
-
- PSH_AlignmentRec align;
-
-+ if ( ( dimension == 0 && ( hint_flags & FT_HINT_NO_VSTEM_ALIGN ) != 0 ) ||
-+ ( dimension == 1 && ( hint_flags & FT_HINT_NO_HSTEM_ALIGN ) != 0 ) )
-+ {
-+ hint->cur_pos = pos;
-+ hint->cur_len = len;
-+
-+ psh2_hint_set_fitted( hint );
-
-- /* compute fitted width/height */
-- fit_len = 0;
-- if ( hint->org_len )
-- {
-- fit_len = psh_dimension_snap_width( dim, hint->org_len );
-- if ( fit_len < 64 )
-- fit_len = 64;
-- else
-- fit_len = ( fit_len + 32 ) & -64;
-+ return;
-+ }
-+
-+ if ( ( hint_flags & FT_HINT_NO_INTEGER_STEM ) == 0 )
-+ {
-+ /* compute fitted width/height */
-+ fit_len = 0;
-+ if ( hint->org_len )
-+ {
-+ fit_len = psh_dimension_snap_width( dim, hint->org_len );
-+ if ( fit_len < 64 )
-+ fit_len = 64;
-+ else
-+ fit_len = ( fit_len + 32 ) & -64;
-+ }
-+ }
-+ else
-+ {
-+ fit_len = len;
- }
-
- hint->cur_len = fit_len;
-@@ -427,7 +463,7 @@
-
- /* ensure that parent is already fitted */
- if ( !psh2_hint_is_fitted( parent ) )
-- psh2_hint_align( parent, globals, dimension );
-+ psh2_hint_align( parent, globals, dimension, hint_flags );
-
- par_org_center = parent->org_pos + ( parent->org_len / 2);
- par_cur_center = parent->cur_pos + ( parent->cur_len / 2);
-@@ -443,22 +479,105 @@
- pos = par_cur_center + cur_delta - ( len >> 1 );
- }
-
-- /* normal processing */
-- if ( ( fit_len / 64 ) & 1 )
-- {
-- /* odd number of pixels */
-- fit_center = ( ( pos + ( len >> 1 ) ) & -64 ) + 32;
-- }
-- else
-- {
-- /* even number of pixels */
-- fit_center = ( pos + ( len >> 1 ) + 32 ) & -64;
-- }
--
-- hint->cur_pos = fit_center - ( fit_len >> 1 );
-- }
-+ if ( ( hint_flags & FT_HINT_NO_INTEGER_STEM ) == 0 )
-+ {
-+ /* normal processing */
-+ if ( ( fit_len / 64 ) & 1 )
-+ {
-+ /* odd number of pixels */
-+ fit_center = ( ( pos + ( len >> 1 ) ) & -64 ) + 32;
-+ }
-+ else
-+ {
-+ /* even number of pixels */
-+ fit_center = ( pos + ( len >> 1 ) + 32 ) & -64;
-+ }
-+
-+ hint->cur_pos = fit_center - ( fit_len >> 1 );
-+ }
-+ else
-+ {
-+ /* Stems less than one pixel wide are easy - we want to
-+ * make them as dark as possible, so they must fall within
-+ * one pixel. If the stem is split between two pixels
-+ * then snap the edge that is nearer to the pixel boundary
-+ * to the pixel boundary
-+ */
-+ if (len <= 64)
-+ {
-+ if ( ( pos + len + 63 ) / 64 != pos / 64 + 1 )
-+ pos += psh2_hint_snap_stem_side_delta ( pos, len );
-+ }
-+ /* Position stems other to minimize the amount of mid-grays.
-+ * There are, in general, two positions that do this,
-+ * illustrated as A) and B) below.
-+ *
-+ * + + + +
-+ *
-+ * A) |--------------------------------|
-+ * B) |--------------------------------|
-+ * C) |--------------------------------|
-+ *
-+ * Position A) (split the excess stem equally) should be better
-+ * for stems of width N + f where f < 0.5
-+ *
-+ * Position B) (split the deficiency equally) should be better
-+ * for stems of width N + f where f > 0.5
-+ *
-+ * It turns out though that minimizing the total number of lit
-+ * pixels is also important, so position C), with one edge
-+ * aligned with a pixel boundary is actually preferable
-+ * to A). There are also more possibile positions for C) than
-+ * for A) or B), so it involves less distortion of the overall
-+ * character shape.
-+ */
-+ else
-+ {
-+ FT_Fixed frac_len = len & 63;
-+ FT_Fixed center = pos + ( len >> 1 );
-+
-+ FT_Fixed delta_a, delta_b;
-+
-+ if ( ( len / 64 ) & 1 )
-+ {
-+ delta_a = ( center & -64 ) + 32 - center;
-+ delta_b = ( ( center + 32 ) & - 64 ) - center;
-+ }
-+ else
-+ {
-+ delta_a = ( ( center + 32 ) & - 64 ) - center;
-+ delta_b = ( center & -64 ) + 32 - center;
-+ }
-+
-+ /* We choose between B) and C) above based on the amount
-+ * of fractinal stem width; for small amounts, choose
-+ * C) always, for large amounts, B) always, and inbetween,
-+ * pick whichever one involves less stem movement.
-+ */
-+ if (frac_len < 32)
-+ {
-+ pos += psh2_hint_snap_stem_side_delta ( pos, len );
-+ }
-+ else if (frac_len < 48)
-+ {
-+ FT_Fixed side_delta = psh2_hint_snap_stem_side_delta ( pos, len );
-+
-+ if ( ABS( side_delta ) < ABS( delta_b ) )
-+ pos += side_delta;
-+ else
-+ pos += delta_b;
-+ }
-+ else
-+ {
-+ pos += delta_b;
-+ }
-+ }
-+
-+ hint->cur_pos = pos;
-+ }
-+ }
- }
--
-+
- psh2_hint_set_fitted( hint );
-
- #ifdef DEBUG_HINTER
-@@ -472,7 +591,8 @@
- static void
- psh2_hint_table_align_hints( PSH2_Hint_Table table,
- PSH_Globals globals,
-- FT_Int dimension )
-+ FT_Int dimension,
-+ FT_ULong hint_flags )
- {
- PSH2_Hint hint;
- FT_UInt count;
-@@ -500,7 +620,7 @@
- count = table->max_hints;
-
- for ( ; count > 0; count--, hint++ )
-- psh2_hint_align( hint, globals, dimension );
-+ psh2_hint_align( hint, globals, dimension, hint_flags );
- }
-
-
-@@ -1532,7 +1653,8 @@
- /* compute aligned stem/hints positions */
- psh2_hint_table_align_hints( &glyph->hint_tables[dimension],
- glyph->globals,
-- dimension );
-+ dimension,
-+ hint_mode );
-
- /* find strong points, align them, then interpolate others */
- psh2_glyph_find_strong_points( glyph, dimension );
---- freetype-2.1.2/include/freetype/freetype.h.slighthint Sun Jun 23 06:57:31 2002
-+++ freetype-2.1.2/include/freetype/freetype.h Wed Jul 3 16:40:03 2002
-@@ -121,6 +121,12 @@
- /* FT_Set_Char_Size */
- /* FT_Set_Pixel_Sizes */
- /* FT_Set_Transform */
-+ /* FT_Set_Hint_Flags */
-+ /* */
-+ /* FT_HINT_NO_INTEGER_STEM */
-+ /* FT_HINT_NO_HSTEM_ALIGN */
-+ /* FT_HINT_NO_VSTEM_ALIGN */
-+ /* */
- /* FT_Load_Glyph */
- /* FT_Get_Char_Index */
- /* FT_Get_Name_Index */
-@@ -2181,9 +2187,67 @@
- FT_Matrix* matrix,
- FT_Vector* delta );
-
-+
-+ /*************************************************************************/
-+ /* */
-+ /* <Function> */
-+ /* FT_Set_Hint_Flags */
-+ /* */
-+ /* <Description> */
-+ /* A function used to set a number of flags that are used to control */
-+ /* the hinting process when glyphs are loaded. */
-+ /* */
-+ /* <InOut> */
-+ /* face :: A handle to the source face object. */
-+ /* */
-+ /* <Input> */
-+ /* flags :: A set of bit flags that control the hinting process */
-+ /* see the FT_HINT_XXX constants for details. */
-+ /* */
-+ /* <Note> */
-+ /* The interpretation of the flags depends on the hinter module in */
-+ /* use. Not all modules will support all flags */
-+ /* */
-+ FT_EXPORT( void )
-+ FT_Set_Hint_Flags( FT_Face face,
-+ FT_ULong hint_flags );
-+
-+
-+ /*************************************************************************/
-+ /* */
-+ /* <Constant> */
-+ /* FT_HINT_NO_INTEGER_STEM */
-+ /* */
-+ /* <Description> */
-+ /* A bit-field constant, used with FT_Set_Hint_Flags() to to suppress */
-+ /* snapping of stem widths to integer values */
-+ /* */
-+#define FT_HINT_NO_INTEGER_STEM 1
-+
-+ /*************************************************************************/
-+ /* */
-+ /* <Constant> */
-+ /* FT_HINT_NO_HSTEM_ALIGN */
-+ /* */
-+ /* <Description> */
-+ /* A bit-field constant, used with FT_Set_Hint_Flags() to to suppress */
-+ /* alignment of horizontal stems with the pixel grid. */
-+ /* */
-+#define FT_HINT_NO_HSTEM_ALIGN 2
-
- /*************************************************************************/
- /* */
-+ /* <Constant> */
-+ /* FT_HINT_NO_VSTEM_ALIGN */
-+ /* */
-+ /* <Description> */
-+ /* A bit-field constant, used with FT_Set_Hint_Flags() to to suppress */
-+ /* alignment of vertical stems with the pixel grid */
-+ /* */
-+#define FT_HINT_NO_VSTEM_ALIGN 4
-+
-+ /*************************************************************************/
-+ /* */
- /* <Enum> */
- /* FT_Render_Mode */
- /* */
diff --git a/media-libs/freetype/files/digest-freetype-2.1.3-r2 b/media-libs/freetype/files/digest-freetype-2.1.3-r2
deleted file mode 100644
index aff48b07b0c8..000000000000
--- a/media-libs/freetype/files/digest-freetype-2.1.3-r2
+++ /dev/null
@@ -1,3 +0,0 @@
-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/files/digest-freetype-2.1.4 b/media-libs/freetype/files/digest-freetype-2.1.4
deleted file mode 100644
index a5aea4339791..000000000000
--- a/media-libs/freetype/files/digest-freetype-2.1.4
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 1fc0b188f1fe1216776e5855d2da141f freetype-2.1.4.tar.bz2 806647
-MD5 367064e81998a302f3844f1dcdb8d77f ftdocs-2.1.4.tar.bz2 213683
diff --git a/media-libs/freetype/files/digest-freetype-2.1.4-r1 b/media-libs/freetype/files/digest-freetype-2.1.4-r1
deleted file mode 100644
index a5aea4339791..000000000000
--- a/media-libs/freetype/files/digest-freetype-2.1.4-r1
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 1fc0b188f1fe1216776e5855d2da141f freetype-2.1.4.tar.bz2 806647
-MD5 367064e81998a302f3844f1dcdb8d77f ftdocs-2.1.4.tar.bz2 213683
diff --git a/media-libs/freetype/files/digest-freetype-2.1.9 b/media-libs/freetype/files/digest-freetype-2.1.9
new file mode 100644
index 000000000000..54076885fd84
--- /dev/null
+++ b/media-libs/freetype/files/digest-freetype-2.1.9
@@ -0,0 +1,2 @@
+MD5 ec1b903e4be5f073caa72458ea58c29c freetype-2.1.9.tar.bz2 992394
+MD5 db77177afe35955f55bcaa2953724b78 ftdocs-2.1.9.tar.bz2 219666
diff --git a/media-libs/freetype/freetype-2.1.3-r2.ebuild b/media-libs/freetype/freetype-2.1.3-r2.ebuild
deleted file mode 100644
index 681a43c5c3af..000000000000
--- a/media-libs/freetype/freetype-2.1.3-r2.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/freetype-2.1.3-r2.ebuild,v 1.18 2004/07/14 19:35:41 agriffis Exp $
-
-IUSE="doc smooth"
-
-inherit eutils flag-o-matic gcc
-
-FT_SMOOTH_VER="20021210"
-
-SPV="`echo ${PV} | cut -d. -f1,2`"
-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 hppa amd64"
-
-DEPEND="virtual/libc"
-
-src_unpack() {
- unpack ${A}
-
- cd ${S}
- # Optional patches that affect rendering quality. Home page:
- # http://www.cs.mcgill.ca/~dchest/xfthack/
- # note that these tweak the auto-hinter, but we enable the real byte-code hinter.
- # But we keep this here for those who may want to use this instead.
- use smooth && epatch ${WORKDIR}/ft-smooth-${FT_SMOOTH_VER}/ft-all-together.diff
-
- # Slight hint patch from Red Hat, updated by Azarah for freetype 2.1.3
- epatch ${FILESDIR}/${SPV}/${P}-slighthint.patch
-}
-
-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
- if [ "$(gcc-getCC)" != "ccc" ]; then
- eerror "Could not enable Bytecode Interpreter!"
- die "Could not enable Bytecode Interpreter!"
- fi
- 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/*
-}
diff --git a/media-libs/freetype/freetype-2.1.4.ebuild b/media-libs/freetype/freetype-2.1.4.ebuild
deleted file mode 100644
index 6c4a3359e587..000000000000
--- a/media-libs/freetype/freetype-2.1.4.ebuild
+++ /dev/null
@@ -1,59 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/freetype-2.1.4.ebuild,v 1.13 2004/07/01 07:55:56 eradicator Exp $
-
-IUSE="doc zlib bindist"
-
-inherit eutils flag-o-matic
-
-FT_SMOOTH_VER="20021210"
-
-SPV="`echo ${PV} | cut -d. -f1,2`"
-DESCRIPTION="A high-quality and portable font engine"
-SRC_URI="mirror://sourceforge/freetype/${P/_/}.tar.bz2
- doc? ( mirror://sourceforge/${PN}/ftdocs-${PV}.tar.bz2 )"
-
-HOMEPAGE="http://www.freetype.org/"
-
-SLOT="2"
-LICENSE="FTL | GPL-2"
-KEYWORDS="x86 ppc sparc alpha hppa mips"
-
-DEPEND="virtual/libc
- zlib? ( sys-libs/zlib )"
-
-src_unpack() {
- unpack ${A}
-
- cd ${S}
- # Slight Hint patch from Redhat
- epatch ${FILESDIR}/${SPV}/${PN}-2.1.3-slighthint.patch
-}
-
-src_compile() {
- local myconf
-
- use zlib \
- && myconf="${myconf} --with-zlib" \
- || myconf="${myconf} --without-zlib"
-
- use bindist || append-flags "${CFLAGS} -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER"
-
- make CFG="--host=${CHOST} --prefix=/usr ${myconf}" || 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
- ewarn "Bytecode Interpreter is disabled."
- fi
-}
-
-src_install() {
- make prefix=${D}/usr install || die
-
- dodoc ChangeLog README
- dodoc docs/{CHANGES,*.txt,PATENTS,TODO}
-
- use doc && dohtml -r docs/*
-}
diff --git a/media-libs/freetype/freetype-2.1.4-r1.ebuild b/media-libs/freetype/freetype-2.1.9.ebuild
index 66cc897f1fde..4f10f14577fd 100644
--- a/media-libs/freetype/freetype-2.1.4-r1.ebuild
+++ b/media-libs/freetype/freetype-2.1.9.ebuild
@@ -1,43 +1,44 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/freetype-2.1.4-r1.ebuild,v 1.12 2004/07/01 07:55:56 eradicator Exp $
-
-IUSE="doc zlib bindist"
+# $Header: /var/cvsroot/gentoo-x86/media-libs/freetype/freetype-2.1.9.ebuild,v 1.1 2004/07/20 00:31:05 foser Exp $
inherit eutils flag-o-matic
SPV="`echo ${PV} | cut -d. -f1,2`"
+
DESCRIPTION="A high-quality and portable font engine"
+HOMEPAGE="http://www.freetype.org/"
SRC_URI="mirror://sourceforge/freetype/${P/_/}.tar.bz2
doc? ( mirror://sourceforge/${PN}/ftdocs-${PV}.tar.bz2 )"
-HOMEPAGE="http://www.freetype.org/"
-
SLOT="2"
-LICENSE="FTL | GPL-2"
-KEYWORDS="~x86 ppc ~sparc alpha hppa ia64 ~mips amd64"
+LICENSE="FTL GPL-2"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~ia64 ~amd64 ~ppc64"
+#IUSE="zlib bindist cjk doc"
+IUSE="zlib bindist doc"
DEPEND="virtual/libc
zlib? ( sys-libs/zlib )"
src_unpack() {
+
unpack ${A}
cd ${S}
- # Slight Hint patch from Redhat
- epatch ${FILESDIR}/${SPV}/${PN}-2.1.3-slighthint.patch
+ # add autohint patch from http://www.kde.gr.jp/~akito/patch/freetype2/
+ # FIXME : patch hasn't been updated yet
+ # use cjk && epatch ${FILESDIR}/${SPV}/${P}-autohint-cjkfonts-20031130.patch
+
}
src_compile() {
- local myconf
- use zlib \
- && myconf="${myconf} --with-zlib" \
- || myconf="${myconf} --without-zlib"
+ # https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=118021
+ append-flags "-fno-strict-aliasing"
use bindist || append-flags "${CFLAGS} -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER"
- make setup CFG="--host=${CHOST} --prefix=/usr ${myconf}" unix || die
+ make setup CFG="--host=${CHOST} --prefix=/usr `use_with zlib`" unix || die
emake || die
@@ -46,13 +47,17 @@ src_compile() {
then
ewarn "Bytecode Interpreter is disabled."
fi
+
}
src_install() {
- make prefix=${D}/usr install || die
+
+ # make prefix=${D}/usr install || die
+ make DESTDIR=${D} install || die
dodoc ChangeLog README
- dodoc docs/{CHANGES,*.txt,PATENTS,TODO}
+ dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,*.txt,PATENTS,TODO}
use doc && dohtml -r docs/*
+
}