diff options
author | Robert Alessi <alessi@robertalessi.net> | 2024-03-05 08:20:11 +0100 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2024-03-05 08:20:11 +0100 |
commit | 875186950e07e898dad5cc97a811a91104a8c559 (patch) | |
tree | 79bf2eab4886325b65a38e318c06c987cc640353 | |
parent | 338365898f723e358b502e250b440e835734764a (diff) | |
download | texlive-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.md | 1 | ||||
-rwxr-xr-x | tl-build.sh | 21 |
2 files changed, 16 insertions, 6 deletions
@@ -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 |
133 | fi | 133 | fi |
134 | 134 | ||
135 | function 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 |
136 | if [[ ${build_tl} == "y" ]]; then | 146 | if [[ ${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 |
150 | else | 156 | else |
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 | ||
154 | fi | 163 | fi |
155 | 164 | ||
156 | cd ${this_dir} | 165 | cd ${this_dir} |