--- ./texmf-dist/web2c/texmf.cnf.orig 2022-05-01 22:23:48.057393237 +0200 +++ ./texmf-dist/web2c/texmf.cnf 2022-05-01 22:24:03.305393226 +0200 @@ -59,7 +59,7 @@ % SELFAUTOPARENT (its grandparent = /usr/local/texlive/YYYY), and % SELFAUTOGRANDPARENT (its great-grandparent = /usr/local/texlive). % Sorry for the off-by-one-generation names. -TEXMFROOT = $SELFAUTOPARENT +TEXMFROOT = @TERMUX_PREFIX@/share/texlive % The main tree of distributed packages and programs: TEXMFDIST = $TEXMFROOT/texmf-dist @@ -387,7 +387,7 @@ % OSFONTDIR is to provide a convenient hook for allowing TeX to find % fonts installed on the system (outside of TeX). An empty default % value would add "//" to the search paths, so we give it a dummy value. -OSFONTDIR = /please/set/osfontdir/in/the/environment +OSFONTDIR = @TERMUX_PREFIX@/share/fonts/TTF % PostScript Type 1 outline fonts. T1FONTS = $TEXMFDOTDIR;$TEXMF/fonts/type1//;$OSFONTDIR// @@ -436,7 +436,7 @@ PDFTEXCONFIG = $TEXMFDOTDIR;$TEXMF/pdftex/{$progname,}// % Used by DMP (ditroff-to-mpx), called by makempx -troff. -TRFONTS = /usr{/local,}/share/groff/{current/font,site-font}/devps +TRFONTS = @TERMUX_PREFIX@{/local,}/share/groff/{current/font,site-font}/devps MPSUPPORT = $TEXMFDOTDIR;$TEXMF/metapost/support % For xdvi to find mime.types and .mailcap, if they do not exist in @@ -590,7 +590,8 @@ $SELFAUTOPARENT/share/texmf/web2c,\ $SELFAUTOPARENT/texmf-local/web2c,\ $SELFAUTOPARENT/texmf-dist/web2c,\ -$SELFAUTOPARENT/texmf/web2c\ +$SELFAUTOPARENT/texmf/web2c,\ +@TERMUX_PREFIX@/share/texlive/texmf/web2c\ } % % For reference, here is the old brace-using definition: