opt/freetype/Pkgfile

34 lines
1.0 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
2021-12-04 14:32:16 +01:00
# Optional: brotli harfbuzz
2006-03-12 11:47:04 +01:00
name=freetype
2023-08-26 10:21:21 +02:00
version=2.13.2
2021-12-04 14:32:16 +01:00
release=1
2023-08-26 10:21:21 +02:00
source=(https://sourceforge.net/projects/freetype/files/freetype2/$version/freetype-$version.tar.xz
2021-12-04 14:32:16 +01:00
freetype2.sh
0001-Enable-table-validation-modules.patch
0002-Enable-subpixel-rendering.patch
2023-06-25 22:22:05 +02:00
0004-Enable-long-PCF-family-names.patch)
2006-03-12 11:47:04 +01:00
build() {
2021-12-04 14:32:16 +01:00
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/0004-Enable-long-PCF-family-names.patch
2021-12-04 14:32:16 +01: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 -j ${JOBS:-1}
DESTDIR=$PKG meson install -C build
2014-08-19 12:18:13 +02:00
2021-12-04 14:32:16 +01:00
install -Dt $PKG/etc/profile.d -m644 $SRC/freetype2.sh
2006-03-12 11:47:04 +01:00
}