pkgsrc/print/xetex/Makefile
markd 2cde42c84b texlive: update to TeXLive 2021
General:
* Donald Knuth’s changes for his 2021 tuneup of TeX and Metafont are
  incorporated (https://tug.org/TUGboat/tb42-1/tb130knuth-tuneup21.pdf). They
  are also available on CTAN as the knuth-dist and knuth-local packages. As
  expected, the fixes are for obscure cases and do not affect any behavior in
  practice.
* Except in original TeX: if \tracinglostchars is set to 3 or more, missing
  characters will result in an error, not just a message in the log file, and
  the missing character code will be shown in hex.
* Except in original TeX: a new integer parameter \tracingstacklevels, if
  positive, and \tracingmacros is also positive, causes a prefix indicating the
  macro expansion depth to be output on each relevant log line (e.g., ~.. at
  depth 2). Also, macro logging is truncated at a depth ≥ the parameter value.

Aleph: The Aleph-based LaTeX format, named lamed, has been removed. The aleph
  binary itself is still included and supported.

LuaTeX:
* Lua 5.3.6.
* Callback for nesting level used in \tracingmacros, as generalized variant
  of the new \tracingstacklevels.
* Mark math glyphs as protected to prevent processing as text.
* Removed width/ic compensation for traditional math code path.

MetaPost:
* SOURCE_DATE_EPOCH environment variable support for reproducible output.
* Avoid wrong final % in mpto.
* Document -T option, other fixes to manual.
* Value of epsilon changed in binary and decimal modes, so mp_solve_rising_cubic
  works as expected.

pdfTeX:
* New primitives \pdfrunninglinkoff and \pdfrunninglinkon; e.g., for
  disabling generation of links in headers and footers.
* Warn instead of aborting when “\pdfendlink ended up in different nesting
  level than \pdfstartlink”.
* Dump \pdfglyphtounicode assignments in fmt file.
* Source: poppler support removed, as it was too hard to keep in sync with
  upstream. In native TL, pdfTeX has always used libs/xpdf, which is cut-down
  and adapted code from xpdf.

XeTeX: Fixes for math kerning.

Dvipdfmx:
* Ghostscript is now invoked safely by default; to override (assuming all
  input files are trusted), use -i dvipdfmx-unsafe.cfg. To use PSTricks with
  XeTeX, this is required, as in:
   xetex -output-driver="xdvipdfmx -i dvipdfmx-unsafe.cfg -q -E" ...
* If an image file is not found, exit with bad status.
* Extended special syntax for color support.
* Specials for manipulating ExtGState.
* Compatibility specials pdfcolorstack and pdffontattr.
* Experimental support for dviluatex’s extended fnt_def.
* Support new feature of virtual font to fallback Japanese font definition.

Dvips:
* Default PostScript document title is now the basename of the input file,
  and can be overridden with the new option -title.
* If an .eps or other image file is not found, exit with bad status.
* Support new feature of virtual font to fallback Japanese font definition.
2021-06-06 01:17:16 +00:00

85 lines
2.8 KiB
Makefile

# $NetBSD: Makefile,v 1.113 2021/06/06 01:17:20 markd Exp $
.include "../../print/texlive/Makefile.common"
PKGNAME= xetex-0.999993
CATEGORIES= print
HOMEPAGE= https://www.tug.org/xetex/
COMMENT= TeX system with Unicode and modern font technologies
LICENSE= mit
CONFLICTS+= web2c<=7.5.7
DEPENDS+= dvipdfmx>=20140525:../../print/dvipdfmx
EXTRACT_ELEMENTS+= ${DISTNAME}/libs/pplib
EXTRACT_ELEMENTS+= ${DISTNAME}/libs/xpdf
EXTRACT_ELEMENTS+= ${DISTNAME}/texk/web2c
USE_LANGUAGES= c99 c++11
USE_TOOLS+= gmake lex perl yacc
GNU_CONFIGURE_STRICT= no # libs
CONFIGURE_ARGS+= --disable-aleph
CONFIGURE_ARGS+= --disable-eptex
CONFIGURE_ARGS+= --disable-euptex
CONFIGURE_ARGS+= --disable-etex
CONFIGURE_ARGS+= --disable-luajittex
CONFIGURE_ARGS+= --disable-luajithbtex
CONFIGURE_ARGS+= --disable-luahbtex
CONFIGURE_ARGS+= --disable-luatex
CONFIGURE_ARGS+= --disable-luatex53
CONFIGURE_ARGS+= --disable-mf
CONFIGURE_ARGS+= --disable-mf-nowin
CONFIGURE_ARGS+= --disable-mflua
CONFIGURE_ARGS+= --disable-mfluajit
CONFIGURE_ARGS+= --disable-mp
CONFIGURE_ARGS+= --disable-pdftex
CONFIGURE_ARGS+= --disable-pmp
CONFIGURE_ARGS+= --disable-ptex
CONFIGURE_ARGS+= --disable-uptex
CONFIGURE_ARGS+= --disable-upmp
CONFIGURE_ARGS+= --disable-web-progs
CONFIGURE_ARGS+= --enable-web2c
CONFIGURE_ARGS+= --enable-xetex
CONFIGURE_ARGS+= --with-fontconfig-includes=${BUILDLINK_PREFIX.fontconfig}/include
CONFIGURE_ARGS+= --with-fontconfig-libdir=${BUILDLINK_PREFIX.fontconfig}/lib
CONFIGURE_ARGS+= --with-system-graphite2
CONFIGURE_ARGS+= --with-system-harfbuzz
CONFIGURE_ARGS+= --with-system-kpathsea
CONFIGURE_ARGS+= --with-system-zlib
CONFIGURE_ARGS+= --with-zlib-includes=${BUILDLINK_PREFIX.zlib}/include
CONFIGURE_ARGS+= --with-zlib-libdir=${BUILDLINK_PREFIX.zlib}/lib
CONFIGURE_ARGS+= --with-system-libpng
CONFIGURE_ARGS+= --with-system-freetype2
CONFIGURE_ARGS+= --with-system-teckit
CONFIGURE_ARGS+= --with-system-icu
CONFIGURE_ARGS+= --without-x
CONFIGURE_DIRS+= libs/pplib
CONFIGURE_DIRS+= libs/xpdf
CONFIGURE_DIRS+= texk/web2c
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Setting paths to commands.
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= texk/web2c/xetexdir/XeTeX_ext.c
SUBST_SED.paths= -e 's,@XDVIPDFMX@,${PREFIX}/bin/xdvipdfmx,g'
INSTALLATION_DIRS+= bin
CFLAGS.SunOS+= -D_XOPEN_SOURCE_EXTENDED=0
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/texk/web2c/xetex ${DESTDIR}${PREFIX}/bin
.include "../../converters/TECkit/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../fonts/harfbuzz/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/graphite2/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
BUILDLINK_API_DEPENDS.kpathsea+= kpathsea>=6.2.1
.include "../../print/kpathsea/buildlink3.mk"
.include "../../textproc/icu/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"