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.

70 lines
2.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../openssl/openssl.conf
  5. # Copyright (C) 2007 - 2012 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. confopt=" enable-md2"
  17. if [ "$SDECFG_STATIC" != 1 ] ; then
  18. var_append confopt " " "shared"
  19. else
  20. var_append confopt " " "no-shared"
  21. var_append confopt " " "no-dso"
  22. fi
  23. sysconfdir=$sysconfdir/ssl
  24. # We can't use ./config becouse that would probably add optimize
  25. # options which won't work on our taget system.
  26. case "$arch_machine" in
  27. i?86) trg=linux-elf ;;
  28. x86_64) trg=linux-x86_64 ;;
  29. alpha) trg=linux-alpha-gcc ;;
  30. powerpc) trg=linux-ppc ;;
  31. powerpc64) trg=linux-ppc64 ;;
  32. sparc64) trg=linux64-sparcv9 ;;
  33. sparc*) # v7, v8, v9, ...
  34. trg=linux-$(echo $arch_machine | sed 's/sparc\(v.\).*/sparc\1/' ) ;;
  35. mips) if [ "$arch_bigendian" == "yes" ] ; then
  36. trg="linux-generic32 -DB_ENDIAN";
  37. else
  38. trg="linux-generic32 -DL_ENDIAN";
  39. fi ;;
  40. arm)
  41. trg="linux-generic32 -DL_ENDIAN" ;;
  42. *) abort "Add arch-setting to openssl.conf!" ;;
  43. esac
  44. # kerberos support
  45. # Note: only MIT Kerberos is officially supported
  46. if pkginstalled -f krb5; then
  47. var_append confopt ' ' "--with-krb5-flavor=MIT"
  48. var_append confopt ' ' "--with-krb5-dir=$( pkgprefix -r krb5 )"
  49. fi
  50. openssl_premake() {
  51. # well - "resolve" some conflicts ...
  52. rm doc/apps/passwd.pod doc/crypto/buffer.pod doc/crypto/err.pod \
  53. doc/crypto/rand.pod doc/crypto/threads.pod
  54. }
  55. runconf=
  56. hook_add premake 4 "./Configure --prefix=/$prefix --openssldir=$sysconfdir $trg $confopt"
  57. hook_add premake 5 openssl_premake
  58. var_remove_regex makeopt " " "AR=.*"
  59. var_insert makeinstopt " " "MANDIR=$mandir INSTALL_PREFIX=$root"
  60. # recheck when upstream
  61. var_append GCC_WRAPPER_APPEND ' ' "-DLIBDIR=\"$libdir\""
  62. var_append makeinstopt ' ' "LIBDIR=${libdir##*/}"