diff options
-rw-r--r-- | README.md | 3 | ||||
-rwxr-xr-x | tl-build.sh | 23 |
2 files changed, 26 insertions, 0 deletions
@@ -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 |
21 | Run `checkout-tl.sh` | 24 | Run `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 | |||
18 | fi | 18 | fi |
19 | unset preset_context_ver | 19 | unset preset_context_ver |
20 | 20 | ||
21 | # Asymptote | ||
22 | echo "Include Asymptote?" | ||
23 | read with_asymptote?'[y/n] ' | ||
24 | |||
21 | # TL | 25 | # TL |
22 | echo "Build TL?" | 26 | echo "Build TL?" |
23 | read build_tl?'[y/n] ' | 27 | read build_tl?'[y/n] ' |
@@ -75,12 +79,24 @@ if [[ ${with_context} == "y" ]]; then | |||
75 | sh build.sh | 79 | sh build.sh |
76 | fi | 80 | fi |
77 | 81 | ||
82 | # Build Asymptote | ||
83 | if [[ ${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 | ||
91 | fi | ||
92 | |||
78 | # Now build TL | 93 | # Now build TL |
79 | if [[ ${build_tl} == "y" ]]; then | 94 | if [[ ${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 | ||
92 | fi | 115 | fi |
93 | 116 | ||
94 | cd ${this_dir} | 117 | cd ${this_dir} |