2014-07-23 07:31:30 +02:00
|
|
|
package=openssl
|
2015-01-10 02:52:55 +01:00
|
|
|
$(package)_version=1.0.1k
|
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-01-10 02:52:55 +01:00
|
|
|
$(package)_sha256_hash=8f9faeaebad088e772f4ef5e38252d472be4d878c6b3a2718c10a4fcebe7a41c
|
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
|
|
|
|
$(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
|
2014-10-21 22:49:45 +02:00
|
|
|
$(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
|
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
|
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
|