Browse Source

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

stable/0.2
Christian Wiese 14 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.
#
# 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.
#
@ -26,14 +26,19 @@ nspr_install() {
echo "cleaning before the real installation ..."
rm -rvf dist/include/nspr/md dist/bin/*.so
for x in dist/lib/*.so; do
mv -v "$x" "$x.$minor"
# create a 'dist/lib-final' where we copy the whole symlinked
# 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"
ln -svnf "${x##*/}.$minor" "$x"
done
echo "installing ..."
cp -avf dist/lib/* $root$libdir/
cp -avf dist/lib-final/* $root$libdir/
rm -rf $root$includedir/nspr/
cp -av dist/include/nspr $root$includedir/
}

Loading…
Cancel
Save