2021-04-14 04:33:01 +02:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
|
|
|
port=libgcrypt
|
|
|
|
version=1.9.2
|
|
|
|
useconfigure=true
|
2022-01-08 17:02:29 +03:30
|
|
|
use_fresh_config_sub=true
|
|
|
|
config_sub_path=build-aux/config.sub
|
2021-09-27 00:16:18 +02:00
|
|
|
configopts=("--with-libgpg-error-prefix=${SERENITY_INSTALL_ROOT}/usr/local")
|
|
|
|
depends=("libgpg-error")
|
2021-04-25 12:20:15 +02:00
|
|
|
files="https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${version}.tar.bz2 libgcrypt-${version}.tar.bz2 b2c10d091513b271e47177274607b1ffba3d95b188bbfa8797f948aec9053c5a"
|
|
|
|
auth_type=sha256
|
2021-04-14 04:33:01 +02:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
export ac_cv_lib_pthread_pthread_create=no
|
|
|
|
}
|
|
|
|
|
|
|
|
configure() {
|
2021-09-27 00:16:18 +02:00
|
|
|
run ./configure --host="${SERENITY_ARCH}-pc-serenity" --build="$($workdir/build-aux/config.guess)" "${configopts[@]}"
|
2021-04-14 04:33:01 +02:00
|
|
|
}
|
2021-05-19 21:46:22 +02:00
|
|
|
|
|
|
|
install() {
|
2021-09-27 00:16:18 +02:00
|
|
|
run make DESTDIR=${SERENITY_INSTALL_ROOT} "${installopts[@]}" install
|
2021-05-19 21:46:22 +02:00
|
|
|
${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libgcrypt.so -Wl,-soname,libgcrypt.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libgcrypt.a -Wl,--no-whole-archive -lgpg-error
|
|
|
|
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libgcrypt.la
|
|
|
|
}
|