From 9834714aac40919aaa47ed9db9b41c223403407b Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Mon, 26 Feb 2024 14:10:42 +0100 Subject: added rules for asymptote --- tl-build.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'tl-build.sh') diff --git a/tl-build.sh b/tl-build.sh index c31c7a2..73c5184 100755 --- a/tl-build.sh +++ b/tl-build.sh @@ -18,6 +18,10 @@ if [[ ${with_context} == "y" ]]; then fi unset preset_context_ver +# Asymptote +echo "Include Asymptote?" +read with_asymptote?'[y/n] ' + # TL echo "Build TL?" read build_tl?'[y/n] ' @@ -75,12 +79,24 @@ if [[ ${with_context} == "y" ]]; then sh build.sh fi +# Build Asymptote +if [[ ${with_asymptote} == "y" ]];then + cd source/utils/asymptote + ./configure --prefix=/tmp/asyinst --enable-texlive-build \ + --enable-static CXXFLAGS=-std=c++11 \ + --disable-curl --disable-lsp --disable-gsl --disable-fftw + sed -i -e 's/^LIBS = /LIBS = -static /' Makefile + gmake + strip asy +fi + # Now build TL if [[ ${build_tl} == "y" ]]; then cd ${tl_sourcedir} export TL_MAKE=gmake ./Build ${enable_xindy} if [[ ${with_context} == "y" ]]; then + cd ${tl_sourcedir} tl_bindir=$tl_sourcedir/inst/bin/`ls ${tl_sourcedir}/inst/bin` cp luametatex-$context_ver/build/native/luametatex $tl_bindir cd $tl_bindir @@ -89,6 +105,13 @@ if [[ ${build_tl} == "y" ]]; then ln -s ../../texmf-dist/scripts/context/lua/context.lua context.lua ln -s ../../texmf-dist/scripts/context/lua/mtxrun.lua mtxrun.lua fi + if [[ ${with_asymptote} == "y" ]];then + cd ${tl_sourcedir} + tl_bindir=$tl_sourcedir/inst/bin/`ls ${tl_sourcedir}/inst/bin` + cp utils/asymptote/asy ${tl_sourcedir}/inst/bin + cd ${tl_bindir} + ln -s ../../texmf-dist/asymptote/GUI/xasy.py xasy + fi fi cd ${this_dir} -- cgit v1.2.3