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.
This package is known to build and work properly using an LFS-8.0 platform.
Download (HTTP): http://downloads.sourceforge.net/sourceforge/asymptote/asymptote-2.39.src.tgz
Download MD5 sum: 69df7cbe85f8daed0ea58b38c2cbe0d8
Download size: 3.4 MB
Estimated disk space required: 147 MB
Estimated build time: 1.7 SBU
Freeglut-3.0.0, ghostscript-9.20, texlive-20160523b
Imaging
which needs
Imaging-1.1.7-freetype_fix-1.patch and has a build dependency
of Python-2.7.13 (re-) compiled against Tk-8.6.6 to
provide _tkinter.so
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/asymptote
Install asymptote by running the following commands:
export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') && export CFLAGS="-g -O2" && ./configure --prefix=/opt/texlive/2016 \ --bindir=/opt/texlive/2016/bin/$TEXARCH \ --datarootdir=/opt/texlive/2016/texmf-dist \ --infodir=/opt/texlive/2016/texmf-dist/doc/info \ --libdir=/opt/texlive/2016/texmf-dist \ --mandir=/opt/texlive/2016/texmf-dist/doc/man \ --enable-gc=system \ --with-latex=/opt/texlive/2016/texmf-dist/tex/latex \ --with-context=/opt/texlive/2016/texmf-dist/tex/context/third && unset CFLAGS && make
To test the results, issue: make check.
Now, as the root
user:
make install
export CFLAGS="-g -O2": by default CXXFLAGS of -g -O2 and CFLAGS of -g -O3 are used, but the CFLAGS follow the CXXFLAGS and therefore override them. With gcc-6.3.0, using -O3 here breaks the build. If you normally remove '-g' in your own CFLAGS and CXXFLAGS you can do that here.
--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..
Exceptionally, asymptote will create an asymptote/
subdirectory for asymptote.info
even though the asy-faq.info
file will be in the main
texlive info/
directory. Both files will be found by info.
--libdir=/opt/texlive/2016/texmf-dist;
:
This parameter ensures that the asymptote
directory will similarly overwrite any
files installed by install-tl-unx.
--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.
Last updated on 2017-02-16 20:33:09 -0800