Difference between revisions of "NSPR"

From CBLFS
Jump to navigationJump to search
Line 26: Line 26:
 
  ../mozilla/nsprpub/configure --prefix=/usr \
 
  ../mozilla/nsprpub/configure --prefix=/usr \
 
     --infodir=/usr/share/info \
 
     --infodir=/usr/share/info \
     --mandir=/usr/share/man &&
+
     --mandir=/usr/share/man \
 +
    --enable-ipv6 --enable-system-sqlite &&
 
  make
 
  make
  
Line 62: Line 63:
 
  ../mozilla/nsprpub/configure --prefix=/usr \
 
  ../mozilla/nsprpub/configure --prefix=/usr \
 
     --infodir=/usr/share/info \
 
     --infodir=/usr/share/info \
     --mandir=/usr/share/man &&
+
     --mandir=/usr/share/man \
 +
    --enable-ipv6 --enable-system-sqlite &&
 
  make
 
  make
  
 
Install the package
 
Install the package
  
  make install
+
  make install &&
 +
mv -v /usr/bin/nspr-config{,-32}
  
 
Create the pkg-config file:
 
Create the pkg-config file:
Line 96: Line 99:
 
  ../mozilla/nsprpub/configure --prefix=/usr \
 
  ../mozilla/nsprpub/configure --prefix=/usr \
 
     --infodir=/usr/share/info --libdir=/usr/lib32 \
 
     --infodir=/usr/share/info --libdir=/usr/lib32 \
     --mandir=/usr/share/man --enable-n32 &&
+
     --mandir=/usr/share/man --enable-n32 \
 +
    --enable-ipv6 --enable-system-sqlite &&
 
  make
 
  make
  
 
Install the package
 
Install the package
  
  make install
+
  make install &&
 +
mv -v /usr/bin/nspr-config{,-n32}
  
 
Create the pkg-config file:
 
Create the pkg-config file:
Line 130: Line 135:
 
  ../mozilla/nsprpub/configure --prefix=/usr \
 
  ../mozilla/nsprpub/configure --prefix=/usr \
 
     --infodir=/usr/share/info --libdir=/usr/lib64 \
 
     --infodir=/usr/share/info --libdir=/usr/lib64 \
     --mandir=/usr/share/man --enable-64bit &&
+
     --mandir=/usr/share/man --enable-64bit \
 +
    --enable-ipv6 --enable-system-sqlite &&
 
  make
 
  make
  
 
Install the package
 
Install the package
  
  make install
+
  make install &&
 +
mv -v /usr/bin/nspr-config{,-64} &&
 +
ln -sfv multiarch_wrapper /usr/bin/nspr-config
  
 
Create the pkg-config file:
 
Create the pkg-config file:
Line 151: Line 159:
 
  Cflags: -I${includedir}
 
  Cflags: -I${includedir}
 
  EOF
 
  EOF
 
= Contents =
 
 
{| style="text-align: left;"
 
|-
 
! Installed Programs:
 
| ???
 
|-
 
! Installed Libraries:
 
| ???
 
|-
 
! Installed Directory:
 
| ???
 
|}
 
  
 
[[Category:Security]]
 
[[Category:Security]]

Revision as of 06:58, 24 December 2008

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

Introduction to NSPR

Project Homepage: Unknown

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 \
    --enable-ipv6 --enable-system-sqlite &&
make

Install the package

make install

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.9.4
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 \
    --enable-ipv6 --enable-system-sqlite &&
make

Install the package

make install &&
mv -v /usr/bin/nspr-config{,-32}

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.9.4
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 \
    --enable-ipv6 --enable-system-sqlite &&
make

Install the package

make install &&
mv -v /usr/bin/nspr-config{,-n32}

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.9.4
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 \
    --enable-ipv6 --enable-system-sqlite &&
make

Install the package

make install &&
mv -v /usr/bin/nspr-config{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/nspr-config

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.9.4
Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 -lpthread -ldl -Wl,-R${libdir}
Cflags: -I${includedir}
EOF
Retrieved from "?title=NSPR&oldid=16347"