glfs/x/lib/glew.xml
2022-08-25 21:47:44 -05:00

200 lines
5.3 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 glew-download-http "https://downloads.sourceforge.net/glew/glew-&glew-version;.tgz">
<!ENTITY glew-download-ftp " ">
<!ENTITY glew-md5sum "3579164bccaef09e36c0af7f4fd5c7c7">
<!ENTITY glew-size "820 KB">
<!ENTITY glew-buildsize "16 MB">
<!ENTITY glew-time "less than 0.1 SBU">
]>
<sect1 id="glew" xreflabel="GLEW-&glew-version;">
<?dbhtml filename="glew.html"?>
<sect1info>
<date>$Date$</date>
</sect1info>
<title>GLEW-&glew-version;</title>
<indexterm zone="glew">
<primary sortas="a-GLEW">GLEW</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to GLEW</title>
<para>
<application>GLEW</application> is the OpenGL Extension Wrangler Library.
</para>
&lfs112_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&glew-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&glew-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &glew-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &glew-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &glew-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &glew-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">glew Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="mesa"/>
</para>
<para condition="html" role="usernotes">
User Notes: <ulink url="&blfs-wiki;/GLEW"/>
</para>
</sect2>
<!--Required section-->
<sect2 role="installation">
<title>Installation of GLEW</title>
<para>
Install <application>GLEW</application> by running the following
commands:
</para>
<screen><userinput>sed -i 's%lib64%lib%g' config/Makefile.linux &amp;&amp;
sed -i -e '/glew.lib.static:/d' \
-e '/0644 .*STATIC/d' \
-e 's/glew.lib.static//' Makefile &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.all</userinput></screen>
</sect2>
<!--Optional section-->
<sect2 role="commands">
<title>Command Explanations</title>
<para>
<command>sed -i 's%lib64%lib%g' ...</command>: This ensures that the
library is installed in <filename class="directory">/usr/lib</filename>.
</para>
<para>
<command>sed -i -e '/glew.lib.static:/d' ...</command>: This suppresses
the static library.
</para>
<para>
<command>make install.all</command>: This installs the programs as well as
the library.
</para>
</sect2>
<!--Required section-->
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Library</segtitle>
<segtitle>Installed Directory</segtitle>
<seglistitem>
<seg>
glewinfo and visualinfo
</seg>
<seg>
libGLEW.so
</seg>
<seg>
/usr/include/GL
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<!-- If the program or library name conflicts (is the same) as the
package name, add -prog or -lib to the varlistentry entity id
and the 2nd entry of the indexterm zone entity -->
<varlistentry id="glewinfo">
<term><command>glewinfo</command></term>
<listitem>
<para>
provides information about the supported extensions
</para>
<indexterm zone="glew glewinfo">
<primary sortas="b-glewinfo">glewinfo</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="visualinfo">
<term><command>visualinfo</command></term>
<listitem>
<para>
is an extended version of glxinfo
</para>
<indexterm zone="glew visualinfo">
<primary sortas="b-visualinfo">visualinfo</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libGLEW.so">
<term><filename class="libraryfile">libGLEW.so</filename></term>
<listitem>
<para>
provides functions to access OpenGL extensions
</para>
<indexterm zone="glew libGLEW.so">
<primary sortas="c-libGLEW.so">libGLEW.so</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>