This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/openssl/default.bash

51 lines
822 B
Bash
Raw Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
2015-12-17 13:51:15 +00:00
'1.0.2e'
2013-07-13 17:19:22 +01:00
)
url=\
(
2015-09-04 20:47:29 +01:00
"http://www.openssl.org/source/openssl-$version.tar.gz"
2013-07-13 17:19:22 +01:00
)
md5=\
(
2015-12-17 13:51:15 +00:00
'5262bfa25b60ed9de9f28d5d52d77fc5'
2013-07-13 17:19:22 +01:00
)
requires=\
(
'zlib/default'
2013-07-13 17:19:22 +01:00
)
configure()
{
./Configure linux-generic32 --cross-compile-prefix="$cfg_target_canonical-" \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--openssldir="$cfg_dir_toolchain_sysroot/usr" \
shared
2013-07-13 17:19:22 +01:00
}
build()
{
$cmd_make depend &&
$cmd_make all
2013-07-13 17:19:22 +01:00
}
host_install()
{
$cmd_make -j1 install
2013-07-13 17:19:22 +01:00
}
target_install()
{
for f in $cfg_dir_toolchain_sysroot/usr/lib/{libcrypto.so*,libssl.so*}; do
name="$cfg_dir_rootfs/lib/$(basename $f)"
if [ -f "$f" ]; then
$cmd_target_strip "$f" -o "$name"
else
$cmd_cp "$f" "$name"
fi
done
2013-07-13 17:19:22 +01:00
}