Browse Source

nspr: fixed to correctly install the libraries and not some bogus symlinks into mozillas weired build environment

stable/0.2
Christian Wiese 15 years ago
parent
commit
144a7e1e69
  1. 13
      develop/nspr/nspr.conf

13
develop/nspr/nspr.conf

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
# Filename: package/.../nspr/nspr.conf # Filename: package/.../nspr/nspr.conf
# Copyright (C) 2007 The OpenSDE Project # Copyright (C) 2007 - 2011 The OpenSDE Project
# #
# More information can be found in the files COPYING and README. # More information can be found in the files COPYING and README.
# #
@ -26,14 +26,19 @@ nspr_install() {
echo "cleaning before the real installation ..." echo "cleaning before the real installation ..."
rm -rvf dist/include/nspr/md dist/bin/*.so rm -rvf dist/include/nspr/md dist/bin/*.so
for x in dist/lib/*.so; do # create a 'dist/lib-final' where we copy the whole symlinked
mv -v "$x" "$x.$minor" # stuff from 'dist/lib' using --dereference to get the real file
mkdir -p dist/lib-final
cp -av --dereference dist/lib/* dist/lib-final/
for x in dist/lib-final/*.so; do
mv -fv "$x" "$x.$minor"
chmod +x "$x.$minor" chmod +x "$x.$minor"
ln -svnf "${x##*/}.$minor" "$x" ln -svnf "${x##*/}.$minor" "$x"
done done
echo "installing ..." echo "installing ..."
cp -avf dist/lib/* $root$libdir/ cp -avf dist/lib-final/* $root$libdir/
rm -rf $root$includedir/nspr/ rm -rf $root$includedir/nspr/
cp -av dist/include/nspr $root$includedir/ cp -av dist/include/nspr $root$includedir/
} }

Loading…
Cancel
Save