glfs/general/prog/nasm.xml
2024-01-19 22:39:35 +01:00

181 lines
4.9 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY nasm-download-http "https://www.nasm.us/pub/nasm/releasebuilds/&nasm-version;/nasm-&nasm-version;.tar.xz">
<!ENTITY nasm-download-ftp " ">
<!ENTITY nasm-md5sum "d755ba0d16f94616c2907f8cab7c748b">
<!ENTITY nasm-size "993.8 KB">
<!ENTITY nasm-buildsize "41 MB" >
<!ENTITY nasm-time "0.2 SBU">
]>
<sect1 id="nasm" xreflabel="NASM-&nasm-version;">
<?dbhtml filename="nasm.html" ?>
<title>NASM-&nasm-version;</title>
<indexterm zone="nasm">
<primary sortas="a-NASM">NASM</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to NASM</title>
<para>
<application>NASM</application> (Netwide Assembler) is an 80x86
assembler designed for portability and modularity. It includes a
disassembler as well.
</para>
&lfs120_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&nasm-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&nasm-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &nasm-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &nasm-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &nasm-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &nasm-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Optional documentation: <ulink
url="https://www.nasm.us/pub/nasm/releasebuilds/&nasm-version;/nasm-&nasm-version;-xdoc.tar.xz"/>
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">NASM Dependencies</bridgehead>
<bridgehead renderas="sect4">Optional (for generating documentation):</bridgehead>
<para role="optional">
<xref linkend="asciidoc"/> and
<xref linkend="xmlto"/>
</para>
</sect2>
<sect2 role="installation">
<title>Installation of NASM</title>
<para>
If you downloaded the optional documentation, put it into the
source tree:
</para>
<screen><userinput>tar -xf ../nasm-&nasm-version;-xdoc.tar.xz --strip-components=1</userinput></screen>
<para>
Install <application>NASM</application> by running
the following commands:
</para>
<screen><userinput>./configure --prefix=/usr &amp;&amp;
make</userinput></screen>
<para>
This package does not come with a test suite.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<!-- dev note: make INSTALLROOT=<DESTDIR> install -->
<screen role="root"><userinput>make install</userinput></screen>
<para>
If you downloaded the optional documentation, install it with the
following instructions as the <systemitem
class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>install -m755 -d /usr/share/doc/nasm-&nasm-version;/html &amp;&amp;
cp -v doc/html/*.html /usr/share/doc/nasm-&nasm-version;/html &amp;&amp;
cp -v doc/*.{txt,ps,pdf} /usr/share/doc/nasm-&nasm-version;</userinput></screen>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directory</segtitle>
<seglistitem>
<seg>nasm and ndisasm</seg>
<seg>None</seg>
<seg>/usr/share/doc/nasm-&nasm-version;</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="nasm-prog">
<term><command>nasm</command></term>
<listitem>
<para>
is a portable 80x86 assembler
</para>
<indexterm zone="nasm nasm-prog">
<primary sortas="b-nasm">nasm</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="ndisasm">
<term><command>ndisasm</command></term>
<listitem>
<para>
is an 80x86 binary file disassembler
</para>
<indexterm zone="nasm ndisasm">
<primary sortas="b-ndisasm">ndisasm</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>