33 lines
825 B
Plaintext
33 lines
825 B
Plaintext
# Description: A library for configuring and customizing font access
|
|
# URL: https://www.freedesktop.org/wiki/Software/fontconfig/
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
# Depends on: expat freetype
|
|
|
|
name=fontconfig
|
|
version=2.14.2
|
|
release=1
|
|
source=(https://fontconfig.org/release/$name-$version.tar.xz)
|
|
|
|
build() {
|
|
meson setup $name-$version build \
|
|
--prefix=/usr \
|
|
--buildtype=plain \
|
|
--wrap-mode=nodownload \
|
|
-D b_lto=true \
|
|
-D b_pie=true \
|
|
-D doc-man=enabled \
|
|
-D doc=disabled \
|
|
-D nls=disabled \
|
|
-D tests=disabled \
|
|
-D cache-build=disabled
|
|
meson compile -C build -j ${JOBS:-1}
|
|
DESTDIR=$PKG meson install -C build
|
|
|
|
# Enabling autohinting by default
|
|
pushd $PKG/etc/fonts/conf.d
|
|
ln -sf /usr/share/fontconfig/conf.avail/10-autohint.conf
|
|
popd
|
|
|
|
rm -f $PKG/etc/fonts/conf.d/README
|
|
}
|