openssl: updated rules and version to 1.0.2d.

This commit is contained in:
Ricardo Martins 2015-09-04 17:35:31 +01:00
parent 27c5f2764d
commit c92da8191e

View File

@ -1,16 +1,16 @@
version=\ version=\
( (
"1.0.1c" '1.0.2d'
) )
url=\ url=\
( (
"http://www.openssl.org/source/openssl-$version.tar.gz" "https://www.openssl.org/source/openssl-$version.tar.gz"
) )
md5=\ md5=\
( (
"ae412727c8c15b67880aef7bd2999b2e" '38dd619b2e77cbac69b99f52a053d25a'
) )
requires=\ requires=\
@ -20,33 +20,31 @@ requires=\
configure() configure()
{ {
./Configure \ ./Configure linux-generic32 --cross-compile-prefix="$cfg_target_canonical-" \
--prefix="${cfg_dir_toolchain_sysroot}/usr" \ --prefix="$cfg_dir_toolchain_sysroot/usr" \
shared \ --openssldir="$cfg_dir_toolchain_sysroot/usr" \
dist shared
} }
build() build()
{ {
CC="${cmd_target_cc}" \ $cmd_make depend &&
CXX="${cmd_target_cpp}" \ $cmd_make all
AR="${cmd_target_ar}" \
RANLIB="${cmd_target_ranlib}" \
ARFLAGS="${cfg_target_ar_flags}" \
$cmd_make build_libs
} }
host_install() host_install()
{ {
# Can not use the install as it throws an error. $cmd_make -j1 install
# $cmd_make install
$cmd_cp include/ ${cfg_dir_toolchain_sysroot}/usr
$cmd_cp lib* ${cfg_dir_toolchain_sysroot}/usr/lib
} }
target_install() target_install()
{ {
$cmd_cp lib*so* ${cfg_dir_toolchain_sysroot}/usr/lib for f in $cfg_dir_toolchain_sysroot/usr/lib/{libcrypto.so*,libssl.so*}; do
$cmd_cp lib*.a ${cfg_dir_toolchain_sysroot}/usr/lib name="$cfg_dir_rootfs/lib/$(basename $f)"
if [ -f "$f" ]; then
$cmd_target_strip "$f" -o "$name"
else
$cmd_cp "$f" "$name"
fi
done
} }