Asymptote is a powerful descriptive vector graphics language that provides a natural coordinate-based framework for technical drawing. Labels and equations can be typeset with LaTeX. As well as EPS, PDF and PNG output it can produce WebGL 3D HTML rendering and (using dvisvgm) SVG output.
This package is known to build and work properly using an LFS 11.3 platform.
Download (HTTP): https://downloads.sourceforge.net/asymptote/asymptote-2.85.src.tgz
Download MD5 sum: 063786b8914f718d3bccf9d9168458f1
Download size: 15 MB
Estimated disk space required: 222 MB (55 MB installed,with all the dependencies which are within BLFS)
Estimated build time: 1.3 SBU (using parallelism=4)
ghostscript-10.00.0 and texlive-20220321
cURL-7.88.1, Freeglut-3.4.0, GC-8.2.2, GLEW-2.2.0, GLM-0.9.9.8 and libtirpc-1.3.3
dvisvgm-3.0.3 to allow svg output
fftw-3.3.10, Gsl-2.7.1, libsigsegv-2.14, both Boost-1.81.0 and rapidjson to use LSP which can be used with emacs, and eigen
ImageMagick-7.1.0-61 to convert output to other formats such as JPEG or to create animated GIFs, PyQt5 (not tested, has a build dependency of Qt-5.15.8) to use xasy.
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/asymptote
Certain 3D PDF scripts may not work when invoked from pdflatex on some zen+ amdgpu APU machines.
Install asymptote by running the following commands:
export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') && ./configure --prefix=$TEXLIVE_PREFIX \ --bindir=$TEXLIVE_PREFIX/bin/$TEXARCH \ --datarootdir=$TEXLIVE_PREFIX/texmf-dist \ --infodir=$TEXLIVE_PREFIX/texmf-dist/doc/info \ --libdir=$TEXLIVE_PREFIX/texmf-dist \ --mandir=$TEXLIVE_PREFIX/texmf-dist/doc/man \ --disable-lsp \ --enable-gc=system \ --with-latex=$TEXLIVE_PREFIX/texmf-dist/tex/latex \ --with-context=$TEXLIVE_PREFIX/texmf-dist/tex/context/third && make
To test the results, issue: make check.
Now, as the root
user:
make install
--prefix=, --bindir=, --datarootdir=,
--infodir=, --mandir= ...
: these switches ensure that
the files installed from source will overwrite any corresponding
files previously installed by install-tl-unx so that the alternative methods
of installing texlive are
consistent.
--libdir=$TEXLIVE_PREFIX/texmf-dist;
:
This parameter ensures that the asymptote
directory will similarly overwrite any
files installed by install-tl-unx.
--disable-lsp
: The Language
Server Protocol is enabled by default, with several third-party
sources included, but it does not build unless boost and repidjson
have been installed.
--enable-gc=system
: this
ensures that the system version of libgc.so
will be used instead of the version
shipped with this package.
--with-latex= ...
--with-context=
: These switches ensure that style files
and a tex file will be installed into the texlive directories instead of creating a
texmf-local
directory for them.