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
2015-12-17 13:51:15 +00:00

51 lines
822 B
Bash

version=\
(
'1.0.2e'
)
url=\
(
"http://www.openssl.org/source/openssl-$version.tar.gz"
)
md5=\
(
'5262bfa25b60ed9de9f28d5d52d77fc5'
)
requires=\
(
'zlib/default'
)
configure()
{
./Configure linux-generic32 --cross-compile-prefix="$cfg_target_canonical-" \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--openssldir="$cfg_dir_toolchain_sysroot/usr" \
shared
}
build()
{
$cmd_make depend &&
$cmd_make all
}
host_install()
{
$cmd_make -j1 install
}
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
}