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.

39 lines
1.2 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 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. var_append makeinstopt ' ' 'NSDISTMODE=copy'
  19. hook_add postmake 5 'nspr_install'
  20. nspr_install() {
  21. local minor=$( echo $ver | cut -d. -f3- )
  22. echo "cleaning before the real installation ..."
  23. rm -rvf dist/include/nspr/md dist/bin/*.so
  24. for x in dist/lib/*.so; do
  25. mv -v "$x" "$x.$minor"
  26. chmod +x "$x.$minor"
  27. ln -svnf "${x##*/}.$minor" "$x"
  28. done
  29. echo "installing ..."
  30. cp -avf dist/lib/* $root$libdir/
  31. rm -rf $root$includedir/nspr/
  32. cp -av dist/include/nspr $root$includedir/
  33. }