diff --git a/freetype2-ubuntu/.SRCINFO b/freetype2-ubuntu/.SRCINFO new file mode 100644 index 0000000..875d3b8 --- /dev/null +++ b/freetype2-ubuntu/.SRCINFO @@ -0,0 +1,32 @@ +# Generated by mksrcinfo v8 +# Sun Jun 19 10:10:32 UTC 2016 +pkgbase = freetype2-ubuntu + pkgdesc = TrueType font rendering library, with Ubuntu's LCD rendering patches + pkgver = 2.6.3 + pkgrel = 3 + url = https://launchpad.net/ubuntu/+source/freetype + arch = i686 + arch = x86_64 + license = GPL + depends = zlib + depends = bzip2 + depends = sh + provides = freetype2=2.6.3 + provides = libfreetype.so + conflicts = freetype2 + conflicts = freetype2-cleartype + conflicts = freetype2-lcd + options = !libtool + source = http://downloads.sourceforge.net/sourceforge/freetype/freetype-2.6.3.tar.bz2 + source = https://launchpad.net/ubuntu/+archive/primary/+files/freetype_2.6.3-3ubuntu1.diff.gz + source = freetype-2.2.1-enable-valid.patch + source = freetype-2.3.0-enable-spr.patch + source = freetype-2.4.11-enable-sph.patch + md5sums = 0037b25a8c090bc8a1218e867b32beb1 + md5sums = 161e88978b77ee9be913b98f33fb9a23 + md5sums = 214119610444c9b02766ccee5e220680 + md5sums = 38765b5cc604179bf3afe33671d8ae37 + md5sums = 4d4a0caad7aa5e09bea0719cd80681bf + +pkgname = freetype2-ubuntu + diff --git a/freetype2-ubuntu/PKGBUILD b/freetype2-ubuntu/PKGBUILD new file mode 100644 index 0000000..c1642f1 --- /dev/null +++ b/freetype2-ubuntu/PKGBUILD @@ -0,0 +1,72 @@ +# Installation order: freetype2-ubuntu fontconfig-ubuntu libxft cairo-ubuntu +pkgname=freetype2-ubuntu +pkgver=2.6.3 +_ubver=2.6.3-3ubuntu1 +_ubrel=utopic +pkgrel=3 +pkgdesc="TrueType font rendering library, with Ubuntu's LCD rendering patches" +arch=('i686' 'x86_64') +url="https://launchpad.net/ubuntu/+source/freetype" +license=('GPL') +depends=('zlib' 'bzip2' 'sh') +conflicts=('freetype2' 'freetype2-cleartype' 'freetype2-lcd') +provides=("freetype2=$pkgver" "libfreetype.so") +options=('!libtool') +source=(http://downloads.sourceforge.net/sourceforge/freetype/freetype-${pkgver}.tar.bz2 + https://launchpad.net/ubuntu/+archive/primary/+files/freetype_${_ubver}.diff.gz + freetype-2.2.1-enable-valid.patch + freetype-2.3.0-enable-spr.patch + freetype-2.4.11-enable-sph.patch) + +prepare() { + cd "${srcdir}/freetype-${pkgver}" + + # Patch from ubuntu + patch -Np1 -i $srcdir/freetype_$_ubver.diff + + + sed -e "s/-p[0-9]\|.*otvalid\.patch//g" \ + -i debian/patches-freetype/series + + sed -e 's/ src/ a\/src/g' \ + -e '/^Index.*ftbase.c/,/EOF/d' \ + -i debian/patches-freetype/freetype-2.1.7-backwards.compat.patch + + for _f in $(cat debian/patches-freetype/series) ; do + patch -Np1 -i debian/patches-freetype/$_f + done + + # Patches from arch trunkcat debian/patches-freetype/series + patch -Np1 -i "${srcdir}/freetype-2.2.1-enable-valid.patch" +# patch -Np1 -i "${srcdir}/freetype-2.3.0-enable-spr.patch" + # Disabled for now due to resistance + # Kept here for easier rebuilds via ABS + # https://bugs.archlinux.org/task/35274 + #patch -Np1 -i "${srcdir}/freetype-2.4.11-enable-sph.patch" +} + + +build() { + cd ${srcdir}/freetype-${pkgver} + + # PNG support is useless if FT_CONFIG_OPTION_USE_PNG is disabled + ./configure --prefix=/usr --disable-static \ + --without-png + + make +} + +check() { + cd "${srcdir}/freetype-${pkgver}" + make -k check +} + +package() { + cd ${srcdir}/freetype-${pkgver} + make DESTDIR=${pkgdir} install +} +md5sums=('0037b25a8c090bc8a1218e867b32beb1' + '161e88978b77ee9be913b98f33fb9a23' + '214119610444c9b02766ccee5e220680' + '38765b5cc604179bf3afe33671d8ae37' + '4d4a0caad7aa5e09bea0719cd80681bf') diff --git a/freetype2-ubuntu/freetype-2.2.1-enable-valid.patch b/freetype2-ubuntu/freetype-2.2.1-enable-valid.patch new file mode 100644 index 0000000..c78b6b7 --- /dev/null +++ b/freetype2-ubuntu/freetype-2.2.1-enable-valid.patch @@ -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. + # diff --git a/freetype2-ubuntu/freetype-2.3.0-enable-spr.patch b/freetype2-ubuntu/freetype-2.3.0-enable-spr.patch new file mode 100644 index 0000000..136c2b2 --- /dev/null +++ b/freetype2-ubuntu/freetype-2.3.0-enable-spr.patch @@ -0,0 +1,2668 @@ + + + +svntogit/packages.git - Git clone of the 'packages' repository + + + + + + + + + +
+ +
+ +
+
+
+ + + +
+summaryrefslogtreecommitdiffstats
+ + + +
+
+
path: root/trunk/freetype-2.3.0-enable-spr.patch
blob: 8432e28a412f0299957a5a67dd16dbdbe025d326 (plain) + + +
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+
--- freetype-2.3.0/include/freetype/config/ftoption.h.spf	2007-01-18 14:27:34.000000000 -0500
++++ freetype-2.3.0/include/freetype/config/ftoption.h	2007-01-18 14:27:48.000000000 -0500
+@@ -92,7 +92,7 @@
+   /* This is done to allow FreeType clients to run unmodified, forcing     */
+   /* them to display normal gray-level anti-aliased glyphs.                */
+   /*                                                                       */
+-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
++#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
+ 
+ 
+   /*************************************************************************/
+
+
+
+
+

Copyright © 2002-2011 Judd Vinet and Aaron Griffin. The Arch Linux name and logo +are recognized trademarks. Some rights reserved. The registered trademark +Linux© is used pursuant to a sublicense from LMI, the exclusive licensee +of Linus Torvalds, owner of the mark on a world-wide basis.

+
+ + + diff --git a/freetype2-ubuntu/freetype-2.4.11-enable-sph.patch b/freetype2-ubuntu/freetype-2.4.11-enable-sph.patch new file mode 100644 index 0000000..31641d9 --- /dev/null +++ b/freetype2-ubuntu/freetype-2.4.11-enable-sph.patch @@ -0,0 +1,2672 @@ + + + +svntogit/packages.git - Git clone of the 'packages' repository + + + + + + + + + +
+ +
+ +
+
+
+ + + +
+summaryrefslogtreecommitdiffstats
+ + + +
+
+
path: root/trunk/freetype-2.4.11-enable-sph.patch
blob: 34c8d63bf43a78a675b51599cbcb4ca895fb2ab8 (plain) + + +
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+
diff --git i/include/freetype/config/ftoption.h w/include/freetype/config/ftoption.h
+index a73fff4..0a081bf 100644
+--- i/include/freetype/config/ftoption.h
++++ w/include/freetype/config/ftoption.h
+@@ -577,7 +577,7 @@ FT_BEGIN_HEADER
+   /*   This option requires TT_CONFIG_OPTION_BYTECODE_INTERPRETER to be    */
+   /*   defined.                                                            */
+   /*                                                                       */
+-/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING */
++#define TT_CONFIG_OPTION_SUBPIXEL_HINTING
+ 
+ 
+   /*************************************************************************/
+
+
+
+
+

Copyright © 2002-2011 Judd Vinet and Aaron Griffin. The Arch Linux name and logo +are recognized trademarks. Some rights reserved. The registered trademark +Linux© is used pursuant to a sublicense from LMI, the exclusive licensee +of Linus Torvalds, owner of the mark on a world-wide basis.

+
+ + +