mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
764 B

srcdir="nss-$ver/mozilla/security/nss"
var_append makeopt " " "nss_build_all"
hook_add premake 5 nss_premake
hook_add postmake 5 nss_postmake
nss_premake ()
{
tar -xf $archdir/nspr-$nspr_ver.tar.bz2
mv nspr-$nspr_ver/mozilla/nsprpub $builddir/nss-$ver/mozilla/
}
nss_postmake ()
{
rm -f ../../dist/Linux*/bin/lib*.so
cp -LpR ../../dist/Linux*/bin/* $bindir
mkdir -p $includedir/{nss,nspr}
cp -LpR ../../dist/public/nss/* $includedir/nss
cp -LpR ../../dist/Linux*/include/* $includedir/nspr
# openssl also contains a libssl.a file
( cd ../../dist/Linux*/lib/ ; mv libssl{,-nss}.a ; )
cp -LpR ../../dist/Linux*/lib/* $libdir
cp -Lp ../../nsprpub/Linux*/config/nspr-config $bindir
sed -i -e"s,^prefix=/usr/local$,prefix=/usr," $bindir/nspr-config
}