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.

openssl.mk 2.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. package=openssl
  2. $(package)_version=1.0.1k
  3. $(package)_download_path=https://www.openssl.org/source
  4. $(package)_file_name=$(package)-$($(package)_version).tar.gz
  5. $(package)_sha256_hash=8f9faeaebad088e772f4ef5e38252d472be4d878c6b3a2718c10a4fcebe7a41c
  6. define $(package)_set_vars
  7. $(package)_config_env=AR="$($(package)_ar)" RANLIB="$($(package)_ranlib)" CC="$($(package)_cc)"
  8. $(package)_config_opts=--prefix=$(host_prefix) --openssldir=$(host_prefix)/etc/openssl
  9. $(package)_config_opts+=no-camellia
  10. $(package)_config_opts+=no-capieng
  11. $(package)_config_opts+=no-cast
  12. $(package)_config_opts+=no-comp
  13. $(package)_config_opts+=no-dso
  14. $(package)_config_opts+=no-dtls1
  15. $(package)_config_opts+=no-ec_nistp_64_gcc_128
  16. $(package)_config_opts+=no-gost
  17. $(package)_config_opts+=no-gmp
  18. $(package)_config_opts+=no-heartbeats
  19. $(package)_config_opts+=no-idea
  20. $(package)_config_opts+=no-jpake
  21. $(package)_config_opts+=no-krb5
  22. $(package)_config_opts+=no-libunbound
  23. $(package)_config_opts+=no-md2
  24. $(package)_config_opts+=no-mdc2
  25. $(package)_config_opts+=no-rc4
  26. $(package)_config_opts+=no-rc5
  27. $(package)_config_opts+=no-rdrand
  28. $(package)_config_opts+=no-rfc3779
  29. $(package)_config_opts+=no-rsax
  30. $(package)_config_opts+=no-sctp
  31. $(package)_config_opts+=no-seed
  32. $(package)_config_opts+=no-sha0
  33. $(package)_config_opts+=no-shared
  34. $(package)_config_opts+=no-ssl-trace
  35. $(package)_config_opts+=no-ssl2
  36. $(package)_config_opts+=no-ssl3
  37. $(package)_config_opts+=no-static_engine
  38. $(package)_config_opts+=no-store
  39. $(package)_config_opts+=no-unit-test
  40. $(package)_config_opts+=no-weak-ssl-ciphers
  41. $(package)_config_opts+=no-whirlpool
  42. $(package)_config_opts+=no-zlib
  43. $(package)_config_opts+=no-zlib-dynamic
  44. $(package)_config_opts+=$($(package)_cflags) $($(package)_cppflags)
  45. $(package)_config_opts_linux=-fPIC -Wa,--noexecstack
  46. $(package)_config_opts_x86_64_linux=linux-x86_64
  47. $(package)_config_opts_i686_linux=linux-generic32
  48. $(package)_config_opts_arm_linux=linux-generic32
  49. $(package)_config_opts_armv7l_linux=linux-generic32
  50. $(package)_config_opts_aarch64_linux=linux-generic64
  51. $(package)_config_opts_mipsel_linux=linux-generic32
  52. $(package)_config_opts_mips_linux=linux-generic32
  53. $(package)_config_opts_powerpc_linux=linux-generic32
  54. $(package)_config_opts_x86_64_darwin=darwin64-x86_64-cc
  55. $(package)_config_opts_x86_64_mingw32=mingw64
  56. $(package)_config_opts_i686_mingw32=mingw
  57. endef
  58. define $(package)_preprocess_cmds
  59. sed -i.old "/define DATE/d" util/mkbuildinf.pl && \
  60. sed -i.old "s|engines apps test|engines|" Makefile.org
  61. endef
  62. define $(package)_config_cmds
  63. ./Configure $($(package)_config_opts)
  64. endef
  65. define $(package)_build_cmds
  66. $(MAKE) -j1 build_libs libcrypto.pc libssl.pc openssl.pc
  67. endef
  68. define $(package)_stage_cmds
  69. $(MAKE) INSTALL_PREFIX=$($(package)_staging_dir) -j1 install_sw
  70. endef
  71. define $(package)_postprocess_cmds
  72. rm -rf share bin etc
  73. endef