libtls: clean up template

This commit is contained in:
q66 2021-03-05 13:14:47 +01:00 committed by John
parent eff84fbc96
commit 6eef7e3181

View file

@ -4,7 +4,8 @@ version=3.2.4
revision=1
wrksrc="libressl-${version}"
build_style=gnu-configure
#configure_args="$(vopt_enable asm)"
configure_args="$(vopt_enable asm)"
hostmakedepends="automake libtool"
short_desc="Version of the TLS/crypto stack forked from OpenSSL"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="OpenSSL, ISC"
@ -18,17 +19,13 @@ replaces="libtls20>0"
build_options="asm"
desc_option_asm="Use platform assembly for faster crypto"
build_options_default="asm"
if [ "$build_option_asm" ]; then
distfiles+=" https://github.com/q66/libressl-portable-asm/archive/v${_lssl_asm_ver}.tar.gz"
checksum+=" e1c76178c4deb1cd20a0cd7ba553d6607f8131acb2e0844223f797e42f0d6f60"
fi
# only enable asm for full chroots by default
# otherwise we'd be introducing an autotools dependency on the host
if [ "$CHROOT_READY" ]; then
build_options_default="asm"
fi
case "$XBPS_TARGET_MACHINE" in
# disable ssp
i686-musl) configure_args+=" --disable-hardening";;
@ -36,21 +33,12 @@ case "$XBPS_TARGET_MACHINE" in
armv5*) configure_args+=" --disable-asm";;
esac
if [ "$CROSS_BUILD" -o "$build_option_asm" ]; then
_regen_build=yes
fi
if [ -n "$_regen_build" ]; then
hostmakedepends=" automake libtool"
fi
post_extract() {
[ -z "$build_option_asm" ] && return 0
mv ../libressl-portable-asm-${_lssl_asm_ver} .
}
pre_configure() {
[ -z "$_regen_build" ] && return 0
if [ "$build_option_asm" ]; then
./libressl-portable-asm-${_lssl_asm_ver}/patch_libressl.sh .
fi