diff options
author | Andrei "Akari" Alexeyev | 2015-07-08 16:47:33 +0300 |
---|---|---|
committer | Andrei "Akari" Alexeyev | 2017-09-18 21:47:48 +0300 |
commit | 963ea5a46f2b0d95f00a05b83585cc85a622703f (patch) | |
tree | c2beb262c700d8cc3d547d984a7ff80e5832a011 | |
download | aur-963ea5a46f2b0d95f00a05b83585cc85a622703f.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 38 | ||||
-rw-r--r-- | 0001-Enable-table-validation-modules.patch | 34 | ||||
-rw-r--r-- | 0002-Enable-subpixel-rendering.patch | 25 | ||||
-rw-r--r-- | 0003-Enable-infinality-subpixel-hinting.patch | 27 | ||||
-rw-r--r-- | 0004-Enable-long-PCF-family-names.patch | 25 | ||||
-rw-r--r-- | PKGBUILD | 57 |
6 files changed, 206 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..09d7a5c2b157 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,38 @@ +pkgbase = mingw-w64-freetype2-minimal + pkgdesc = Font rasterization library (without harfbuzz) (mingw-w64) + pkgver = 2.8 + pkgrel = 1 + url = https://www.freetype.org/ + arch = any + license = GPL + makedepends = mingw-w64-gcc + makedepends = mingw-w64-configure + depends = mingw-w64-crt + depends = mingw-w64-zlib + depends = mingw-w64-bzip2 + provides = mingw-w64-freetype + provides = mingw-w64-freetype2 + provides = mingw-w64-freetype2-bootstrap + conflicts = mingw-w64-freetype + conflicts = mingw-w64-freetype2 + conflicts = mingw-w64-freetype2-bootstrap + options = !strip + options = !buildflags + options = !libtool + options = staticlibs + source = https://download-mirror.savannah.gnu.org/releases/freetype/freetype-2.8.tar.bz2 + source = https://download-mirror.savannah.gnu.org/releases/freetype/freetype-2.8.tar.bz2.sig + source = 0001-Enable-table-validation-modules.patch + source = 0002-Enable-subpixel-rendering.patch + source = 0003-Enable-infinality-subpixel-hinting.patch + source = 0004-Enable-long-PCF-family-names.patch + validpgpkeys = 58E0C111E39F5408C5D3EC76C1A60EACE707FDA5 + sha1sums = 42c6b1f733fe13a3eba135f5025b22cb68450f91 + sha1sums = SKIP + sha1sums = b31882ef5e8447e761acee1c4a44c0630cd4d465 + sha1sums = b1494810ed3aca25cdd8e8cedf634e5adfe6c09e + sha1sums = 41d27140fd590945e22e012c9dce62de3d6f11e6 + sha1sums = 334f229875039794adeb574e27d365bb445fb314 + +pkgname = mingw-w64-freetype2-minimal + diff --git a/0001-Enable-table-validation-modules.patch b/0001-Enable-table-validation-modules.patch new file mode 100644 index 000000000000..3e9451fa8b82 --- /dev/null +++ b/0001-Enable-table-validation-modules.patch @@ -0,0 +1,34 @@ +From c3680bf8d38cf759c1e33dcc2d2d51e0a4fea2f9 Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com> +Date: Tue, 23 Jun 2015 08:40:29 +0200 +Subject: [PATCH 1/3] Enable table validation modules + +--- + modules.cfg | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/modules.cfg b/modules.cfg +index f30049c38cc45159..7b8e50fe1b34584a 100644 +--- a/modules.cfg ++++ b/modules.cfg +@@ -120,7 +120,7 @@ AUX_MODULES += cache + # 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 @@ AUX_MODULES += bzip2 + # 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. + # +-- +2.9.3 + diff --git a/0002-Enable-subpixel-rendering.patch b/0002-Enable-subpixel-rendering.patch new file mode 100644 index 000000000000..dfb57966e2ff --- /dev/null +++ b/0002-Enable-subpixel-rendering.patch @@ -0,0 +1,25 @@ +From 96f09f08417887b2618c177bccfb6da2906568d9 Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com> +Date: Tue, 23 Jun 2015 08:43:07 +0200 +Subject: [PATCH 2/3] Enable subpixel rendering + +--- + include/freetype/config/ftoption.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h +index 90c123ef93e9ea04..67a361dd41e0b026 100644 +--- a/include/freetype/config/ftoption.h ++++ b/include/freetype/config/ftoption.h +@@ -122,7 +122,7 @@ FT_BEGIN_HEADER + /* 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 + + + /*************************************************************************/ +-- +2.9.3 + diff --git a/0003-Enable-infinality-subpixel-hinting.patch b/0003-Enable-infinality-subpixel-hinting.patch new file mode 100644 index 000000000000..bbfa2a2cd8c0 --- /dev/null +++ b/0003-Enable-infinality-subpixel-hinting.patch @@ -0,0 +1,27 @@ +From 220e96a9a8d7aff6ad0f0f1aa12c79cdb563331c Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com> +Date: Mon, 29 Aug 2016 08:43:10 +0200 +Subject: [PATCH 3/3] Enable infinality subpixel hinting + +--- + include/freetype/config/ftoption.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h +index 67a361dd41e0b026..c4812862518b66a6 100644 +--- a/include/freetype/config/ftoption.h ++++ b/include/freetype/config/ftoption.h +@@ -675,8 +675,8 @@ FT_BEGIN_HEADER + /* [1] http://www.microsoft.com/typography/cleartype/truetypecleartype.aspx */ + /* */ + /* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 1 */ +-#define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2 +-/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) */ ++/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2 */ ++#define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) + + + /*************************************************************************/ +-- +2.9.3 + diff --git a/0004-Enable-long-PCF-family-names.patch b/0004-Enable-long-PCF-family-names.patch new file mode 100644 index 000000000000..675423a7c472 --- /dev/null +++ b/0004-Enable-long-PCF-family-names.patch @@ -0,0 +1,25 @@ +From 62da6a0f7f5cb77859a793863c386c452411e2a6 Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com> +Date: Sun, 14 May 2017 18:09:31 +0200 +Subject: [PATCH 4/4] Enable long PCF family names + +--- + include/freetype/config/ftoption.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h +index ebb44acdbbef9a47..0b39b417162707e4 100644 +--- a/include/freetype/config/ftoption.h ++++ b/include/freetype/config/ftoption.h +@@ -865,7 +865,7 @@ FT_BEGIN_HEADER + /* If this option is activated, it can be controlled with the */ + /* `no-long-family-names' property of the pcf driver module. */ + /* */ +-/* #define PCF_CONFIG_OPTION_LONG_FAMILY_NAMES */ ++#define PCF_CONFIG_OPTION_LONG_FAMILY_NAMES + + + /*************************************************************************/ +-- +2.13.0 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cf74a0bd7162 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,57 @@ +# Maintainer: Andrei Alexeyev <akari@alienslab.net> + +pkgname=mingw-w64-freetype2-minimal +pkgver=2.8 +pkgrel=1 +pkgdesc='Font rasterization library (without harfbuzz) (mingw-w64)' +arch=('any') +url='https://www.freetype.org/' +license=('GPL') +depends=(mingw-w64-crt mingw-w64-zlib mingw-w64-bzip2) +makedepends=(mingw-w64-gcc mingw-w64-configure) +provides=(mingw-w64-freetype mingw-w64-freetype2 mingw-w64-freetype2-bootstrap) +conflicts=(mingw-w64-freetype mingw-w64-freetype2 mingw-w64-freetype2-bootstrap) +source=(https://download-mirror.savannah.gnu.org/releases/freetype/freetype-${pkgver}.tar.bz2{,.sig} + 0001-Enable-table-validation-modules.patch + 0002-Enable-subpixel-rendering.patch + 0003-Enable-infinality-subpixel-hinting.patch + 0004-Enable-long-PCF-family-names.patch) +options=(!strip !buildflags !libtool staticlibs) +sha1sums=('42c6b1f733fe13a3eba135f5025b22cb68450f91' + 'SKIP' + 'b31882ef5e8447e761acee1c4a44c0630cd4d465' + 'b1494810ed3aca25cdd8e8cedf634e5adfe6c09e' + '41d27140fd590945e22e012c9dce62de3d6f11e6' + '334f229875039794adeb574e27d365bb445fb314') +validpgpkeys=('58E0C111E39F5408C5D3EC76C1A60EACE707FDA5') + +_architectures='i686-w64-mingw32 x86_64-w64-mingw32' + +prepare() { + cd "${srcdir}/freetype-${pkgver}" + + patch -Np1 -i ../0001-Enable-table-validation-modules.patch + patch -Np1 -i ../0002-Enable-subpixel-rendering.patch + patch -Np1 -i ../0003-Enable-infinality-subpixel-hinting.patch + patch -Np1 -i ../0004-Enable-long-PCF-family-names.patch +} + +build() { + for _arch in ${_architectures}; do + mkdir -p "${srcdir}/freetype-${pkgver}/build-${_arch}" + cd "${srcdir}/freetype-${pkgver}/build-${_arch}" + ${_arch}-configure --with-zlib=/usr/${_arch} --without-png --without-harfbuzz + make + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/freetype-${pkgver}/build-${_arch}" + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr/${_arch}/share/" + ${_arch}-strip -g "${pkgdir}/usr/${_arch}/lib/"*.a + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + done +} + |