2017-08-09 23:09:01 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.tug.org/texlive/
|
2017-10-09 09:31:25 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="TeX Live is a distribution of the TeX typesetting system. This package contains architecture dependent binaries."
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2017-08-09 23:09:01 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91"
|
2022-04-12 21:21:52 +02:00
|
|
|
TERMUX_PKG_VERSION=20220403
|
|
|
|
TERMUX_PKG_SRCURL=https://github.com/TeX-Live/texlive-source/archive/refs/heads/tags/texlive-${TERMUX_PKG_VERSION:0:4}.0.tar.gz
|
|
|
|
TERMUX_PKG_SHA256=e160606d25b6087c2d3520bfd2b852fd343eab3ab3ec90c07649ce1d1b49078d
|
|
|
|
TERMUX_PKG_DEPENDS="freetype, harfbuzz, harfbuzz-icu, libc++, libcairo, libgd, libgmp, libgraphite, libiconv, libicu, liblua52, libmpfr, libpaper, libpixman, libpng, teckit, zlib, zziplib"
|
2019-01-20 18:39:20 +01:00
|
|
|
# libpcre, glib, fonconfig are dependencies to libcairo. pkg-config gives an error if they are missing
|
|
|
|
# libuuid, libxml2 are needed by fontconfig
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BUILD_DEPENDS="icu-devtools, pcre, glib, fontconfig, libuuid, libxml2"
|
|
|
|
TERMUX_PKG_BREAKS="texlive (<< 20180414), texlive-bin-dev"
|
|
|
|
TERMUX_PKG_REPLACES="texlive (<< 20170524-3), texlive-bin-dev"
|
2022-01-30 16:49:12 +01:00
|
|
|
TERMUX_PKG_RECOMMENDS="texlive-installer"
|
2018-07-31 22:57:22 +02:00
|
|
|
TERMUX_PKG_HOSTBUILD=true
|
2017-08-09 23:09:01 +02:00
|
|
|
|
2017-10-09 09:31:25 +02:00
|
|
|
TL_ROOT=$TERMUX_PREFIX/share/texlive
|
2020-05-01 23:37:22 +02:00
|
|
|
TL_BINDIR=$TERMUX_PREFIX/bin/texlive
|
2017-08-09 23:09:01 +02:00
|
|
|
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
2018-10-07 15:47:49 +02:00
|
|
|
RANLIB=ranlib
|
2020-05-01 23:37:22 +02:00
|
|
|
--bindir=$TL_BINDIR
|
2018-10-05 21:54:09 +02:00
|
|
|
--build=$TERMUX_BUILD_TUPLE
|
2022-04-12 21:21:52 +02:00
|
|
|
--datarootdir=$TL_ROOT
|
|
|
|
--disable-dialog
|
|
|
|
--disable-gregorio
|
|
|
|
--disable-luajittex
|
2020-05-01 23:37:22 +02:00
|
|
|
--disable-makejvf
|
|
|
|
--disable-mendexk
|
2022-04-12 21:21:52 +02:00
|
|
|
--disable-mflua
|
|
|
|
--disable-mfluajit
|
|
|
|
--disable-multiplatform
|
2020-05-01 23:37:22 +02:00
|
|
|
--disable-musixtnt
|
2018-10-05 21:54:09 +02:00
|
|
|
--disable-native-texlive-build
|
2022-04-12 21:21:52 +02:00
|
|
|
--disable-pmx
|
|
|
|
--disable-ps2pk
|
2018-10-05 21:54:09 +02:00
|
|
|
--disable-psutils
|
2022-04-12 21:21:52 +02:00
|
|
|
--disable-seetexk
|
2018-10-05 21:54:09 +02:00
|
|
|
--disable-t1utils
|
2022-04-12 21:21:52 +02:00
|
|
|
--disable-ttfdump
|
2018-10-05 21:54:09 +02:00
|
|
|
--disable-xz
|
2022-04-12 21:21:52 +02:00
|
|
|
--enable-dvisvgm
|
|
|
|
--enable-luatex
|
|
|
|
--enable-makeindexk
|
|
|
|
--infodir=$TERMUX_PREFIX/share/info
|
|
|
|
--mandir=$TERMUX_PREFIX/share/man
|
2018-10-05 21:54:09 +02:00
|
|
|
--with-system-cairo
|
|
|
|
--with-system-gd
|
|
|
|
--with-system-gmp
|
2022-04-12 21:21:52 +02:00
|
|
|
--with-system-graphite2
|
|
|
|
--with-system-harfbuzz
|
2018-10-05 21:54:09 +02:00
|
|
|
--with-system-icu
|
2022-04-12 21:21:52 +02:00
|
|
|
--with-system-libpaper
|
2018-10-05 21:54:09 +02:00
|
|
|
--with-system-lua
|
2022-04-12 21:21:52 +02:00
|
|
|
--with-system-mpfr
|
2018-10-05 21:54:09 +02:00
|
|
|
--with-system-teckit
|
2022-04-12 21:21:52 +02:00
|
|
|
--with-system-zlib
|
2020-09-23 08:56:42 +02:00
|
|
|
--with-system-zziplib
|
2022-04-12 21:21:52 +02:00
|
|
|
--without-texi2html
|
|
|
|
--without-texinfo
|
2018-10-05 21:54:09 +02:00
|
|
|
--without-x
|
2022-04-12 21:21:52 +02:00
|
|
|
--without-xdvipdfmx
|
2017-08-09 23:09:01 +02:00
|
|
|
--with-banner-add=/Termux"
|
|
|
|
|
2017-10-08 15:05:27 +02:00
|
|
|
# These files are provided by texlive:
|
2017-08-11 23:16:34 +02:00
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="
|
2020-05-01 23:37:22 +02:00
|
|
|
bin/a2ping
|
2018-05-01 04:07:38 +02:00
|
|
|
bin/tlmgr
|
|
|
|
bin/man
|
2017-10-09 09:31:25 +02:00
|
|
|
share/texlive/texmf-dist/web2c/mktex.opt
|
|
|
|
share/texlive/texmf-dist/web2c/mktexdir.opt
|
|
|
|
share/texlive/texmf-dist/web2c/mktexnam.opt
|
|
|
|
share/texlive/texmf-dist/web2c/fmtutil.cnf
|
|
|
|
share/texlive/texmf-dist/web2c/mktexdir
|
|
|
|
share/texlive/texmf-dist/web2c/mktexnam
|
|
|
|
share/texlive/texmf-dist/web2c/mktexupd
|
2018-08-28 09:08:07 +02:00
|
|
|
share/texlive/texmf-dist/web2c/texmf.cnf
|
|
|
|
share/texlive/texmf-dist/fonts
|
|
|
|
share/texlive/texmf-dist/doc
|
|
|
|
share/texlive/texmf-dist/dvips
|
|
|
|
share/texlive/texmf-dist/dvipdfmx
|
|
|
|
share/texlive/texmf-dist/texconfig
|
|
|
|
share/texlive/texmf-dist/bibtex
|
|
|
|
share/texlive/texmf-dist/scripts
|
|
|
|
share/texlive/texmf-dist/ttf2pk
|
|
|
|
share/texlive/texmf-dist/source
|
|
|
|
share/texlive/texmf-dist/chktex
|
2020-04-12 12:38:37 +02:00
|
|
|
share/texlive/texmf-dist/hbf2gf
|
|
|
|
"
|
2017-08-09 23:09:01 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_host_build() {
|
2018-07-31 22:57:22 +02:00
|
|
|
mkdir -p auxdir/auxsub
|
|
|
|
mkdir -p texk/kpathsea
|
|
|
|
mkdir -p texk/web2c
|
|
|
|
|
|
|
|
cd $TERMUX_PKG_HOSTBUILD_DIR/auxdir/auxsub
|
|
|
|
$TERMUX_PKG_SRCDIR/auxdir/auxsub/configure
|
|
|
|
make
|
|
|
|
|
|
|
|
cd $TERMUX_PKG_HOSTBUILD_DIR/texk/kpathsea
|
|
|
|
$TERMUX_PKG_SRCDIR/texk/kpathsea/configure
|
|
|
|
|
|
|
|
cd $TERMUX_PKG_HOSTBUILD_DIR/texk/web2c
|
|
|
|
$TERMUX_PKG_SRCDIR/texk/web2c/configure --without-x
|
|
|
|
make tangle
|
|
|
|
make ctangle
|
|
|
|
make tie
|
|
|
|
make otangle
|
2022-04-12 21:21:52 +02:00
|
|
|
make himktables
|
2018-07-31 22:57:22 +02:00
|
|
|
}
|
|
|
|
|
2017-08-09 23:09:01 +02:00
|
|
|
termux_step_pre_configure() {
|
2018-07-31 22:57:22 +02:00
|
|
|
export TANGLE=$TERMUX_PKG_HOSTBUILD_DIR/texk/web2c/tangle
|
|
|
|
export TANGLEBOOT=$TERMUX_PKG_HOSTBUILD_DIR/texk/web2c/tangleboot
|
|
|
|
export CTANGLE=$TERMUX_PKG_HOSTBUILD_DIR/texk/web2c/ctangle
|
|
|
|
export CTANGLEBOOT=$TERMUX_PKG_HOSTBUILD_DIR/texk/web2c/ctangleboot
|
|
|
|
export TIE=$TERMUX_PKG_HOSTBUILD_DIR/texk/web2c/tie
|
2020-04-12 12:38:37 +02:00
|
|
|
export OTANGLE=$TERMUX_PKG_HOSTBUILD_DIR/texk/web2c/otangle
|
2022-04-12 21:21:52 +02:00
|
|
|
export HIMKTABLES=$TERMUX_PKG_HOSTBUILD_DIR/texk/web2c/himktables
|
2017-08-09 23:09:01 +02:00
|
|
|
}
|