opt/freetype/Pkgfile

56 lines
2.5 KiB
Plaintext
Raw Normal View History

2006-03-12 11:47:04 +01:00
# Description: A free and portable TrueType font rendering engine
# URL: https://www.freetype.org
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: meson ninja libpng
# Optional: brotli harfbuzz libpng
2006-03-12 11:47:04 +01:00
name=freetype
2021-07-21 14:08:42 +02:00
version=2.11.0
release=2
_dlgversion=0cc0d3eaed28483fc8036d90ac18878ebd83ed87
source=(https://download.savannah.gnu.org/releases/freetype/freetype-2.11.0.tar.xz
freetype2.sh
## we don't want to depend on git but meson will try to pull this with git
## installed when we allow downloads, therefor we sideload it using the
## specific commit
# https://gitlab.freedesktop.org/freetype/freetype/-/tree/master/subprojects
https://github.com/nyorain/dlg/archive/$_dlgversion/dlg-$_dlgversion.tar.gz
# https://github.com/archlinux/svntogit-packages/tree/packages/freetype2/trunk
0001-Enable-table-validation-modules.patch
0002-Enable-subpixel-rendering.patch
0003-Enable-infinality-subpixel-hinting.patch
0004-Enable-long-PCF-family-names.patch
0006-Return_FT_Err_Ok_while_trying_to_render_bitmap.patch
0007-Restore_quiet_no-op_rendering_of_bitmap_glyphs.patch
0008-sfnt-Add-API-for-retrieving-a-COLR-v1-ClipBox-table.patch
0009-src-sfnt-ttcolr.c-tt_face_get_color_glyph_clipbox-Mi.patch
0010-sfnt-Add-missing-blend-mode-plus-to-COLR-v1.patch)
2006-03-12 11:47:04 +01:00
build() {
mkdir -p $name-$version/subprojects
rsync -aR $SRC/dlg-$_dlgversion/ $name-$version/subprojects/dlg
patch -Np1 -d $name-$version -i $SRC/0001-Enable-table-validation-modules.patch
patch -Np1 -d $name-$version -i $SRC/0002-Enable-subpixel-rendering.patch
patch -Np1 -d $name-$version -i $SRC/0003-Enable-infinality-subpixel-hinting.patch
patch -Np1 -d $name-$version -i $SRC/0004-Enable-long-PCF-family-names.patch
patch -Np1 -d $name-$version -i $SRC/0006-Return_FT_Err_Ok_while_trying_to_render_bitmap.patch
patch -Np1 -d $name-$version -i $SRC/0007-Restore_quiet_no-op_rendering_of_bitmap_glyphs.patch
patch -Np1 -d $name-$version -i $SRC/0008-sfnt-Add-API-for-retrieving-a-COLR-v1-ClipBox-table.patch
patch -Np1 -d $name-$version -i $SRC/0009-src-sfnt-ttcolr.c-tt_face_get_color_glyph_clipbox-Mi.patch
patch -Np1 -d $name-$version -i $SRC/0010-sfnt-Add-missing-blend-mode-plus-to-COLR-v1.patch
2014-08-19 12:18:13 +02:00
meson setup $name-$version build \
--prefix=/usr \
--buildtype=plain \
--wrap-mode=nodownload \
-D b_lto=true \
-D b_pie=true \
-D default_library=shared
meson compile -C build
DESTDIR=$PKG meson install -C build
2014-08-19 12:18:13 +02:00
install -Dt $PKG/etc/profile.d -m644 $SRC/freetype2.sh
2006-03-12 11:47:04 +01:00
}