serenity/Ports/libgcrypt/package.sh

27 lines
693 B
Bash
Raw Permalink Normal View History

2021-04-13 22:33:01 -04:00
#!/usr/bin/env -S bash ../.port_include.sh
port='libgcrypt'
2024-02-21 06:42:26 -05:00
version='1.10.3'
useconfigure='true'
use_fresh_config_sub='true'
config_sub_paths=(
'build-aux/config.sub'
)
depends=(
'libgpg-error'
)
2023-07-10 07:10:29 -04:00
files=(
2024-02-21 06:42:26 -05:00
"https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${version}.tar.bz2#8b0870897ac5ac67ded568dcfadf45969cfa8a6beb0fd60af2a9eadc2a3272aa"
2023-07-10 07:10:29 -04:00
)
2021-04-13 22:33:01 -04:00
pre_configure() {
export ac_cv_lib_pthread_pthread_create='no'
2021-04-13 22:33:01 -04:00
}
configure() {
run ./configure \
--host="${SERENITY_ARCH}-pc-serenity" \
--build="$("${workdir}/build-aux/config.guess")" \
--with-libgpg-error-prefix="${SERENITY_INSTALL_ROOT}/usr/local" \
--with-sysroot="${SERENITY_INSTALL_ROOT}"
2021-04-13 22:33:01 -04:00
}