From 758fc4da9fadbd0946618f9b19ffc792cd946520 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Fri, 5 Apr 2019 05:25:11 -0300 Subject: [PATCH] freetype: revert to 2.9.1. 2.10.0 will fail to register fonts like dina-font and tewi-font --- srcpkgs/freetype/patches/subpixel.patch | 9 +++++++++ srcpkgs/freetype/patches/validate.patch | 20 ++++++++++++++++++++ srcpkgs/freetype/template | 7 ++++--- 3 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/freetype/patches/validate.patch diff --git a/srcpkgs/freetype/patches/subpixel.patch b/srcpkgs/freetype/patches/subpixel.patch index 70a7d3d6f68..d30fc472d9c 100644 --- a/srcpkgs/freetype/patches/subpixel.patch +++ b/srcpkgs/freetype/patches/subpixel.patch @@ -1,5 +1,14 @@ --- include/freetype/config/ftoption.h.orig +++ include/freetype/config/ftoption.h +@@ -122,7 +122,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 + + + /*************************************************************************/ @@ -675,8 +675,8 @@ /* [1] http://www.microsoft.com/typography/cleartype/truetypecleartype.aspx */ /* */ diff --git a/srcpkgs/freetype/patches/validate.patch b/srcpkgs/freetype/patches/validate.patch new file mode 100644 index 00000000000..39b22f67af5 --- /dev/null +++ b/srcpkgs/freetype/patches/validate.patch @@ -0,0 +1,20 @@ +--- modules.cfg.orig ++++ modules.cfg +@@ -120,7 +120,7 @@ + # TrueType GX/AAT table validation. Needs ftgxval.c below. + # + # No FT_CONFIG_OPTION_PIC support. +-# AUX_MODULES += gxvalid ++AUX_MODULES += gxvalid + + # Support for streams compressed with gzip (files with suffix .gz). + # +@@ -143,7 +143,7 @@ + # OpenType table validation. Needs ftotval.c below. + # + # No FT_CONFIG_OPTION_PIC support. +-# AUX_MODULES += otvalid ++AUX_MODULES += otvalid + + # Auxiliary PostScript driver component to share common code. + # diff --git a/srcpkgs/freetype/template b/srcpkgs/freetype/template index 245dd87d73b..9be27c6302a 100644 --- a/srcpkgs/freetype/template +++ b/srcpkgs/freetype/template @@ -1,7 +1,8 @@ # Template file for 'freetype' pkgname=freetype -version=2.10.0 -revision=1 +reverts="2.10.0_1" +version=2.9.1 +revision=3 build_style=gnu-configure configure_args="--enable-freetype-config" hostmakedepends="pkg-config" @@ -11,7 +12,7 @@ maintainer="Juan RP " license="GPL-2.0-or-later" homepage="https://www.freetype.org/" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2" -checksum=fccc62928c65192fff6c98847233b28eb7ce05f12d2fea3f6cc90e8b4e5fbe06 +checksum=db8d87ea720ea9d5edc5388fc7a0497bb11ba9fe972245e0f7f4c7e8b1e1e84d build_options="v35 v38 v40" build_options_default="v40"