1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:27:35 +00:00

Ports: Add libgcrypt port

This commit is contained in:
Gunnar Beutner 2021-04-14 04:33:01 +02:00 committed by Andreas Kling
parent 3cfc05fb8a
commit ba5710871b
3 changed files with 28 additions and 0 deletions

15
Ports/libgcrypt/package.sh Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=libgcrypt
version=1.9.2
useconfigure=true
configopts="--with-libgpg-error-prefix=${SERENITY_BUILD_DIR}/Root/usr/local"
files="https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${version}.tar.bz2 libgcrypt-${version}.tar.bz2"
pre_configure() {
export gcry_cv_gcc_has_f_visibility=no
export ac_cv_lib_pthread_pthread_create=no
}
configure() {
run ./configure --host="${SERENITY_ARCH}-pc-serenity" --build="$($workdir/build-aux/config.guess)" $configopts
}