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.

63 lines
1.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../nss/nss.conf
  5. # Copyright (C) 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/security
  15. libdir="$libdir/$pkg"
  16. includedir="$includedir/$pkg"
  17. # use buildloops because first we need to build stuff in 3 different subdirs
  18. buildloops=3
  19. nss_preconf() {
  20. # reset make options
  21. makeopt=''
  22. var_append makeopt ' ' "NSPR_INCLUDE_DIR=$(pkgprefix -r includedir nspr)"
  23. var_append makeopt ' ' "NSPR_LIB_DIR=$(pkgprefix -r libdir nspr)"
  24. if pkginstalled -f sqlite; then
  25. var_append makeopt ' ' "NSS_USE_SYSTEM_SQLITE=1"
  26. fi
  27. var_append makeopt ' ' "NSS_ENABLE_ECC=1"
  28. var_append makeopt ' ' "FREEBL_NO_DEPEND=1"
  29. var_append makeopt ' ' "OBJDIR_NAME=$pkg-build"
  30. var_append makeopt ' ' "NSDISTMODE=copy"
  31. case $buildloop in
  32. 1) var_insert makeopt ' ' "-C coreconf"
  33. ;;
  34. 2) var_insert makeopt ' ' "-C dbm"
  35. ;;
  36. 3) var_insert makeopt ' ' "-C nss"
  37. # run custom install function
  38. hook_add postmake 5 'nss_install'
  39. ;;
  40. esac
  41. }
  42. hook_add preconf 3 'nss_preconf'
  43. # do not run make install
  44. makeinstopt=""
  45. # custom install function
  46. nss_install() {
  47. echo "installing ..."
  48. rm -rf $root$includedir
  49. mkdir -p $root$includedir
  50. cp -av ../dist/public/nss/*.h $root$includedir/
  51. cp -avf ../dist/$pkg-build/lib/*.a $root$libdir/
  52. cp -avf ../dist/$pkg-build/lib/*.so $root$libdir/
  53. cp -avf ../dist/$pkg-build/bin/* $root$bindir/
  54. }