Index: Makefile =================================================================== --- Makefile (revision 439866) +++ Makefile (working copy) @@ -121,6 +121,7 @@ X11_USE= TEX=xpdfopen:run post-patch: + ${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/configure cd ${WRKSRC}/texk/texlive && \ ${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' \ linked_scripts/texlive/fmtutil-sys.sh \ Index: files/patch-configure =================================================================== --- files/patch-configure (revision 439866) +++ files/patch-configure (working copy) @@ -16,6 +16,15 @@ test "x$need_teckit" = xyes && { need_zlib=yes +@@ -20926,7 +20935,7 @@ + + if test "x$enable_web2c" = xyes && test "x$with_system_kpathsea" = xyes; then + if test "x$with_kpathsea_includes" = x; then +- list="/usr/include /usr/local/include" ++ list="/usr/include %%LOCALBASE%%/include" + else + list=$with_kpathsea_includes + fi @@ -21284,11 +21293,12 @@ elif test "x$need_graphite2:$with_system as_fn_error $? "did not find graphite2" "$LINENO" 5 fi