1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY asymptote-download-http "&sourceforge-dl;/asymptote/asymptote-&asymptote-version;.src.tgz">
|
---|
8 | <!ENTITY asymptote-download-ftp " ">
|
---|
9 | <!ENTITY asymptote-md5sum "cbba3fe866982ed1dd60b903f632a04c">
|
---|
10 | <!ENTITY asymptote-size "15 MB">
|
---|
11 | <!ENTITY asymptote-buildsize "218 MB (54 MB installed, with all the dependencies which are in BLFS)">
|
---|
12 | <!-- with 2.68 the j1 time was 2.5 SBU, slow enough to use a parallel build -->
|
---|
13 | <!ENTITY asymptote-time "1.3 SBU (using parallelism=4)">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="asymptote" xreflabel="asymptote-&asymptote-version;">
|
---|
17 | <?dbhtml filename="asymptote.html"?>
|
---|
18 |
|
---|
19 |
|
---|
20 | <title>asymptote-&asymptote-version;</title>
|
---|
21 |
|
---|
22 | <indexterm zone="asymptote">
|
---|
23 | <primary sortas="a-asymptote">asymptote</primary>
|
---|
24 | </indexterm>
|
---|
25 |
|
---|
26 | <sect2 role="package">
|
---|
27 | <title>Introduction to asymptote</title>
|
---|
28 |
|
---|
29 | <para>
|
---|
30 | <application>Asymptote</application> is a powerful descriptive vector
|
---|
31 | graphics language that provides a natural coordinate-based framework for
|
---|
32 | technical drawing. Labels and equations can be typeset with LaTeX. As
|
---|
33 | well as EPS, PDF and PNG output it can produce WebGL 3D HTML rendering
|
---|
34 | and (using <application>dvisvgm</application>) SVG output.
|
---|
35 | </para>
|
---|
36 |
|
---|
37 | &lfs120_checked;
|
---|
38 |
|
---|
39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
40 | <itemizedlist spacing="compact">
|
---|
41 | <listitem>
|
---|
42 | <para>
|
---|
43 | Download (HTTP): <ulink url="&asymptote-download-http;"/>
|
---|
44 | </para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download (FTP): <ulink url="&asymptote-download-ftp;"/>
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download MD5 sum: &asymptote-md5sum;
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Download size: &asymptote-size;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Estimated disk space required: &asymptote-buildsize;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | <listitem>
|
---|
67 | <para>
|
---|
68 | Estimated build time: &asymptote-time;
|
---|
69 | </para>
|
---|
70 | </listitem>
|
---|
71 | </itemizedlist>
|
---|
72 |
|
---|
73 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
74 | <itemizedlist spacing="compact">
|
---|
75 | <listitem>
|
---|
76 | <para>
|
---|
77 | Required patch:
|
---|
78 | <ulink url="&patch-root;/asymptote-&asymptote-version;-build_fix-1.patch"/>
|
---|
79 | </para>
|
---|
80 | </listitem>
|
---|
81 | </itemizedlist>
|
---|
82 |
|
---|
83 | <bridgehead renderas="sect3">asymptote Dependencies</bridgehead>
|
---|
84 |
|
---|
85 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
86 | <para role="required">
|
---|
87 | <xref linkend="gs"/> and
|
---|
88 | <xref linkend="texlive"/>
|
---|
89 | </para>
|
---|
90 |
|
---|
91 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
92 | <para role="recommended">
|
---|
93 | <xref linkend="curl"/>,
|
---|
94 | <xref linkend="freeglut"/>,
|
---|
95 | <xref linkend="gc"/>,
|
---|
96 | <xref linkend="glew"/>,
|
---|
97 | <xref linkend="glm"/> and
|
---|
98 | <xref linkend="libtirpc"/>
|
---|
99 | </para>
|
---|
100 |
|
---|
101 | <bridgehead renderas="sect4">Recommended at runtime</bridgehead>
|
---|
102 | <para role="recommended">
|
---|
103 | <xref role="runtime" linkend="dvisvgm"/> to allow svg output
|
---|
104 | </para>
|
---|
105 |
|
---|
106 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
107 | <para role="optional">
|
---|
108 | <xref linkend="fftw"/>,
|
---|
109 | <xref linkend="gsl"/>,
|
---|
110 | <xref linkend="libsigsegv"/>,
|
---|
111 | both <xref linkend="boost"/> and
|
---|
112 | <ulink url="https://github.com/Tencent/rapidjson/releases/">rapidjson</ulink>
|
---|
113 | to use
|
---|
114 | <ulink url="https://microsoft.github.io/language-server-protocol/implementors/tools/">LSP</ulink>
|
---|
115 | which can be used with
|
---|
116 | <ulink url="https://asymptote.sourceforge.io/doc/Language-server-protocol.html#index-LSP/">emacs</ulink>,
|
---|
117 | and <ulink url="https://eigen.tuxfamily.org/">eigen</ulink>
|
---|
118 | </para>
|
---|
119 |
|
---|
120 | <bridgehead renderas="sect4">Optional (at runtime)</bridgehead>
|
---|
121 | <para role="optional">
|
---|
122 | <xref linkend="imagemagick"/> to convert output to other formats such as
|
---|
123 | JPEG or to create animated GIFs,
|
---|
124 | <ulink url="https://pypi.org/project/PyQt5/">PyQt5</ulink> (not tested,
|
---|
125 | has a build dependency of &qt5-deps;) to use xasy.
|
---|
126 | </para>
|
---|
127 |
|
---|
128 | <para condition="html" role="usernotes">
|
---|
129 | Editor Notes: <ulink url="&blfs-wiki;/asymptote"/>
|
---|
130 | </para>
|
---|
131 | </sect2>
|
---|
132 |
|
---|
133 | <sect2 role="installation">
|
---|
134 | <title>Installation of asymptote</title>
|
---|
135 |
|
---|
136 | <note>
|
---|
137 | <!-- This is specifically about my cylinder test - it has been
|
---|
138 | broken twice, one time the fix involved changing the script,
|
---|
139 | the second was blamed on the low-end hardware (radeon 3400G).
|
---|
140 | I don't use, or understand the commands of, asy so I will not
|
---|
141 | spend time bisecting it. Ken -->
|
---|
142 | <para>
|
---|
143 | Certain 3D PDF scripts may not work when invoked from pdflatex
|
---|
144 | on some zen+ amdgpu APU machines.
|
---|
145 | </para>
|
---|
146 | </note>
|
---|
147 |
|
---|
148 | <!-- Editors: for testing this, the minimal latex functionality is
|
---|
149 | covered by the cylinder and triangle tests in
|
---|
150 | https://www.linuxfromscratch.org/~ken/tex-testfiles/latex-test-20220322.tar.xz
|
---|
151 | but the more interesting stuff (WebM html, svg, png, pdf) is tested in
|
---|
152 | https://www.linuxfromscratch.org/~ken/asy-nontex-testfiles/asy-test-20200809.tar.xz
|
---|
153 | -->
|
---|
154 | <para>
|
---|
155 | First apply a patch to fix building without the Language Server Protocol :
|
---|
156 | </para>
|
---|
157 |
|
---|
158 | <screen><userinput>patch -Np1 -i ../asymptote-&asymptote-version;-build_fix-1.patch</userinput></screen>
|
---|
159 |
|
---|
160 | <para>
|
---|
161 | Install <application>asymptote</application> by running the following
|
---|
162 | commands:
|
---|
163 | </para>
|
---|
164 |
|
---|
165 | <screen><userinput>export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &&
|
---|
166 |
|
---|
167 | ./configure --prefix=$TEXLIVE_PREFIX \
|
---|
168 | --bindir=$TEXLIVE_PREFIX/bin/$TEXARCH \
|
---|
169 | --datarootdir=$TEXLIVE_PREFIX/texmf-dist \
|
---|
170 | --infodir=$TEXLIVE_PREFIX/texmf-dist/doc/info \
|
---|
171 | --libdir=$TEXLIVE_PREFIX/texmf-dist \
|
---|
172 | --mandir=$TEXLIVE_PREFIX/texmf-dist/doc/man \
|
---|
173 | --disable-lsp \
|
---|
174 | --enable-gc=system \
|
---|
175 | --with-latex=$TEXLIVE_PREFIX/texmf-dist/tex/latex \
|
---|
176 | --with-context=$TEXLIVE_PREFIX/texmf-dist/tex/context/third &&
|
---|
177 |
|
---|
178 | make</userinput></screen>
|
---|
179 |
|
---|
180 | <para>
|
---|
181 | To test the results, issue: <command>make check</command>.
|
---|
182 | </para>
|
---|
183 |
|
---|
184 | <para>
|
---|
185 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
186 | </para>
|
---|
187 |
|
---|
188 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
189 |
|
---|
190 | </sect2>
|
---|
191 |
|
---|
192 | <sect2 role="commands">
|
---|
193 | <title>Command Explanations</title>
|
---|
194 |
|
---|
195 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
196 | href="../../xincludes/tex-prefix.xml"/>
|
---|
197 |
|
---|
198 | <para>
|
---|
199 | <parameter>--libdir=$TEXLIVE_PREFIX/texmf-dist;</parameter>:
|
---|
200 | This parameter ensures that the <filename
|
---|
201 | class="directory">asymptote</filename> directory will similarly
|
---|
202 | overwrite any files installed by install-tl-unx.
|
---|
203 | </para>
|
---|
204 |
|
---|
205 | <para>
|
---|
206 | <parameter>--disable-lsp</parameter>: The Language Server Protocol is
|
---|
207 | enabled by default, with several third-party sources included, but it
|
---|
208 | does not build unless boost and repidjson have been installed.
|
---|
209 | </para>
|
---|
210 |
|
---|
211 | <para>
|
---|
212 | <parameter>--enable-gc=system</parameter>: this ensures that the system
|
---|
213 | version of <filename class="libraryfile">libgc.so</filename> will be used
|
---|
214 | instead of the version shipped with this package.
|
---|
215 | </para>
|
---|
216 |
|
---|
217 | <para>
|
---|
218 | <parameter>--with-latex= ... --with-context=</parameter>: These switches
|
---|
219 | ensure that style files and a tex file will be installed into the
|
---|
220 | <application>texlive</application> directories instead of creating a
|
---|
221 | <filename class="directory">texmf-local</filename> directory for them.
|
---|
222 | </para>
|
---|
223 |
|
---|
224 | <!-- commenting for now: 2.44 installs asymptote.info in both places
|
---|
225 | so the old version no longer remains
|
---|
226 |
|
---|
227 | <para>
|
---|
228 | <command>rm -fv /opt/texlive/.../asymptote.info</command>:
|
---|
229 | This deletes the file installed by <application>texlive</application>.
|
---|
230 | Exceptionally, asymptote will create an <filename
|
---|
231 | class="directory">asymptote/</filename> subdirectory for its own
|
---|
232 | <filename>asymptote.info</filename> even though a possibly older
|
---|
233 | version from <xref linkend="texlive"/> is in the main
|
---|
234 | <application>texlive</application>
|
---|
235 | <filename class="directory">info/</filename> directory. Both the
|
---|
236 | new version and the existing <filename>asy-faq.info</filename>
|
---|
237 | <emphasis>will</emphasis> be found by <command>info</command>.
|
---|
238 | </para>-->
|
---|
239 |
|
---|
240 | </sect2>
|
---|
241 |
|
---|
242 | <sect2 role="content">
|
---|
243 | <title>Contents</title>
|
---|
244 |
|
---|
245 | <segmentedlist>
|
---|
246 | <segtitle>Installed Programs</segtitle>
|
---|
247 | <segtitle>Installed Libraries</segtitle>
|
---|
248 | <segtitle>Installed Directory</segtitle>
|
---|
249 |
|
---|
250 | <seglistitem>
|
---|
251 | <seg>
|
---|
252 | asy, xasy
|
---|
253 | </seg>
|
---|
254 | <seg>
|
---|
255 | None
|
---|
256 | </seg>
|
---|
257 | <seg>
|
---|
258 | $TEXLIVE_PREFIX/texmf-dist/asymptote,
|
---|
259 | $TEXLIVE_PREFIX/doc/asymptote,
|
---|
260 | $TEXLIVE_PREFIX/info/asymptote
|
---|
261 | </seg>
|
---|
262 | </seglistitem>
|
---|
263 | </segmentedlist>
|
---|
264 |
|
---|
265 | <variablelist>
|
---|
266 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
267 | <?dbfo list-presentation="list"?>
|
---|
268 | <?dbhtml list-presentation="table"?>
|
---|
269 |
|
---|
270 | <varlistentry id="asy">
|
---|
271 | <term><command>asy</command></term>
|
---|
272 | <listitem>
|
---|
273 | <para>
|
---|
274 | is a vector graphics program
|
---|
275 | </para>
|
---|
276 | <indexterm zone="asymptote asy">
|
---|
277 | <primary sortas="b-asy">asy</primary>
|
---|
278 | </indexterm>
|
---|
279 | </listitem>
|
---|
280 | </varlistentry>
|
---|
281 |
|
---|
282 | <varlistentry id="xasy">
|
---|
283 | <term><command>xasy</command></term>
|
---|
284 | <listitem>
|
---|
285 | <para>
|
---|
286 | is a Python3 script providing a Qt5 GUI for asy
|
---|
287 | </para>
|
---|
288 | <indexterm zone="asymptote xasy">
|
---|
289 | <primary sortas="b-xasy">xasy</primary>
|
---|
290 | </indexterm>
|
---|
291 | </listitem>
|
---|
292 | </varlistentry>
|
---|
293 |
|
---|
294 | </variablelist>
|
---|
295 |
|
---|
296 | </sect2>
|
---|
297 |
|
---|
298 | </sect1>
|
---|