mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-30 09:22:57 +02:00
libtls: clean up template
This commit is contained in:
parent
eff84fbc96
commit
6eef7e3181
1 changed files with 4 additions and 16 deletions
|
@ -4,7 +4,8 @@ version=3.2.4
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="libressl-${version}"
|
wrksrc="libressl-${version}"
|
||||||
build_style=gnu-configure
|
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"
|
short_desc="Version of the TLS/crypto stack forked from OpenSSL"
|
||||||
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||||
license="OpenSSL, ISC"
|
license="OpenSSL, ISC"
|
||||||
|
@ -18,17 +19,13 @@ replaces="libtls20>0"
|
||||||
build_options="asm"
|
build_options="asm"
|
||||||
desc_option_asm="Use platform assembly for faster crypto"
|
desc_option_asm="Use platform assembly for faster crypto"
|
||||||
|
|
||||||
|
build_options_default="asm"
|
||||||
|
|
||||||
if [ "$build_option_asm" ]; then
|
if [ "$build_option_asm" ]; then
|
||||||
distfiles+=" https://github.com/q66/libressl-portable-asm/archive/v${_lssl_asm_ver}.tar.gz"
|
distfiles+=" https://github.com/q66/libressl-portable-asm/archive/v${_lssl_asm_ver}.tar.gz"
|
||||||
checksum+=" e1c76178c4deb1cd20a0cd7ba553d6607f8131acb2e0844223f797e42f0d6f60"
|
checksum+=" e1c76178c4deb1cd20a0cd7ba553d6607f8131acb2e0844223f797e42f0d6f60"
|
||||||
fi
|
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
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
# disable ssp
|
# disable ssp
|
||||||
i686-musl) configure_args+=" --disable-hardening";;
|
i686-musl) configure_args+=" --disable-hardening";;
|
||||||
|
@ -36,21 +33,12 @@ case "$XBPS_TARGET_MACHINE" in
|
||||||
armv5*) configure_args+=" --disable-asm";;
|
armv5*) configure_args+=" --disable-asm";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" -o "$build_option_asm" ]; then
|
|
||||||
_regen_build=yes
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$_regen_build" ]; then
|
|
||||||
hostmakedepends=" automake libtool"
|
|
||||||
fi
|
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
[ -z "$build_option_asm" ] && return 0
|
[ -z "$build_option_asm" ] && return 0
|
||||||
mv ../libressl-portable-asm-${_lssl_asm_ver} .
|
mv ../libressl-portable-asm-${_lssl_asm_ver} .
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
[ -z "$_regen_build" ] && return 0
|
|
||||||
if [ "$build_option_asm" ]; then
|
if [ "$build_option_asm" ]; then
|
||||||
./libressl-portable-asm-${_lssl_asm_ver}/patch_libressl.sh .
|
./libressl-portable-asm-${_lssl_asm_ver}/patch_libressl.sh .
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue