aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2024-02-26 14:10:42 +0100
committerRobert Alessi <alessi@robertalessi.net>2024-02-26 14:10:42 +0100
commit9834714aac40919aaa47ed9db9b41c223403407b (patch)
tree2fb0aa8f38a6d70db6d3394b53f9babe3c2bd685
parent7d3df0f8bb89c237e20a151257e75f920eda551b (diff)
downloadtexlive-openbsd-9834714aac40919aaa47ed9db9b41c223403407b.tar.gz
added rules for asymptote
-rw-r--r--README.md3
-rwxr-xr-xtl-build.sh23
2 files changed, 26 insertions, 0 deletions
diff --git a/README.md b/README.md
index c3d9112..80c6398 100644
--- a/README.md
+++ b/README.md
@@ -16,6 +16,9 @@ How to Build texlive binaries for OpenBSD
16- for context: 16- for context:
17 - cmake 17 - cmake
18 - ninja 18 - ninja
19- for asymptote:
20 - freeglut
21 - readline
19 22
20### Getting the sources 23### Getting the sources
21Run `checkout-tl.sh` 24Run `checkout-tl.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
18fi 18fi
19unset preset_context_ver 19unset preset_context_ver
20 20
21# Asymptote
22echo "Include Asymptote?"
23read with_asymptote?'[y/n] '
24
21# TL 25# TL
22echo "Build TL?" 26echo "Build TL?"
23read build_tl?'[y/n] ' 27read build_tl?'[y/n] '
@@ -75,12 +79,24 @@ if [[ ${with_context} == "y" ]]; then
75 sh build.sh 79 sh build.sh
76fi 80fi
77 81
82# Build Asymptote
83if [[ ${with_asymptote} == "y" ]];then
84 cd source/utils/asymptote
85 ./configure --prefix=/tmp/asyinst --enable-texlive-build \
86 --enable-static CXXFLAGS=-std=c++11 \
87 --disable-curl --disable-lsp --disable-gsl --disable-fftw
88 sed -i -e 's/^LIBS = /LIBS = -static /' Makefile
89 gmake
90 strip asy
91fi
92
78# Now build TL 93# Now build TL
79if [[ ${build_tl} == "y" ]]; then 94if [[ ${build_tl} == "y" ]]; then
80 cd ${tl_sourcedir} 95 cd ${tl_sourcedir}
81 export TL_MAKE=gmake 96 export TL_MAKE=gmake
82 ./Build ${enable_xindy} 97 ./Build ${enable_xindy}
83 if [[ ${with_context} == "y" ]]; then 98 if [[ ${with_context} == "y" ]]; then
99 cd ${tl_sourcedir}
84 tl_bindir=$tl_sourcedir/inst/bin/`ls ${tl_sourcedir}/inst/bin` 100 tl_bindir=$tl_sourcedir/inst/bin/`ls ${tl_sourcedir}/inst/bin`
85 cp luametatex-$context_ver/build/native/luametatex $tl_bindir 101 cp luametatex-$context_ver/build/native/luametatex $tl_bindir
86 cd $tl_bindir 102 cd $tl_bindir
@@ -89,6 +105,13 @@ if [[ ${build_tl} == "y" ]]; then
89 ln -s ../../texmf-dist/scripts/context/lua/context.lua context.lua 105 ln -s ../../texmf-dist/scripts/context/lua/context.lua context.lua
90 ln -s ../../texmf-dist/scripts/context/lua/mtxrun.lua mtxrun.lua 106 ln -s ../../texmf-dist/scripts/context/lua/mtxrun.lua mtxrun.lua
91 fi 107 fi
108 if [[ ${with_asymptote} == "y" ]];then
109 cd ${tl_sourcedir}
110 tl_bindir=$tl_sourcedir/inst/bin/`ls ${tl_sourcedir}/inst/bin`
111 cp utils/asymptote/asy ${tl_sourcedir}/inst/bin
112 cd ${tl_bindir}
113 ln -s ../../texmf-dist/asymptote/GUI/xasy.py xasy
114 fi
92fi 115fi
93 116
94cd ${this_dir} 117cd ${this_dir}