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."
2017-08-09 23:09:01 +02:00
TERMUX_PKG_MAINTAINER = "Henrik Grimler @Grimler91"
2018-05-01 04:07:38 +02:00
TERMUX_PKG_VERSION = 20180414
2018-06-26 13:29:06 +02:00
TERMUX_PKG_REVISION = 2
2018-05-01 04:07:38 +02:00
TERMUX_PKG_SRCURL = ftp://tug.org/texlive/historic/${ TERMUX_PKG_VERSION : 0 : 4 } /texlive-${ TERMUX_PKG_VERSION } -source.tar.xz
TERMUX_PKG_SHA256 = "fe0036d5f66708ad973cdc4e413c0bb9ee2385224481f7b0fb229700a0891e4e"
2017-11-18 23:03:22 +01:00
TERMUX_PKG_DEPENDS = "freetype, libpng, libgd, libgmp, libmpfr, libicu, liblua, poppler, libgraphite, harfbuzz-icu, teckit"
2017-08-17 20:58:40 +02:00
TERMUX_PKG_BUILD_DEPENDS = "icu-devtools"
2018-05-01 04:07:38 +02:00
TERMUX_PKG_BREAKS = "texlive (<< 20180414)"
2017-08-09 23:09:01 +02:00
TERMUX_PKG_REPLACES = "texlive (<< 20170524-3)"
2017-08-11 23:16:34 +02:00
TERMUX_PKG_RECOMMENDS = "texlive"
2017-08-09 23:09:01 +02:00
TERMUX_PKG_NO_DEVELSPLIT = yes
2017-10-09 09:31:25 +02:00
TL_ROOT = $TERMUX_PREFIX /share/texlive
TL_BINDIR = $TERMUX_PREFIX /bin
2017-08-09 23:09:01 +02:00
TERMUX_PKG_EXTRA_CONFIGURE_ARGS = "
AR = ar \
RANLIB = ranlib \
BUILDAR = ar \
BUILDRANLIB = ranlib \
ac_cv_c_bigendian = no \
--prefix= $TL_ROOT \
--bindir= $TL_BINDIR \
--datarootdir= $TL_ROOT \
--datadir= $TERMUX_PREFIX /share \
--mandir= $TERMUX_PREFIX /share/man \
--docdir= $TERMUX_PREFIX /share/doc \
--infodir= $TERMUX_PREFIX /share/info \
--libdir= $TERMUX_PREFIX /lib \
--includedir= $TERMUX_PREFIX /include \
--build= $TERMUX_BUILD_TUPLE \
--enable-ttfdump= no \
--enable-makeindexk= yes \
--enable-makejvf= no \
--enable-mendexk= no \
--enable-musixtnt= no \
--enable-ps2pk= no \
--enable-seetexk= no \
--enable-gregorio= no \
--disable-native-texlive-build \
--disable-bibtexu \
--disable-dvisvgm \
--disable-dialog \
--disable-psutils \
--disable-multiplatform \
--disable-t1utils \
--enable-luatex \
--disable-luajittex \
--disable-mflua \
--disable-mfluajit \
--disable-xz \
--disable-pmx \
--without-texinfo \
--without-xdvipdfmx \
--without-texi2html \
--with-system-cairo \
--with-system-graphite2 \
--with-system-harfbuzz \
--with-system-gd \
--with-system-gmp \
--with-system-icu \
--with-system-lua \
--with-system-mpfr \
--with-system-poppler \
--with-system-zlib \
--with-system-xpdf \
--with-system-lua \
2017-11-10 23:44:07 +01:00
--with-system-teckit \
2017-08-09 23:09:01 +02:00
--without-x \
--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 = "
2018-05-01 04:07:38 +02:00
bin/tlmgr
bin/man
2017-10-09 09:31:25 +02:00
share/texlive/texmf-dist/texconfig/tcfmgr.map
share/texlive/texmf-dist/texconfig/tcfmgr
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
share/texlive/texmf-dist/dvipdfmx/dvipdfmx.cfg
share/texlive/texmf-dist/dvips/base/color.pro
share/texlive/texmf-dist/dvips/base/crop.pro
share/texlive/texmf-dist/dvips/base/finclude.pro
share/texlive/texmf-dist/dvips/base/hps.pro
share/texlive/texmf-dist/dvips/base/special.pro
share/texlive/texmf-dist/dvips/base/tex.pro
share/texlive/texmf-dist/dvips/base/texps.pro
share/texlive/texmf-dist/dvips/base/texc.pro
share/texlive/texmf-dist/dvips/gsftopk/render.ps
share/texlive/texmf-dist/scripts/texlive/allcm.sh
share/texlive/texmf-dist/scripts/texlive/allneeded.sh
share/texlive/texmf-dist/scripts/texlive/dvi2fax.sh
share/texlive/texmf-dist/scripts/texlive/dvired.sh
share/texlive/texmf-dist/scripts/texlive/kpsetool.sh
share/texlive/texmf-dist/scripts/texlive/kpsewhere.sh
share/texlive/texmf-dist/scripts/texlive/texconfig-dialog.sh
share/texlive/texmf-dist/scripts/texlive/texconfig-sys.sh
share/texlive/texmf-dist/scripts/texlive/texconfig.sh
share/texlive/texmf-dist/scripts/texlive/texlinks.sh
share/texlive/texmf-dist/scripts/texlive/fmtutil-sys.sh
share/texlive/texmf-dist/scripts/texlive/fmtutil.pl
share/texlive/texmf-dist/scripts/texlive/tlmgr.pl
share/texlive/texmf-dist/scripts/texlive/updmap-sys.sh
share/texlive/texmf-dist/scripts/texlive/updmap.pl
share/texlive/texmf-dist/scripts/simpdftex/simpdftex
share/texlive/texmf-dist/fonts/cmap/dvipdfmx/EUC-UCS2
share/texlive/texmf-dist/fonts/map/glyphlist/pdfglyphlist.txt
share/texlive/texmf-dist/fonts/map/glyphlist/glyphlist.txt
share/texlive/texmf-dist/fonts/map/glyphlist/texglyphlist.txt
share/texlive/texmf-dist/fonts/map/dvipdfmx/cid-x.map
share/texlive/texmf-dist/fonts/enc/dvips/base/7t.enc
share/texlive/texmf-dist/scripts/luaotfload/luaotfload-tool.lua
share/texlive/texmf-dist/scripts/oberdiek/pdfatfi.pl
share/texlive/texmf-dist/scripts/lua2dox/lua2dox_filter
share/texlive/texmf-dist/scripts/context/perl/mptopdf.pl
share/texlive/texmf-dist/scripts/checkcites/checkcites.lua"
2017-08-09 23:09:01 +02:00
termux_step_pre_configure( ) {
# When building against libicu 59.1 or later we need c++11:
CXXFLAGS += " -std=c++11"
}
termux_step_create_debscripts ( ) {
# Clean texlive's folder if needed (run on fresh install)
2017-10-11 00:48:35 +02:00
echo " #! $TERMUX_PREFIX /bin/bash " > preinst
2018-01-26 09:43:18 +01:00
echo " if [ ! -d $PREFIX /opt/texlive ]; then echo 'Removing residual files from old version of TeX Live for Termux'; rm -rf $PREFIX /opt/texlive; fi " >> preinst
2017-08-09 23:09:01 +02:00
echo "exit 0" >> preinst
chmod 0755 preinst
}