1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/fontconfig/fontconfig.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 export GPERF=gperf # hotfix execution via missing results in empty file
13 if ! atstage native; then
14 var_append extraconfopt ' ' "--with-arch=`echo $arch | arch2uname`"
16 var_append makeopt ' ' 'man_MANS= DOCSRC='
17 var_append makeinstopt ' ' 'man_MANS= DOCSRC='
20 pkgprefix -t xorgproto
21 fontdir="`pkgprefix datadir xorgproto`"
22 fontdir="${fontdir/X11R7/X11}"
23 var_append extraconfopt ' ' "--with-x-fonts=$fontdir/fonts"
24 var_append extraconfopt ' ' "--with-add-fonts=$fontdir/fonts"
25 var_append makeinstopt ' ' 'RUN_FC_CACHE_TEST=false'
26 hook_add postmake 5 "cp -fv $confdir/fonts-local $root/etc/fonts/local.conf"