OpenSDE Packages Database (without history before r20070)
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.

49 lines
1.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../nspr/nspr.conf
  5. # Copyright (C) 2007 - 2011 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. srcdir=$pkg-$ver/mozilla/nsprpub
  15. libdir="$libdir/nspr"
  16. hook_add preconf 5 'mkdir -p objdir; cd objdir'
  17. configscript="../configure"
  18. # 64bit architecture support
  19. case "$arch" in
  20. *64) var_append extraconfopt ' ' '--enable-64bit' ;;
  21. esac
  22. var_append makeinstopt ' ' 'NSDISTMODE=copy'
  23. hook_add postmake 5 'nspr_install'
  24. nspr_install() {
  25. local minor=$( echo $ver | cut -d. -f3- )
  26. echo "cleaning before the real installation ..."
  27. rm -rvf dist/include/nspr/md dist/bin/*.so
  28. # create a 'dist/lib-final' where we copy the whole symlinked
  29. # stuff from 'dist/lib' using --dereference to get the real file
  30. mkdir -p dist/lib-final
  31. cp -av --dereference dist/lib/* dist/lib-final/
  32. for x in dist/lib-final/*.so; do
  33. mv -fv "$x" "$x.$minor"
  34. chmod +x "$x.$minor"
  35. ln -svnf "${x##*/}.$minor" "$x"
  36. done
  37. echo "installing ..."
  38. cp -avf dist/lib-final/* $root$libdir/
  39. rm -rf $root$includedir/nspr/
  40. cp -av dist/include/nspr $root$includedir/
  41. }