Difference between revisions of "NSPR"
From CBLFS
Jump to navigationJump to searchLine 25: | Line 25: | ||
../mozilla/nsprpub/configure --prefix=/usr \ | ../mozilla/nsprpub/configure --prefix=/usr \ | ||
− | + | --libdir=/usr/lib/nspr --infodir=/usr/share/info --mandir=/usr/share/man \ | |
− | + | --disable-debug --disable-ipv6 --enable-system-sqlite | |
− | |||
make | make | ||
Install the package | Install the package | ||
− | make install | + | make install && |
+ | chmod 644 /usr/lib/nspr/*.a && | ||
+ | rm -fv /usr/bin/{compile-et.pl,prerr.properties} && | ||
+ | rm -fv /usr/share/aclocal/nspr.m4 && | ||
+ | rm -rfv /usr/include/nspr/md | ||
Create the pkg-config file: | Create the pkg-config file: | ||
cat > /usr/lib/pkgconfig/nspr.pc << "EOF" | cat > /usr/lib/pkgconfig/nspr.pc << "EOF" | ||
− | + | prefix=%prefix% | |
− | + | exec_prefix=%exec_prefix% | |
− | + | libdir=%libdir% | |
− | + | includedir=%includedir% | |
− | + | ||
− | + | Name: NSPR | |
− | + | Description: The Netscape Portable Runtime | |
− | + | Version: %NSPR_VERSION% | |
− | + | Libs: %FULL_NSPR_LIBS% | |
− | + | Cflags: %FULL_NSPR_CFLAGS% | |
EOF | EOF | ||
+ | |||
+ | NSPR_LIBS=$(./config/nspr-config --libs) | ||
+ | NSPR_CFLAGS=$(./config/nspr-config --cflags) | ||
+ | NSPR_VERSION=$(./config/nspr-config --version) | ||
+ | |||
+ | sed -i -e "s,%libdir%,/usr/lib/nspr," \ | ||
+ | -e "s,%prefix%,/usr," \ | ||
+ | -e "s,%exec_prefix%,/usr/bin," \ | ||
+ | -e "s,%includedir%,/usr/include/nspr," \ | ||
+ | -e "s,%NSPR_VERSION%,${NSPR_VERSION}," \ | ||
+ | -e "s,%FULL_NSPR_LIBS%,${NSPR_LIBS}," \ | ||
+ | -e "s,%FULL_NSPR_CFLAGS%,${NSPR_CFLAGS}," /usr/lib/pkgconfig/nspr.pc | ||
+ | |||
+ | chmod 644 /usr/lib/pkgconfig/nspr.pc | ||
+ | ln -sf nspr.pc /usr/lib/pkgconfig/mozilla-nspr.pc | ||
== Multilib == | == Multilib == | ||
Line 62: | Line 80: | ||
CC="gcc ${BUILD32}" \ | CC="gcc ${BUILD32}" \ | ||
../mozilla/nsprpub/configure --prefix=/usr \ | ../mozilla/nsprpub/configure --prefix=/usr \ | ||
− | + | --libdir=/usr/lib/nspr --infodir=/usr/share/info --mandir=/usr/share/man \ | |
− | + | --disable-debug --disable-ipv6 --enable-system-sqlite && | |
− | |||
make | make | ||
Line 70: | Line 87: | ||
make install && | make install && | ||
+ | chmod 644 /usr/lib/nspr/*.a && | ||
+ | rm -fv /usr/bin/{compile-et.pl,prerr.properties} && | ||
+ | rm -fv /usr/share/aclocal/nspr.m4 && | ||
+ | rm -rfv /usr/include/nspr/md && | ||
mv -v /usr/bin/nspr-config{,-32} | mv -v /usr/bin/nspr-config{,-32} | ||
Line 75: | Line 96: | ||
cat > /usr/lib/pkgconfig/nspr.pc << "EOF" | cat > /usr/lib/pkgconfig/nspr.pc << "EOF" | ||
− | + | prefix=%prefix% | |
− | + | exec_prefix=%exec_prefix% | |
− | + | libdir=%libdir% | |
− | + | includedir=%includedir% | |
− | + | ||
− | + | Name: NSPR | |
− | + | Description: The Netscape Portable Runtime | |
− | + | Version: %NSPR_VERSION% | |
− | + | Libs: %FULL_NSPR_LIBS% | |
− | + | Cflags: %FULL_NSPR_CFLAGS% | |
EOF | EOF | ||
+ | |||
+ | NSPR_LIBS=$(./config/nspr-config --libs) | ||
+ | NSPR_CFLAGS=$(./config/nspr-config --cflags) | ||
+ | NSPR_VERSION=$(./config/nspr-config --version) | ||
+ | |||
+ | sed -i -e "s,%libdir%,/usr/lib/nspr," \ | ||
+ | -e "s,%prefix%,/usr," \ | ||
+ | -e "s,%exec_prefix%,/usr/bin," \ | ||
+ | -e "s,%includedir%,/usr/include/nspr," \ | ||
+ | -e "s,%NSPR_VERSION%,${NSPR_VERSION}," \ | ||
+ | -e "s,%FULL_NSPR_LIBS%,${NSPR_LIBS}," \ | ||
+ | -e "s,%FULL_NSPR_CFLAGS%,${NSPR_CFLAGS}," /usr/lib/pkgconfig/nspr.pc | ||
+ | |||
+ | chmod 644 /usr/lib/pkgconfig/nspr.pc | ||
+ | ln -sfv nspr.pc /usr/lib/pkgconfig/mozilla-nspr.pc | ||
=== N32 === | === N32 === | ||
Line 98: | Line 134: | ||
CC="gcc ${BUILDN32}" \ | CC="gcc ${BUILDN32}" \ | ||
../mozilla/nsprpub/configure --prefix=/usr \ | ../mozilla/nsprpub/configure --prefix=/usr \ | ||
− | + | --libdir=/usr/lib32/nspr --infodir=/usr/share/info --mandir=/usr/share/man \ | |
− | + | --disable-debug --disable-ipv6 --enable-system-sqlite && | |
− | |||
make | make | ||
Line 106: | Line 141: | ||
make install && | make install && | ||
+ | chmod 644 /usr/lib32/nspr/*.a && | ||
+ | rm -fv /usr/bin/{compile-et.pl,prerr.properties} && | ||
+ | rm -fv /usr/share/aclocal/nspr.m4 && | ||
+ | rm -rfv /usr/include/nspr/md && | ||
mv -v /usr/bin/nspr-config{,-n32} | mv -v /usr/bin/nspr-config{,-n32} | ||
Line 111: | Line 150: | ||
cat > /usr/lib32/pkgconfig/nspr.pc << "EOF" | cat > /usr/lib32/pkgconfig/nspr.pc << "EOF" | ||
− | + | prefix=%prefix% | |
− | + | exec_prefix=%exec_prefix% | |
− | + | libdir=%libdir% | |
− | + | includedir=%includedir% | |
− | + | ||
− | + | Name: NSPR | |
− | + | Description: The Netscape Portable Runtime | |
− | + | Version: %NSPR_VERSION% | |
− | + | Libs: %FULL_NSPR_LIBS% | |
− | + | Cflags: %FULL_NSPR_CFLAGS% | |
EOF | EOF | ||
+ | |||
+ | NSPR_LIBS=$(./config/nspr-config --libs) | ||
+ | NSPR_CFLAGS=$(./config/nspr-config --cflags) | ||
+ | NSPR_VERSION=$(./config/nspr-config --version) | ||
+ | |||
+ | sed -i -e "s,%libdir%,/usr/lib32/nspr," \ | ||
+ | -e "s,%prefix%,/usr," \ | ||
+ | -e "s,%exec_prefix%,/usr/bin," \ | ||
+ | -e "s,%includedir%,/usr/include/nspr," \ | ||
+ | -e "s,%NSPR_VERSION%,${NSPR_VERSION}," \ | ||
+ | -e "s,%FULL_NSPR_LIBS%,${NSPR_LIBS}," \ | ||
+ | -e "s,%FULL_NSPR_CFLAGS%,${NSPR_CFLAGS}," /usr/lib32/pkgconfig/nspr.pc | ||
+ | |||
+ | chmod 644 /usr/lib/pkgconfig/nspr.pc | ||
+ | ln -sfv nspr.pc /usr/lib32/pkgconfig/mozilla-nspr.pc | ||
=== 64Bit === | === 64Bit === | ||
Line 134: | Line 188: | ||
CC="gcc ${BUILD64}" \ | CC="gcc ${BUILD64}" \ | ||
../mozilla/nsprpub/configure --prefix=/usr \ | ../mozilla/nsprpub/configure --prefix=/usr \ | ||
− | + | --libdir=/usr/lib32/nspr --infodir=/usr/share/info --mandir=/usr/share/man \ | |
− | + | --disable-debug --disable-ipv6 --enable-system-sqlite --enable-64bit && | |
− | |||
make | make | ||
Line 142: | Line 195: | ||
make install && | make install && | ||
+ | chmod 644 /usr/lib64/nspr/*.a && | ||
+ | rm -fv /usr/bin/{compile-et.pl,prerr.properties} && | ||
+ | rm -fv /usr/share/aclocal/nspr.m4 && | ||
+ | rm -rfv /usr/include/nspr/md && | ||
mv -v /usr/bin/nspr-config{,-64} && | mv -v /usr/bin/nspr-config{,-64} && | ||
ln -sfv multiarch_wrapper /usr/bin/nspr-config | ln -sfv multiarch_wrapper /usr/bin/nspr-config | ||
Line 148: | Line 205: | ||
cat > /usr/lib64/pkgconfig/nspr.pc << "EOF" | cat > /usr/lib64/pkgconfig/nspr.pc << "EOF" | ||
− | + | prefix=%prefix% | |
− | + | exec_prefix=%exec_prefix% | |
− | libdir | + | libdir=%libdir% |
− | + | includedir=%includedir% | |
+ | |||
+ | Name: NSPR | ||
+ | Description: The Netscape Portable Runtime | ||
+ | Version: %NSPR_VERSION% | ||
+ | Libs: %FULL_NSPR_LIBS% | ||
+ | Cflags: %FULL_NSPR_CFLAGS% | ||
+ | EOF | ||
+ | |||
+ | NSPR_LIBS=$(./config/nspr-config --libs) | ||
+ | NSPR_CFLAGS=$(./config/nspr-config --cflags) | ||
+ | NSPR_VERSION=$(./config/nspr-config --version) | ||
+ | |||
+ | sed -i -e "s,%libdir%,/usr/lib64/nspr," \ | ||
+ | -e "s,%prefix%,/usr," \ | ||
+ | -e "s,%exec_prefix%,/usr/bin," \ | ||
+ | -e "s,%includedir%,/usr/include/nspr," \ | ||
+ | -e "s,%NSPR_VERSION%,${NSPR_VERSION}," \ | ||
+ | -e "s,%FULL_NSPR_LIBS%,${NSPR_LIBS}," \ | ||
+ | -e "s,%FULL_NSPR_CFLAGS%,${NSPR_CFLAGS}," /usr/lib64/pkgconfig/nspr.pc | ||
+ | |||
+ | chmod 644 /usr/lib64/pkgconfig/nspr.pc | ||
+ | ln -sf nspr.pc /usr/lib64/pkgconfig/mozilla-nspr.pc | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Security]] | [[Category:Security]] |
Revision as of 11:10, 23 June 2009
Download Source: | http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.9.4/src/nspr-4.9.4.tar.gz |
---|
Contents
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 \ --libdir=/usr/lib/nspr --infodir=/usr/share/info --mandir=/usr/share/man \ --disable-debug --disable-ipv6 --enable-system-sqlite make
Install the package
make install && chmod 644 /usr/lib/nspr/*.a && rm -fv /usr/bin/{compile-et.pl,prerr.properties} && rm -fv /usr/share/aclocal/nspr.m4 && rm -rfv /usr/include/nspr/md
Create the pkg-config file:
cat > /usr/lib/pkgconfig/nspr.pc << "EOF" prefix=%prefix% exec_prefix=%exec_prefix% libdir=%libdir% includedir=%includedir% Name: NSPR Description: The Netscape Portable Runtime Version: %NSPR_VERSION% Libs: %FULL_NSPR_LIBS% Cflags: %FULL_NSPR_CFLAGS% EOF NSPR_LIBS=$(./config/nspr-config --libs) NSPR_CFLAGS=$(./config/nspr-config --cflags) NSPR_VERSION=$(./config/nspr-config --version) sed -i -e "s,%libdir%,/usr/lib/nspr," \ -e "s,%prefix%,/usr," \ -e "s,%exec_prefix%,/usr/bin," \ -e "s,%includedir%,/usr/include/nspr," \ -e "s,%NSPR_VERSION%,${NSPR_VERSION}," \ -e "s,%FULL_NSPR_LIBS%,${NSPR_LIBS}," \ -e "s,%FULL_NSPR_CFLAGS%,${NSPR_CFLAGS}," /usr/lib/pkgconfig/nspr.pc chmod 644 /usr/lib/pkgconfig/nspr.pc ln -sf nspr.pc /usr/lib/pkgconfig/mozilla-nspr.pc
Multilib
32Bit
Create a build directory:
mkdir -v build && cd build
Compile the package:
CC="gcc ${BUILD32}" \ ../mozilla/nsprpub/configure --prefix=/usr \ --libdir=/usr/lib/nspr --infodir=/usr/share/info --mandir=/usr/share/man \ --disable-debug --disable-ipv6 --enable-system-sqlite && make
Install the package
make install && chmod 644 /usr/lib/nspr/*.a && rm -fv /usr/bin/{compile-et.pl,prerr.properties} && rm -fv /usr/share/aclocal/nspr.m4 && rm -rfv /usr/include/nspr/md && mv -v /usr/bin/nspr-config{,-32}
Create the pkg-config file:
cat > /usr/lib/pkgconfig/nspr.pc << "EOF" prefix=%prefix% exec_prefix=%exec_prefix% libdir=%libdir% includedir=%includedir% Name: NSPR Description: The Netscape Portable Runtime Version: %NSPR_VERSION% Libs: %FULL_NSPR_LIBS% Cflags: %FULL_NSPR_CFLAGS% EOF NSPR_LIBS=$(./config/nspr-config --libs) NSPR_CFLAGS=$(./config/nspr-config --cflags) NSPR_VERSION=$(./config/nspr-config --version) sed -i -e "s,%libdir%,/usr/lib/nspr," \ -e "s,%prefix%,/usr," \ -e "s,%exec_prefix%,/usr/bin," \ -e "s,%includedir%,/usr/include/nspr," \ -e "s,%NSPR_VERSION%,${NSPR_VERSION}," \ -e "s,%FULL_NSPR_LIBS%,${NSPR_LIBS}," \ -e "s,%FULL_NSPR_CFLAGS%,${NSPR_CFLAGS}," /usr/lib/pkgconfig/nspr.pc chmod 644 /usr/lib/pkgconfig/nspr.pc ln -sfv nspr.pc /usr/lib/pkgconfig/mozilla-nspr.pc
N32
Create a build directory:
mkdir -v build && cd build
Compile the package:
CC="gcc ${BUILDN32}" \ ../mozilla/nsprpub/configure --prefix=/usr \ --libdir=/usr/lib32/nspr --infodir=/usr/share/info --mandir=/usr/share/man \ --disable-debug --disable-ipv6 --enable-system-sqlite && make
Install the package
make install && chmod 644 /usr/lib32/nspr/*.a && rm -fv /usr/bin/{compile-et.pl,prerr.properties} && rm -fv /usr/share/aclocal/nspr.m4 && rm -rfv /usr/include/nspr/md && mv -v /usr/bin/nspr-config{,-n32}
Create the pkg-config file:
cat > /usr/lib32/pkgconfig/nspr.pc << "EOF" prefix=%prefix% exec_prefix=%exec_prefix% libdir=%libdir% includedir=%includedir% Name: NSPR Description: The Netscape Portable Runtime Version: %NSPR_VERSION% Libs: %FULL_NSPR_LIBS% Cflags: %FULL_NSPR_CFLAGS% EOF NSPR_LIBS=$(./config/nspr-config --libs) NSPR_CFLAGS=$(./config/nspr-config --cflags) NSPR_VERSION=$(./config/nspr-config --version) sed -i -e "s,%libdir%,/usr/lib32/nspr," \ -e "s,%prefix%,/usr," \ -e "s,%exec_prefix%,/usr/bin," \ -e "s,%includedir%,/usr/include/nspr," \ -e "s,%NSPR_VERSION%,${NSPR_VERSION}," \ -e "s,%FULL_NSPR_LIBS%,${NSPR_LIBS}," \ -e "s,%FULL_NSPR_CFLAGS%,${NSPR_CFLAGS}," /usr/lib32/pkgconfig/nspr.pc chmod 644 /usr/lib/pkgconfig/nspr.pc ln -sfv nspr.pc /usr/lib32/pkgconfig/mozilla-nspr.pc
64Bit
Create a build directory:
mkdir -v build && cd build
Compile the package:
CC="gcc ${BUILD64}" \ ../mozilla/nsprpub/configure --prefix=/usr \ --libdir=/usr/lib32/nspr --infodir=/usr/share/info --mandir=/usr/share/man \ --disable-debug --disable-ipv6 --enable-system-sqlite --enable-64bit && make
Install the package
make install && chmod 644 /usr/lib64/nspr/*.a && rm -fv /usr/bin/{compile-et.pl,prerr.properties} && rm -fv /usr/share/aclocal/nspr.m4 && rm -rfv /usr/include/nspr/md && 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=%prefix% exec_prefix=%exec_prefix% libdir=%libdir% includedir=%includedir% Name: NSPR Description: The Netscape Portable Runtime Version: %NSPR_VERSION% Libs: %FULL_NSPR_LIBS% Cflags: %FULL_NSPR_CFLAGS% EOF NSPR_LIBS=$(./config/nspr-config --libs) NSPR_CFLAGS=$(./config/nspr-config --cflags) NSPR_VERSION=$(./config/nspr-config --version) sed -i -e "s,%libdir%,/usr/lib64/nspr," \ -e "s,%prefix%,/usr," \ -e "s,%exec_prefix%,/usr/bin," \ -e "s,%includedir%,/usr/include/nspr," \ -e "s,%NSPR_VERSION%,${NSPR_VERSION}," \ -e "s,%FULL_NSPR_LIBS%,${NSPR_LIBS}," \ -e "s,%FULL_NSPR_CFLAGS%,${NSPR_CFLAGS}," /usr/lib64/pkgconfig/nspr.pc chmod 644 /usr/lib64/pkgconfig/nspr.pc ln -sf nspr.pc /usr/lib64/pkgconfig/mozilla-nspr.pc