diff options
author | bapt <bapt@FreeBSD.org> | 2014-06-28 07:26:25 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-06-28 07:26:25 +0800 |
commit | c7038422e92d6be6a7bd8a92317a4d863b30078c (patch) | |
tree | a07c58df09b21ba188fb9ce5525e5f1fea169007 /Mk | |
parent | 7056a0b67c0e96b96ec6d145cb19f7fee583ce96 (diff) | |
download | freebsd-ports-gnome-c7038422e92d6be6a7bd8a92317a4d863b30078c.tar.gz freebsd-ports-gnome-c7038422e92d6be6a7bd8a92317a4d863b30078c.tar.zst freebsd-ports-gnome-c7038422e92d6be6a7bd8a92317a4d863b30078c.zip |
First bit of staging support for bsd.tex.mk
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.tex.mk | 50 |
1 files changed, 27 insertions, 23 deletions
diff --git a/Mk/bsd.tex.mk b/Mk/bsd.tex.mk index 3d9adc229e6c..b49fcbbcfe7a 100644 --- a/Mk/bsd.tex.mk +++ b/Mk/bsd.tex.mk @@ -186,9 +186,11 @@ do-texhash: ${ECHO_CMD} "@unexec ${RMDIR} %D/$$D 2> /dev/null || ${TRUE}"; \ done >> ${TMPPLIST} . else +.if defined(NO_STAGE) @for D in ${TEXHASHDIRS:S,^,${PREFIX}/,}; do \ if [ -r $$D/ls-R ]; then ${LOCALBASE}/bin/mktexlsr $$D; fi; \ done +.endif @${ECHO_CMD} "@exec for D in ${TEXHASHDIRS:S,^,${PREFIX}/,}; do " \ "if [ -r \$$D/ls-R ]; then " \ "${LOCALBASE}/bin/mktexlsr \$$D; " \ @@ -207,6 +209,7 @@ post-install-script: do-texhash . for F in ${TEX_FORMATS} do-fmtutil: do-fmtutil-$F post-install-$F do-fmtutil-$F: +.if defined(NO_STAGE) @${TEST} -n '${TEX_FORMAT_${F:tu}}' @${TEST} -r ${LOCALBASE}/${FMTUTIL_CNF} @exec < ${LOCALBASE}/${FMTUTIL_CNF} && \ @@ -221,6 +224,7 @@ do-fmtutil-$F: ${LOCALBASE}/bin/fmtutil-sys --byfmt $$format; \ done @${LOCALBASE}/bin/mktexlsr ${TEXMFVARDIR:S,^,${PREFIX}/,} +.endif @${ECHO_CMD} "@exec exec < ${LOCALBASE}/${FMTUTIL_CNF} && " \ "${RM} ${LOCALBASE}/${FMTUTIL_CNF} && " \ "(${GREP} -v \"\#$F\$$\"; ${PRINTF} \"%%s\t\#$F\n\" " \ @@ -280,7 +284,7 @@ TEX_FORMAT_AMSTEX_FILES= \ TEX_FORMAT_AMSTEX_DIRS= \ ${TEXMFVARDIR}/web2c/pdftex post-install-amstex: - ${LN} -fs pdftex ${PREFIX}/bin/amstex + ${LN} -fs pdftex ${STAGEDIR}${PREFIX}/bin/amstex TEX_FORMAT_CONTEXT?= \ "cont-en pdftex cont-usr.tex -8bit *cont-en.ini" @@ -309,8 +313,8 @@ TEX_FORMAT_CSLATEX_FILES= \ TEX_FORMAT_CSLATEX_DIRS= \ ${TEXMFVARDIR}/web2c/pdftex post-install-cslatex: - ${LN} -sf pdftex ${PREFIX}/bin/cslatex - ${LN} -sf pdftex ${PREFIX}/bin/pdfcslatex + ${LN} -sf pdftex ${STAGEDIR}${PREFIX}/bin/cslatex + ${LN} -sf pdftex ${STAGEDIR}${PREFIX}/bin/pdfcslatex TEX_FORMAT_EPLAIN?= \ "eplain pdftex language.dat -translate-file=cp227.tcx *eplain.ini" @@ -321,7 +325,7 @@ TEX_FORMAT_EPLAIN_FILES= \ TEX_FORMAT_EPLAIN_DIRS= \ ${TEXMFVARDIR}/web2c/pdftex post-install-eplain: - ${LN} -sf pdftex ${PREFIX}/bin/eplain + ${LN} -sf pdftex ${STAGEDIR}${PREFIX}/bin/eplain TEX_FORMAT_JADETEX?= \ "jadetex pdftex language.dat *jadetex.ini" \ @@ -336,8 +340,8 @@ TEX_FORMAT_JADETEX_FILES= \ TEX_FORMAT_JADETEX_DIRS= \ ${TEXMFVARDIR}/web2c/pdftex post-install-jadetex: - ${LN} -sf pdftex ${PREFIX}/bin/jadetex - ${LN} -sf pdftex ${PREFIX}/bin/pdfjadetex + ${LN} -sf pdftex ${STAGEDIR}${PREFIX}/bin/jadetex + ${LN} -sf pdftex ${STAGEDIR}${PREFIX}/bin/pdfjadetex TEX_FORMAT_LATEX-BIN?= \ "latex pdftex language.dat -translate-file=cp227.tcx *latex.ini" \ @@ -352,8 +356,8 @@ TEX_FORMAT_LATEX-BIN_FILES= \ TEX_FORMAT_LATEX-BIN_DIRS= \ ${TEXMFVARDIR}/web2c/pdftex post-install-latex-bin: - ${LN} -sf pdftex ${PREFIX}/bin/latex - ${LN} -sf pdftex ${PREFIX}/bin/pdflatex + ${LN} -sf pdftex ${STAGEDIR}${PREFIX}/bin/latex + ${LN} -sf pdftex ${STAGEDIR}${PREFIX}/bin/pdflatex TEX_FORMAT_LUATEX?= \ "luatex luatex language.def,language.dat.lua luatex.ini" \ @@ -375,9 +379,9 @@ TEX_FORMAT_LUATEX_FILES= \ TEX_FORMAT_LUATEX_DIRS= \ ${TEXMFVARDIR}/web2c/luatex post-install-luatex: - ${LN} -sf luatex ${PREFIX}/bin/dviluatex - ${LN} -sf luatex ${PREFIX}/bin/dvilualatex - ${LN} -sf luatex ${PREFIX}/bin/lualatex + ${LN} -sf luatex ${STAGEDIR}${PREFIX}/bin/dviluatex + ${LN} -sf luatex ${STAGEDIR}${PREFIX}/bin/dvilualatex + ${LN} -sf luatex ${STAGEDIR}${PREFIX}/bin/lualatex TEX_FORMAT_METAFONT?= \ "mf mf-nowin - -translate-file=cp227.tcx mf.ini" @@ -406,9 +410,9 @@ TEX_FORMAT_MEX_FILES= \ TEX_FORMAT_MEX_DIRS= \ ${TEXMFVARDIR}/web2c/pdftex post-install-mex: - ${LN} -sf pdftex ${PREFIX}/bin/mex - ${LN} -sf pdftex ${PREFIX}/bin/pdfmex - ${LN} -sf pdftex ${PREFIX}/bin/utf8mex + ${LN} -sf pdftex ${STAGEDIR}${PREFIX}/bin/mex + ${LN} -sf pdftex ${STAGEDIR}${PREFIX}/bin/pdfmex + ${LN} -sf pdftex ${STAGEDIR}${PREFIX}/bin/utf8mex TEX_FORMAT_MLTEX?= \ "mllatex pdftex language.dat -translate-file=cp227.tcx -mltex mllatex.ini" \ @@ -423,8 +427,8 @@ TEX_FORMAT_MLTEX_FILES= \ TEX_FORMAT_MLTEX_DIRS= \ ${TEXMFVARDIR}/web2c/pdftex post-install-mltex: - ${LN} -sf pdftex ${PREFIX}/bin/mltex - ${LN} -sf pdftex ${PREFIX}/bin/mllatex + ${LN} -sf pdftex ${STAGEDIR}${PREFIX}/bin/mltex + ${LN} -sf pdftex ${STAGEDIR}${PREFIX}/bin/mllatex TEX_FORMAT_MPTOPDF?= \ "mptopdf pdftex - -translate-file=cp227.tcx mptopdf.tex" @@ -451,7 +455,7 @@ TEX_FORMAT_PDFTEX_FILES= \ TEX_FORMAT_PDFTEX_DIRS= \ ${TEXMFVARDIR}/web2c/pdftex post-install-pdftex: - ${LN} -sf pdftex ${PREFIX}/bin/pdfetex + ${LN} -sf pdftex ${STAGEDIR}${PREFIX}/bin/pdfetex TEX_FORMAT_PTEX?= \ "ptex ptex - ptex.ini" \ @@ -469,7 +473,7 @@ TEX_FORMAT_PTEX_DIRS= \ ${TEXMFVARDIR}/web2c/ptex \ ${TEXMFVARDIR}/web2c/eptex post-install-ptex: - ${LN} -sf eptex ${PREFIX}/bin/platex + ${LN} -sf eptex ${STAGEDIR}${PREFIX}/bin/platex TEX_FORMAT_TEX?= \ "tex tex - tex.ini" @@ -490,7 +494,7 @@ TEX_FORMAT_TEXSIS_FILES= \ TEX_FORMAT_TEXSIS_DIRS= \ ${TEXMFVARDIR}/web2c/pdftex post-install-texsis: - ${LN} -sf pdftex ${PREFIX}/bin/texsis + ${LN} -sf pdftex ${STAGEDIR}${PREFIX}/bin/texsis TEX_FORMAT_UPTEX?= \ "uptex uptex - uptex.ini" \ @@ -508,7 +512,7 @@ TEX_FORMAT_UPTEX_DIRS= \ ${TEXMFVARDIR}/web2c/euptex \ ${TEXMFVARDIR}/web2c/uptex post-install-uptex: - ${LN} -sf euptex ${PREFIX}/bin/uplatex + ${LN} -sf euptex ${STAGEDIR}${PREFIX}/bin/uplatex TEX_FORMAT_XETEX?= \ "xetex xetex language.def -etex xetex.ini" \ @@ -525,7 +529,7 @@ TEX_FORMAT_XETEX_FILES= \ TEX_FORMAT_XETEX_DIRS= \ ${TEXMFVARDIR}/web2c/xetex post-install-xetex: - ${LN} -sf xetex ${PREFIX}/bin/xelatex + ${LN} -sf xetex ${STAGEDIR}${PREFIX}/bin/xelatex TEX_FORMAT_XMLTEX?= \ "xmltex pdftex language.dat *xmltex.ini" \ @@ -540,5 +544,5 @@ TEX_FORMAT_XMLTEX_FILES= \ TEX_FORMAT_XMLTEX_DIRS= \ ${TEXMFVARDIR}/web2c/pdftex post-install-xmltex: - ${LN} -sf pdftex ${PREFIX}/bin/xmltex - ${LN} -sf pdftex ${PREFIX}/bin/pdfxmltex + ${LN} -sf pdftex ${STAGEDIR}${PREFIX}/bin/xmltex + ${LN} -sf pdftex ${STAGEDIR}${PREFIX}/bin/pdfxmltex |