source: general/genlib/nspr.xml@ db32c4c

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since db32c4c was db32c4c, checked in by Andrew Benton <andy@…>, 12 years ago

nspr-4.9.1

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10277 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.0 KB
Line 
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 nspr-download-http
8 "http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v&nspr-version;/src/nspr-&nspr-version;.tar.gz">
9 <!ENTITY nspr-download-ftp
10 "ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v&nspr-version;/src/nspr-&nspr-version;.tar.gz">
11 <!ENTITY nspr-md5sum "d36d7b65a38f5b43ebd50ad3ad227120">
12 <!ENTITY nspr-size "1.2 MB">
13 <!ENTITY nspr-buildsize "15 MB">
14 <!ENTITY nspr-time "less than 0.1 SBU">
15]>
16
17<sect1 id="nspr" xreflabel="NSPR-&nspr-version;">
18 <?dbhtml filename="nspr.html"?>
19
20 <sect1info>
21 <othername>$LastChangedBy$</othername>
22 <date>$Date$</date>
23 </sect1info>
24
25 <title>NSPR-&nspr-version;</title>
26
27 <indexterm zone="nspr">
28 <primary sortas="a-NSPR">Netscape Portable Runtime</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to NSPR</title>
33
34 <para>
35 <application>Netscape Portable Runtime</application> (NSPR) provides a
36 platform-neutral API for system level and libc like functions.
37 </para>
38
39 &lfs71_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&nspr-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download (FTP): <ulink url="&nspr-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download MD5 sum: &nspr-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download size: &nspr-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &nspr-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &nspr-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74
75 <para condition="html" role="usernotes">
76 User Notes: <ulink url="&blfs-wiki;/nspr"/>
77 </para>
78 </sect2>
79
80 <sect2 role="installation">
81 <title>Installation of NSPR</title>
82
83 <para>
84 Install <application>NSPR</application> by running the following commands:
85 </para>
86
87<screen><userinput>cd mozilla/nsprpub &amp;&amp;
88sed -ri 's#^(RELEASE_BINS =).*#\1#' pr/src/misc/Makefile.in &amp;&amp;
89sed -i 's#$(LIBRARY) ##' config/rules.mk &amp;&amp;
90./configure --prefix=/usr --with-mozilla --with-pthreads \
91 $([ $(uname -m) = x86_64 ] &amp;&amp; echo --enable-64bit) &amp;&amp;
92make</userinput></screen>
93
94 <para>
95 This package does not come with a test suite.
96 </para>
97
98 <para>
99 Now, as the <systemitem class="username">root</systemitem> user:
100 </para>
101
102<screen role="root"><userinput>make install &amp;&amp;
103cat &gt; /usr/lib/pkgconfig/nspr.pc &lt;&lt; "HERE_DOC"
104prefix=/usr
105exec_prefix=${prefix}
106libdir=${exec_prefix}/lib
107includedir=${prefix}/include/nspr
108
109Name: NSPR
110Description: The Netscape Portable Runtime
111Version: &nspr-version;.0
112Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 -lpthread
113Cflags: -I${includedir}
114HERE_DOC</userinput></screen>
115 </sect2>
116
117 <sect2 role="commands">
118 <title>Command Explanations</title>
119
120 <para>
121 <parameter>--with-mozilla</parameter>: This parameter adds Mozilla support
122 to the libraries (required if you want to build any other Mozilla products
123 and link them to these libraries).
124 </para>
125
126 <para>
127 <parameter>--with-pthreads</parameter>: This parameter forces use of the
128 system pthreads library.
129 </para>
130
131 <para>
132 <parameter>$([ $(uname -m) = x86_64 ] &amp;&amp; echo
133 --enable-64bit)</parameter>: The --enable-64bit option is
134 <emphasis>required</emphasis> on an x86_64 system to prevent
135 <command>configure</command> failing with a claim that this is a system
136 without pthread support. The [ $(uname -m) = x86_64 ] test ensures it has
137 no effect on a 32 bit system.
138 </para>
139
140 <para>
141 <command>sed -ri 's#^(RELEASE_BINS =).*#\1#'
142 pr/src/misc/Makefile.in</command>: This disables installing two unneeded
143 scripts.
144 </para>
145
146 <para>
147 <command>sed -i 's#$(LIBRARY) ##' config/rules.mk</command>: This disables
148 installing the static libraries.
149 </para>
150
151 <para>
152 <command>cat &gt; /usr/lib/pkgconfig/nspr.pc ...</command>: This creates a
153 pkg-config file to help other programs find the nspr libraries.
154 </para>
155
156 </sect2>
157
158 <sect2 role="content">
159 <title>Contents</title>
160
161 <segmentedlist>
162 <segtitle>Installed Programs</segtitle>
163 <segtitle>Installed Libraries</segtitle>
164 <segtitle>Installed Directories</segtitle>
165
166 <seglistitem>
167 <seg>nspr-config</seg>
168 <seg>libnspr4.so, libplc4.so, and libplds4.so</seg>
169 <seg>/usr/include/nspr</seg>
170 </seglistitem>
171 </segmentedlist>
172
173 <variablelist>
174 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
175 <?dbfo list-presentation="list"?>
176 <?dbhtml list-presentation="table"?>
177
178 <varlistentry id="nspr-config">
179 <term><command>nspr-config</command></term>
180 <listitem>
181 <para>
182 provides compiler and linker options to other packages that use
183 <application>NSPR</application>.
184 </para>
185 <indexterm zone="nspr nspr-config">
186 <primary sortas="b-nspr-config">nspr-config</primary>
187 </indexterm>
188 </listitem>
189 </varlistentry>
190
191 <varlistentry id="libnspr4">
192 <term><filename class='libraryfile'>libnspr4.so</filename></term>
193 <listitem>
194 <para>
195 contains functions that provide platform independence for non-GUI
196 operating system facilities such as threads, thread synchronization,
197 normal file and network I/O, interval timing and calendar time,
198 basic memory management and shared library linking.
199 </para>
200 <indexterm zone="nspr libnspr4">
201 <primary sortas="c-libnspr4">libnspr4.so</primary>
202 </indexterm>
203 </listitem>
204 </varlistentry>
205
206 <varlistentry id="libplc4">
207 <term><filename class='libraryfile'>libplc4.so</filename></term>
208 <listitem>
209 <para>
210 contains functions that implement many of the features offered by
211 libnspr4
212 </para>
213 <indexterm zone="nspr libplc4">
214 <primary sortas="c-libplc4">libplc4.so</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="libplds4">
220 <term><filename class='libraryfile'>libplds4.so</filename></term>
221 <listitem>
222 <para>
223 contains functions that provide data structures.
224 </para>
225 <indexterm zone="nspr libplds4">
226 <primary sortas="c-libplds4">libplds4.so</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
230 </variablelist>
231 </sect2>
232</sect1>
Note: See TracBrowser for help on using the repository browser.