NSPR

From CBLFS
Revision as of 06:58, 24 December 2008 by Jciccone (talk | contribs)
Jump to navigationJump to search
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"