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.

69 lines
1.9 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. # 64bit architecture support
  23. case "$arch" in
  24. *64) var_append makeopt ' ' 'USE_64=1' ;;
  25. esac
  26. var_append makeopt ' ' "NSPR_INCLUDE_DIR=$(pkgprefix -r includedir nspr)"
  27. var_append makeopt ' ' "NSPR_LIB_DIR=$(pkgprefix -r libdir nspr)"
  28. if pkginstalled -f sqlite; then
  29. var_append makeopt ' ' "NSS_USE_SYSTEM_SQLITE=1"
  30. fi
  31. var_append makeopt ' ' "NSS_ENABLE_ECC=1"
  32. var_append makeopt ' ' "FREEBL_NO_DEPEND=1"
  33. var_append makeopt ' ' "OBJDIR_NAME=$pkg-build"
  34. var_append makeopt ' ' "NSDISTMODE=copy"
  35. case $buildloop in
  36. 1) var_insert makeopt ' ' "-C coreconf"
  37. ;;
  38. 2) var_insert makeopt ' ' "-C dbm"
  39. ;;
  40. 3) var_insert makeopt ' ' "-C nss"
  41. # run custom install function
  42. hook_add postmake 5 'nss_install'
  43. ;;
  44. esac
  45. }
  46. hook_add preconf 3 'nss_preconf'
  47. # do not run make install
  48. makeinstopt=""
  49. # custom install function
  50. nss_install() {
  51. echo "installing ..."
  52. rm -rf $root$includedir
  53. mkdir -p $root$includedir
  54. cp -av ../dist/public/nss/*.h $root$includedir/
  55. cp -avf ../dist/$pkg-build/lib/*.a $root$libdir/
  56. cp -avf ../dist/$pkg-build/lib/*.so $root$libdir/
  57. cp -avf ../dist/$pkg-build/bin/* $root$bindir/
  58. }