2014-07-23 07:31:30 +02:00
|
|
|
package=openssl
|
2015-12-09 10:09:44 +01:00
|
|
|
$(package)_version=1.0.1q
|
2014-07-23 07:31:30 +02:00
|
|
|
$(package)_download_path=https://www.openssl.org/source
|
|
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
2015-12-09 10:09:44 +01:00
|
|
|
$(package)_sha256_hash=b3658b84e9ea606a5ded3c972a5517cd785282e7ea86b20c78aa4b773a047fb7
|
2014-07-23 07:31:30 +02:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
|
|
|
$(package)_config_env=AR="$($(package)_ar)" RANLIB="$($(package)_ranlib)" CC="$($(package)_cc)"
|
|
|
|
$(package)_config_opts=--prefix=$(host_prefix) --openssldir=$(host_prefix)/etc/openssl no-zlib no-shared no-dso
|
2015-12-09 10:09:44 +01:00
|
|
|
$(package)_config_opts+=no-krb5 no-capieng no-dtls1 no-gost no-gmp no-heartbeats no-jpake no-md2
|
|
|
|
$(package)_config_opts+=no-rc5 no-rdrand no-rfc3779 no-rsax no-sctp no-sha0 no-static_engine no-ssl2 no-ssl3
|
2014-09-23 23:02:22 +02:00
|
|
|
$(package)_config_opts+=$($(package)_cflags) $($(package)_cppflags)
|
2014-11-12 00:21:23 +01:00
|
|
|
$(package)_config_opts_linux=-fPIC
|
|
|
|
$(package)_config_opts_x86_64_linux=linux-x86_64
|
|
|
|
$(package)_config_opts_i686_linux=linux-generic32
|
|
|
|
$(package)_config_opts_arm_linux=linux-generic32
|
2015-12-09 10:09:44 +01:00
|
|
|
$(package)_config_opts_aarch64_linux=linux-generic64
|
|
|
|
$(package)_config_opts_mipsel_linux=linux-generic32
|
|
|
|
$(package)_config_opts_mips_linux=linux-generic32
|
|
|
|
$(package)_config_opts_powerpc_linux=linux-generic32
|
2014-07-23 07:31:30 +02:00
|
|
|
$(package)_config_opts_x86_64_darwin=darwin64-x86_64-cc
|
|
|
|
$(package)_config_opts_x86_64_mingw32=mingw64
|
|
|
|
$(package)_config_opts_i686_mingw32=mingw
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_preprocess_cmds
|
2015-01-12 15:29:51 +01:00
|
|
|
sed -i.old "/define DATE/d" util/mkbuildinf.pl && \
|
2014-07-23 07:31:30 +02:00
|
|
|
sed -i.old "s|engines apps test|engines|" Makefile.org
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
|
|
|
./Configure $($(package)_config_opts)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE) -j1 build_libs libcrypto.pc libssl.pc openssl.pc
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) INSTALL_PREFIX=$($(package)_staging_dir) -j1 install_sw
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_postprocess_cmds
|
|
|
|
rm -rf share bin etc
|
|
|
|
endef
|