| 1 |
package=openssl |
| 2 |
$(package)_version=3.5.0 |
| 3 |
$(package)_download_path=https://github.com/openssl/openssl/releases/download/openssl-$($(package)_version) |
| 4 |
$(package)_file_name=$(package)-$($(package)_version).tar.gz |
| 5 |
$(package)_sha256_hash=344d0a79f1a9b08029b0744e2cc401a43f9c90acd1044d09a530b4885a8e9fc0 |
| 6 |
|
| 7 |
define $(package)_set_vars |
| 8 |
$(package)_config_env=AR="$($(package)_ar)" ARFLAGS=$($(package)_arflags) RANLIB="$($(package)_ranlib)" CC="$($(package)_cc)" |
| 9 |
$(package)_config_env_android=ANDROID_NDK_ROOT="$(host_prefix)/native" PATH="$(host_prefix)/native/bin" CC=clang AR=ar RANLIB=ranlib |
| 10 |
$(package)_build_env_android=ANDROID_NDK_ROOT="$(host_prefix)/native" |
| 11 |
$(package)_config_opts=--prefix=$(host_prefix) --openssldir=$(host_prefix)/etc/openssl --libdir=$(host_prefix)/lib |
| 12 |
$(package)_config_opts+=no-apps |
| 13 |
$(package)_config_opts+=no-capieng |
| 14 |
$(package)_config_opts+=no-dso |
| 15 |
$(package)_config_opts+=no-dtls1 |
| 16 |
$(package)_config_opts+=no-ec_nistp_64_gcc_128 |
| 17 |
$(package)_config_opts+=no-gost |
| 18 |
$(package)_config_opts+=no-md2 |
| 19 |
$(package)_config_opts+=no-rc5 |
| 20 |
$(package)_config_opts+=no-rdrand |
| 21 |
$(package)_config_opts+=no-rfc3779 |
| 22 |
$(package)_config_opts+=no-sctp |
| 23 |
$(package)_config_opts+=no-shared |
| 24 |
$(package)_config_opts+=no-ssl-trace |
| 25 |
$(package)_config_opts+=no-ssl3 |
| 26 |
$(package)_config_opts+=no-tests |
| 27 |
$(package)_config_opts+=no-unit-test |
| 28 |
$(package)_config_opts+=no-weak-ssl-ciphers |
| 29 |
$(package)_config_opts+=no-winstore |
| 30 |
$(package)_config_opts+=no-zlib |
| 31 |
$(package)_config_opts+=no-zlib-dynamic |
| 32 |
$(package)_config_opts+=-pipe |
| 33 |
$(package)_config_opts_linux=-fPIC -Wa,--noexecstack |
| 34 |
$(package)_config_opts_freebsd=-fPIC -Wa,--noexecstack |
| 35 |
$(package)_config_opts_x86_64_linux=linux-x86_64 |
| 36 |
$(package)_config_opts_i686_linux=linux-generic32 |
| 37 |
$(package)_config_opts_arm_linux=linux-generic32 |
| 38 |
$(package)_config_opts_aarch64_linux=linux-generic64 |
| 39 |
$(package)_config_opts_arm_android=--static android-arm |
| 40 |
$(package)_config_opts_aarch64_android=--static android-arm64 |
| 41 |
$(package)_config_opts_aarch64_darwin=darwin64-arm64-cc |
| 42 |
$(package)_config_opts_riscv64_linux=linux64-riscv64 |
| 43 |
$(package)_config_opts_mipsel_linux=linux-generic32 |
| 44 |
$(package)_config_opts_mips_linux=linux-generic32 |
| 45 |
$(package)_config_opts_powerpc_linux=linux-generic32 |
| 46 |
$(package)_config_opts_x86_64_darwin=darwin64-x86_64-cc |
| 47 |
$(package)_config_opts_x86_64_mingw32=mingw64 |
| 48 |
$(package)_config_opts_i686_mingw32=mingw |
| 49 |
$(package)_config_opts_x86_64_freebsd=BSD-x86_64 |
| 50 |
endef |
| 51 |
|
| 52 |
define $(package)_preprocess_cmds |
| 53 |
sed -i.old 's|crypto ssl apps util tools fuzz providers doc|crypto ssl util tools providers|' build.info &&\ |
| 54 |
rm -rf doc demos apps test |
| 55 |
endef |
| 56 |
|
| 57 |
define $(package)_config_cmds |
| 58 |
./Configure $($(package)_config_opts) |
| 59 |
endef |
| 60 |
|
| 61 |
define $(package)_build_cmds |
| 62 |
$(MAKE) build_libs |
| 63 |
endef |
| 64 |
|
| 65 |
define $(package)_stage_cmds |
| 66 |
$(MAKE) DESTDIR=$($(package)_staging_dir) install_sw |
| 67 |
endef |
| 68 |
|
| 69 |
define $(package)_postprocess_cmds |
| 70 |
rm -rf share bin etc |
| 71 |
endef |