blob: d072b9789dffc10aaf97b5b7bff17ad217c5a29c (
plain)
1 # Description: A free and portable TrueType font rendering engine
2 # URL: https://www.freetype.org
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Depends on: meson ninja libpng
5 # Optional: brotli harfbuzz
6
7 name=freetype
8 version=2.12.1
9 release=1
10
11 source=(https://download.savannah.gnu.org/releases/freetype/freetype-$version.tar.xz
12 freetype2.sh
13 0001-Enable-table-validation-modules.patch
14 0002-Enable-subpixel-rendering.patch
15 0003-Enable-infinality-subpixel-hinting.patch
16 0004-Enable-long-PCF-family-names.patch)
17
18 build() {
19 patch -Np1 -d $name-$version -i $SRC/0001-Enable-table-validation-modules.patch
20 patch -Np1 -d $name-$version -i $SRC/0002-Enable-subpixel-rendering.patch
21 patch -Np1 -d $name-$version -i $SRC/0003-Enable-infinality-subpixel-hinting.patch
22 patch -Np1 -d $name-$version -i $SRC/0004-Enable-long-PCF-family-names.patch
23
24 meson setup $name-$version build \
25 --prefix=/usr \
26 --buildtype=plain \
27 --wrap-mode=nodownload \
28 -D b_lto=true \
29 -D b_pie=true \
30 -D default_library=shared
31 meson compile -C build -j ${JOBS:-1}
32 DESTDIR=$PKG meson install -C build
33
34 install -Dt $PKG/etc/profile.d -m644 $SRC/freetype2.sh
35 }
|