aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2024-03-05 08:20:11 +0100
committerRobert Alessi <alessi@robertalessi.net>2024-03-05 08:20:11 +0100
commit875186950e07e898dad5cc97a811a91104a8c559 (patch)
tree79bf2eab4886325b65a38e318c06c987cc640353
parent338365898f723e358b502e250b440e835734764a (diff)
downloadtexlive-openbsd-875186950e07e898dad5cc97a811a91104a8c559.tar.gz
added py3-cson as runtime dep for xasy. optionally compile and include asy after TL has been built
-rw-r--r--README.md1
-rwxr-xr-xtl-build.sh21
2 files changed, 16 insertions, 6 deletions
diff --git a/README.md b/README.md
index fd04b6e..9fd5c4c 100644
--- a/README.md
+++ b/README.md
@@ -123,6 +123,7 @@ Building the sources
123 - freeglut 123 - freeglut
124 - readline 124 - readline
125 - eigen3 125 - eigen3
126 - py3-cson (run dependency for `xasy`)
126 127
127### Getting the sources 128### Getting the sources
128```sh 129```sh
diff --git a/tl-build.sh b/tl-build.sh
index 8458a0d..1d47095 100755
--- a/tl-build.sh
+++ b/tl-build.sh
@@ -127,11 +127,21 @@ if [[ ${with_asymptote} == "y" ]];then
127 ./configure --prefix=/tmp/asyinst --enable-texlive-build \ 127 ./configure --prefix=/tmp/asyinst --enable-texlive-build \
128 --enable-static CXXFLAGS=-std=c++11 \ 128 --enable-static CXXFLAGS=-std=c++11 \
129 --disable-curl --disable-lsp --disable-gsl --disable-fftw 129 --disable-curl --disable-lsp --disable-gsl --disable-fftw
130 sed -i -e 's/^LIBS = /LIBS = -static /' Makefile 130 sed -i.bak -e 's/^LIBS = /LIBS = -static /' Makefile
131 gmake 131 gmake
132 strip asy 132 strip asy
133fi 133fi
134 134
135function include_asymptote {
136 cd ${tl_sourcedir}
137 if [[ -d ${tl_sourcedir}/inst/bin ]];then
138 tl_bindir=${tl_sourcedir}/inst/bin/`ls ${tl_sourcedir}/inst/bin`
139 cp utils/asymptote/asy ${tl_bindir}
140 cd ${tl_bindir}
141 ln -s ../../texmf-dist/asymptote/GUI/xasy.py xasy
142 fi
143}
144
135# Now build TL 145# Now build TL
136if [[ ${build_tl} == "y" ]]; then 146if [[ ${build_tl} == "y" ]]; then
137 cd ${tl_sourcedir} 147 cd ${tl_sourcedir}
@@ -141,16 +151,15 @@ if [[ ${build_tl} == "y" ]]; then
141 include_context 151 include_context
142 fi 152 fi
143 if [[ ${with_asymptote} == "y" ]];then 153 if [[ ${with_asymptote} == "y" ]];then
144 cd ${tl_sourcedir} 154 include_asymptote
145 tl_bindir=${tl_sourcedir}/inst/bin/`ls ${tl_sourcedir}/inst/bin`
146 cp utils/asymptote/asy ${tl_bindir}
147 cd ${tl_bindir}
148 ln -s ../../texmf-dist/asymptote/GUI/xasy.py xasy
149 fi 155 fi
150else 156else
151 if [[ ${with_context} == "y" ]]; then 157 if [[ ${with_context} == "y" ]]; then
152 include_context 158 include_context
153 fi 159 fi
160 if [[ ${with_asymptote} == "y" ]];then
161 include_asymptote
162 fi
154fi 163fi
155 164
156cd ${this_dir} 165cd ${this_dir}