2018-03-18 23:01:56 +01:00
|
|
|
package=openssl
|
2021-10-22 21:46:35 +02:00
|
|
|
$(package)_version=1.1.1l
|
2020-12-09 03:03:46 +01:00
|
|
|
$(package)_download_path=https://www.openssl.org/source
|
2018-03-18 23:01:56 +01:00
|
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
2021-10-22 21:46:35 +02:00
|
|
|
$(package)_sha256_hash=0b7a3e5e59c34827fe0c3a74b7ec8baef302b98fa80088d7f9153aa16fa76bd1
|
|
|
|
$(package)_patches=fix_darwin.patch
|
2018-03-18 23:01:56 +01:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
2019-11-13 14:50:17 +01:00
|
|
|
$(package)_config_env=AR="$($(package)_ar)" ARFLAGS=$($(package)_arflags) RANLIB="$($(package)_ranlib)" CC="$($(package)_cc)"
|
2021-11-30 02:25:02 +01:00
|
|
|
$(package)_config_env_android=ANDROID_NDK_HOME="$(host_prefix)/native" PATH="$(host_prefix)/native/bin" CC=clang AR=ar RANLIB=ranlib
|
|
|
|
$(package)_build_env_android=ANDROID_NDK_HOME="$(host_prefix)/native"
|
2018-03-18 23:01:56 +01:00
|
|
|
$(package)_config_opts=--prefix=$(host_prefix) --openssldir=$(host_prefix)/etc/openssl
|
|
|
|
$(package)_config_opts+=no-capieng
|
|
|
|
$(package)_config_opts+=no-dso
|
|
|
|
$(package)_config_opts+=no-dtls1
|
|
|
|
$(package)_config_opts+=no-ec_nistp_64_gcc_128
|
|
|
|
$(package)_config_opts+=no-gost
|
|
|
|
$(package)_config_opts+=no-heartbeats
|
|
|
|
$(package)_config_opts+=no-md2
|
|
|
|
$(package)_config_opts+=no-rc5
|
|
|
|
$(package)_config_opts+=no-rdrand
|
|
|
|
$(package)_config_opts+=no-rfc3779
|
|
|
|
$(package)_config_opts+=no-sctp
|
|
|
|
$(package)_config_opts+=no-shared
|
|
|
|
$(package)_config_opts+=no-ssl-trace
|
|
|
|
$(package)_config_opts+=no-ssl2
|
|
|
|
$(package)_config_opts+=no-ssl3
|
|
|
|
$(package)_config_opts+=no-unit-test
|
|
|
|
$(package)_config_opts+=no-weak-ssl-ciphers
|
|
|
|
$(package)_config_opts+=no-zlib
|
|
|
|
$(package)_config_opts+=no-zlib-dynamic
|
|
|
|
$(package)_config_opts+=$($(package)_cflags) $($(package)_cppflags)
|
|
|
|
$(package)_config_opts_linux=-fPIC -Wa,--noexecstack
|
2019-11-11 09:34:47 +01:00
|
|
|
$(package)_config_opts_freebsd=-fPIC -Wa,--noexecstack
|
2018-03-18 23:01:56 +01:00
|
|
|
$(package)_config_opts_x86_64_linux=linux-x86_64
|
|
|
|
$(package)_config_opts_i686_linux=linux-generic32
|
|
|
|
$(package)_config_opts_arm_linux=linux-generic32
|
|
|
|
$(package)_config_opts_aarch64_linux=linux-generic64
|
2020-12-09 03:03:46 +01:00
|
|
|
$(package)_config_opts_arm_android=--static android-arm
|
|
|
|
$(package)_config_opts_aarch64_android=--static android-arm64
|
2022-05-04 07:58:24 +02:00
|
|
|
$(package)_config_opts_aarch64_darwin=darwin64-arm64-cc
|
2019-06-27 00:25:47 +02:00
|
|
|
$(package)_config_opts_riscv64_linux=linux-generic64
|
2018-03-18 23:01:56 +01:00
|
|
|
$(package)_config_opts_mipsel_linux=linux-generic32
|
|
|
|
$(package)_config_opts_mips_linux=linux-generic32
|
|
|
|
$(package)_config_opts_powerpc_linux=linux-generic32
|
|
|
|
$(package)_config_opts_x86_64_darwin=darwin64-x86_64-cc
|
|
|
|
$(package)_config_opts_x86_64_mingw32=mingw64
|
|
|
|
$(package)_config_opts_i686_mingw32=mingw
|
2019-11-11 09:34:47 +01:00
|
|
|
$(package)_config_opts_x86_64_freebsd=BSD-x86_64
|
2018-03-18 23:01:56 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_preprocess_cmds
|
2020-12-09 03:03:46 +01:00
|
|
|
sed -i.old 's|"engines", "apps", "test", "util", "tools", "fuzz"|"engines", "tools"|' Configure && \
|
2021-10-22 21:46:35 +02:00
|
|
|
patch -p1 < $($(package)_patch_dir)/fix_darwin.patch
|
2018-03-18 23:01:56 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
|
|
|
./Configure $($(package)_config_opts)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
2021-08-31 05:38:38 +02:00
|
|
|
$(MAKE) build_libs
|
2018-03-18 23:01:56 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
2021-08-31 05:38:38 +02:00
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install_sw
|
2018-03-18 23:01:56 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_postprocess_cmds
|
|
|
|
rm -rf share bin etc
|
|
|
|
endef
|