added lib32-freetype2-ubuntu, version 2.4.6

This commit is contained in:
Giuseppe 2011-10-16 14:56:13 +00:00
parent 5e7f3fffb7
commit 8c0b0ff9a6
3 changed files with 85 additions and 0 deletions

View File

@ -0,0 +1,53 @@
# Lib32 Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
_pkgbasename=freetype2-ubuntu
pkgname=lib32-$_pkgbasename
pkgver=2.4.6
_pkgver=2.4.4-2
pkgrel=1
pkgdesc="TrueType font rendering library (32-bit) with infinality patch"
arch=(x86_64)
license=('GPL')
url="http://freetype.sourceforge.net"
depends=('lib32-zlib' $_pkgbasename)
makedepends=(gcc-multilib)
conflicts=('lib32-freetype2')
provides=("lib32-freetype2=$pkgver")
options=('!libtool')
source=(http://downloads.sourceforge.net/sourceforge/freetype/freetype-${pkgver}.tar.bz2
https://launchpad.net/ubuntu/oneiric/+source/freetype/$_pkgver/+files/freetype_$_pkgver.diff.gz
apple-offset.patch
enable-valid.patch)
md5sums=('5e6510613f612809d2d7862592b92ab7'
'8a170e472c2b1d60dff0987722a290d3'
'1c964f90ae90aa391af574ceb0814cda'
'214119610444c9b02766ccee5e220680')
build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cd "${srcdir}/freetype-${pkgver}"
msg "applying apple-offset.patch..."
patch -Np1 -i "${srcdir}/apple-offset.patch"
msg "applying enable-valid.patch..."
patch -Np1 -i "${srcdir}/enable-valid.patch"
./configure --prefix=/usr --libdir=/usr/lib32
make
}
package() {
cd "${srcdir}/freetype-${pkgver}"
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/usr/{include,share,bin}
}

View File

@ -0,0 +1,12 @@
diff -rupN freetype-2.3.11.orig/include/freetype/config/ftoption.h freetype-2.3.11/include/freetype/config/ftoption.h
--- freetype-2.3.11.orig/include/freetype/config/ftoption.h 2010-02-05 10:53:35.000000000 +0000
+++ freetype-2.3.11/include/freetype/config/ftoption.h 2010-02-05 10:54:29.000000000 +0000
@@ -574,7 +574,7 @@ FT_BEGIN_HEADER
/* http://partners.adobe.com/asn/developer/opentype/glyf.html */
/* http://fonts.apple.com/TTRefMan/RM06/Chap6glyf.html */
/* */
-#undef TT_CONFIG_OPTION_COMPONENT_OFFSET_SCALED
+#define TT_CONFIG_OPTION_COMPONENT_OFFSET_SCALED
/*************************************************************************/

View File

@ -0,0 +1,20 @@
--- freetype-2.2.1/modules.cfg.orig 2006-07-07 21:01:09.000000000 -0400
+++ freetype-2.2.1/modules.cfg 2006-07-07 21:01:54.000000000 -0400
@@ -110,7 +110,7 @@
AUX_MODULES += cache
# TrueType GX/AAT table validation. Needs ftgxval.c below.
-# AUX_MODULES += gxvalid
+AUX_MODULES += gxvalid
# Support for streams compressed with gzip (files with suffix .gz).
#
@@ -124,7 +124,7 @@
# OpenType table validation. Needs ftotval.c below.
#
-# AUX_MODULES += otvalid
+AUX_MODULES += otvalid
# Auxiliary PostScript driver component to share common code.
#