aboutsummaryrefslogtreecommitdiff
path: root/depends/packages/openssl.mk
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2014-07-23 01:31:30 -0400
committerCory Fields <cory-nospam-@coryfields.com>2014-08-08 15:10:46 -0400
commit1dec09b341f61836147d87656aea7f7be02aab6d (patch)
treebda4c72a414edf94b91537eb2fe9c6da5c6942b8 /depends/packages/openssl.mk
parent36065cc529bb9be5655fcaaad2746edb7b6f4ddb (diff)
depends: add shared dependency builder
See the README's in depends for documentation
Diffstat (limited to 'depends/packages/openssl.mk')
-rw-r--r--depends/packages/openssl.mk40
1 files changed, 40 insertions, 0 deletions
diff --git a/depends/packages/openssl.mk b/depends/packages/openssl.mk
new file mode 100644
index 0000000000..1fb8edb099
--- /dev/null
+++ b/depends/packages/openssl.mk
@@ -0,0 +1,40 @@
+package=openssl
+$(package)_version=1.0.1h
+$(package)_download_path=https://www.openssl.org/source
+$(package)_file_name=$(package)-$($(package)_version).tar.gz
+$(package)_sha256_hash=9d1c8a9836aa63e2c6adb684186cbd4371c9e9dcc01d6e3bb447abf2d4d3d093
+
+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
+$(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-ssl3
+$(package)_config_opts+=$($(package)_cflags)
+$(package)_config_opts_x86_64_linux=-fPIC linux-x86_64
+$(package)_config_opts_arm_linux=-fPIC 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
+$(package)_config_opts_i686_linux=linux-generic32 -fPIC
+endef
+
+define $(package)_preprocess_cmds
+ sed -i.old "/define DATE/d" crypto/Makefile && \
+ 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