<?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        "2b958e9f5d200641e6fc9564977aecc5">
  <!ENTITY nasm-size          "748 KB">
  <!ENTITY nasm-buildsize     "19 MB (additional 8 MB for the documentation)" >
  <!ENTITY nasm-time          "0.1 SBU">
]>

<sect1 id="nasm" xreflabel="NASM-&nasm-version;">
  <?dbhtml filename="nasm.html" ?>

  <sect1info>
    <othername>$LastChangedBy: bdubbs $</othername>
    <date>$Date: 2015-02-20 22:16:55 -0500 (Fri, 20 Feb 2015) $</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>

    &lfs77_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>

<!-- 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;       &amp;&amp;
cp -v doc/info/*         /usr/share/info                   &amp;&amp;
install-info /usr/share/info/nasm.info /usr/share/info/dir</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>
