Difference between revisions of "NSPR"

From CBLFS
Jump to navigationJump to search
(Non-Multilib)
(I added sections for the description and the contents of the package.)
Line 6: Line 6:
  
 
----
 
----
 +
 +
== Introduction to NSPR ==
 +
 +
<Package Description Needed>
  
 
== Dependencies ==
 
== Dependencies ==
Line 170: Line 174:
 
  Cflags: -I${includedir}
 
  Cflags: -I${includedir}
 
  EOF
 
  EOF
 +
 +
= Contents =
 +
 +
{| style="text-align: left;"
 +
|-
 +
! Installed Programs:
 +
| ???
 +
|-
 +
! Installed Libraries:
 +
| ???
 +
|-
 +
! Installed Directory:
 +
| ???
 +
|}
 +
 +
=== Short Descriptions ===
 +
 +
{| style="text-align: left;"
 +
|-
 +
! program1
 +
| ???
 +
|-
 +
! program2
 +
| ???
 +
|}

Revision as of 17:17, 7 December 2006

Download Source: http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.6.3/src/nspr-4.6.3.tar.gz

Introduction to NSPR

<Package Description Needed>

Dependencies

Non-Multilib

Create a build directory:

mkdir -v build &&
cd build

If building on pure64 (x86_64 at least perhaps others) add this to the configure line below:

--enable-64bit

Compile the package:

../mozilla/nsprpub/configure --prefix=/usr \
    --infodir=/usr/share/info \
    --mandir=/usr/share/man &&
make

Install the package

make install &&
install -v -m755 config/nspr-config /usr/bin &&
install -v -d /usr/include/nspr &&
install -v -m755 dist/lib/*.so /usr/lib &&
install -v -m644 dist/lib/*.a /usr/lib &&
cp -RL dist/include/nspr/* /usr/include/nspr/

Create the pkg-config file:

cat > /usr/lib/pkgconfig/nspr.pc << "EOF"
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include/nspr

Name: NSPR
Description: The Netscape Portable Runtime
Version: 4.6.3
Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 -lpthread -ldl -Wl,-R${libdir}
Cflags: -I${includedir}
EOF

Multilib

32Bit

Create a build directory:

mkdir -v build &&
cd build

Compile the package:

CC="gcc ${BUILD32}" \
../mozilla/nsprpub/configure --prefix=/usr \
    --infodir=/usr/share/info \
    --mandir=/usr/share/man &&
make

Install the package

make install &&
install -v -m755 config/nspr-config /usr/bin/nspr-config-32 &&
install -v -d /usr/include/nspr &&
install -v -m755 dist/lib/*.so /usr/lib &&
install -v -m644 dist/lib/*.a /usr/lib &&
cp -RL dist/include/nspr/* /usr/include/nspr/

Create the pkg-config file:

cat > /usr/lib/pkgconfig/nspr.pc << "EOF"
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include/nspr

Name: NSPR
Description: The Netscape Portable Runtime
Version: 4.6.3
Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 -lpthread -ldl -Wl,-R${libdir}
Cflags: -I${includedir}
EOF

N32

Create a build directory:

mkdir -v build &&
cd build

Compile the package:

CC="gcc ${BUILDN32}" \
../mozilla/nsprpub/configure --prefix=/usr \
    --infodir=/usr/share/info --libdir=/usr/lib32 \
    --mandir=/usr/share/man --enable-n32 &&
make

Install the package

make install &&
install -v -m755 config/nspr-config /usr/bin/nspr-config-n32 &&
install -v -d /usr/include/nspr &&
install -v -m755 dist/lib/*.so /usr/lib32 &&
install -v -m644 dist/lib/*.a /usr/lib32 &&
cp -RL dist/include/nspr/* /usr/include/nspr/

Create the pkg-config file:

cat > /usr/lib32/pkgconfig/nspr.pc << "EOF"
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib32
includedir=/usr/include/nspr

Name: NSPR
Description: The Netscape Portable Runtime
Version: 4.6.3
Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 -lpthread -ldl -Wl,-R${libdir}
Cflags: -I${includedir}
EOF

64Bit

Create a build directory:

mkdir -v build &&
cd build

Compile the package:

CC="gcc ${BUILD64}" \
../mozilla/nsprpub/configure --prefix=/usr \
    --infodir=/usr/share/info --libdir=/usr/lib64 \
    --mandir=/usr/share/man --enable-64bit &&
make

Install the package

make install &&
install -v -m755 config/nspr-config /usr/bin/nspr-config-64 &&
ln -sfv multiarch_wrapper /usr/bin/nspr-config &&
install -v -d /usr/include/nspr &&
install -v -m755 dist/lib/*.so /usr/lib64 &&
install -v -m644 dist/lib/*.a /usr/lib64 &&
cp -RL dist/include/nspr/* /usr/include/nspr/

Create the pkg-config file:

cat > /usr/lib64/pkgconfig/nspr.pc << "EOF"
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib64
includedir=/usr/include/nspr

Name: NSPR
Description: The Netscape Portable Runtime
Version: 4.6.3
Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 -lpthread -ldl -Wl,-R${libdir}
Cflags: -I${includedir}
EOF

Contents

Installed Programs: ???
Installed Libraries: ???
Installed Directory: ???

Short Descriptions

program1 ???
program2 ???
Retrieved from "?title=NSPR&oldid=4470"