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 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package=openssl
  2. $(package)_version=1.0.1j
  3. $(package)_download_path=https://www.openssl.org/source
  4. $(package)_file_name=$(package)-$($(package)_version).tar.gz
  5. $(package)_sha256_hash=1b60ca8789ba6f03e8ef20da2293b8dc131c39d83814e775069f02d26354edf3
  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 no-zlib no-shared no-dso
  9. $(package)_config_opts+=no-krb5 no-camellia no-capieng no-cast no-cms no-dtls1 no-gost no-gmp no-heartbeats no-idea no-jpake no-md2
  10. $(package)_config_opts+=no-mdc2 no-rc5 no-rdrand no-rfc3779 no-rsax no-sctp no-seed no-sha0 no-static_engine no-whirlpool no-rc2 no-rc4 no-ssl2 no-ssl3
  11. $(package)_config_opts+=$($(package)_cflags) $($(package)_cppflags)
  12. $(package)_config_opts_linux=-fPIC
  13. $(package)_config_opts_x86_64_linux=linux-x86_64
  14. $(package)_config_opts_i686_linux=linux-generic32
  15. $(package)_config_opts_arm_linux=linux-generic32
  16. $(package)_config_opts_x86_64_darwin=darwin64-x86_64-cc
  17. $(package)_config_opts_x86_64_mingw32=mingw64
  18. $(package)_config_opts_i686_mingw32=mingw
  19. endef
  20. define $(package)_preprocess_cmds
  21. sed -i.old "/define DATE/d" crypto/Makefile && \
  22. sed -i.old "s|engines apps test|engines|" Makefile.org
  23. endef
  24. define $(package)_config_cmds
  25. ./Configure $($(package)_config_opts)
  26. endef
  27. define $(package)_build_cmds
  28. $(MAKE) -j1 build_libs libcrypto.pc libssl.pc openssl.pc
  29. endef
  30. define $(package)_stage_cmds
  31. $(MAKE) INSTALL_PREFIX=$($(package)_staging_dir) -j1 install_sw
  32. endef
  33. define $(package)_postprocess_cmds
  34. rm -rf share bin etc
  35. endef