glfs/general/prog/nasm.xml
Bruce Dubbs 61b9fa2d52 Touch up nasm docs extraction
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10669 af4574ff-66df-0310-9fd7-8a98e5e911e0
2012-09-15 19:31:38 +00:00

234 lines
7.7 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!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 "http://www.nasm.us/pub/nasm/releasebuilds/&NASM-version;/nasm-&NASM-version;.tar.xz">
<!ENTITY NASM-download-ftp " ">
<!ENTITY NASM-md5sum "0a676909137bddfeebff09a9381cceb2">
<!ENTITY NASM-size "668 KB">
<!ENTITY NASM-buildsize "16 MB" >
<!ENTITY NASM-time "0.1 SBU">
]>
<sect1 id="NASM" xreflabel="NASM-&NASM-version;">
<?dbhtml filename="NASM.html" ?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<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>
&lfs72_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="http://www.nasm.us/pub/nasm/releasebuilds/&NASM-version;/nasm-&NASM-version;-xdoc.tar.xz"/></para>
</listitem>
</itemizedlist>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/nasm"/></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>
<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; &amp;&amp;
cp -v doc/info/* /usr/share/info &amp;&amp;
pushd /usr/share/info &amp;&amp;
install-info nasm.info dir &amp;&amp;
popd</userinput></screen>
<!-- install_rdf &amp;&amp;
install -v -m755 -d /usr/share/doc/nasm-&NASM-version;/html &amp;&amp;
install -v -m644 rdoff/doc/rdoff/* \
/usr/share/doc/nasm-&NASM-version;/html &amp;&amp;
install -v -m644 rdoff/doc/{*.txt,rdoff.html} \
/usr/share/doc/nasm-&NASM-version; &amp;&amp;
install -v -m644 rdoff/doc/rdoff.info* \
/usr/share/info &amp;&amp;
pushd /usr/share/info &amp;&amp;
rm -fv dir &amp;&amp;
for FILENAME in *; do install-info $FILENAME dir; done &amp;&amp;
unset FILENAME &amp;&amp;
popd</userinput></screen>
<para>If you built the <application>Ghostscript</application> generated
documentation, install it using the following commands as the
<systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>sed -i 's|doc/nasm|share/doc/nasm-&NASM-version;|' doc/Makefile &amp;&amp;
make install_doc &amp;&amp;
pushd /usr/share/info &amp;&amp;
rm -fv dir &amp;&amp;
for FILENAME in *; do install-info $FILENAME dir; done &amp;&amp;
unset FILENAME &amp;&amp;
popd</userinput></screen>
<para>Lastly, if you built the RDOFF PDF and Postscript documentation,
install it using the following command as the
<systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>install -v -m644 rdoff/doc/rdoff.p{df,s} \
/usr/share/doc/nasm-&NASM-version;</userinput></screen>
-->
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>nasm and ndisasm</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>
<!--
<varlistentry id="ldrdf">
<term><command>ldrdf</command></term>
<listitem>
<para>is an RDOFF linker.</para>
<indexterm zone="NASM ldrdf">
<primary sortas="b-ldrdf">ldrdf</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="rdf2bin">
<term><command>rdf2bin</command></term>
<listitem>
<para>converts an RDOFF object file to flat binary.</para>
<indexterm zone="NASM rdf2bin">
<primary sortas="b-rdf2bin">rdf2bin</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="rdfdump">
<term><command>rdfdump</command></term>
<listitem>
<para>dumps the contents of an RDOFF file.</para>
<indexterm zone="NASM rdfdump">
<primary sortas="b-rdfdump">rdfdump</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="rdflib">
<term><command>rdflib</command></term>
<listitem>
<para>is an RDOFF librarian.</para>
<indexterm zone="NASM rdflib">
<primary sortas="b-rdflib">rdflib</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="rdx">
<term><command>rdx</command></term>
<listitem>
<para>is used to load and execute an RDOFF module.</para>
<indexterm zone="NASM rdx">
<primary sortas="b-rdx">rdx</primary>
</indexterm>
</listitem>
</varlistentry> -->
</variablelist>
</sect2>
</sect1>