mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 01:17:46 +00:00
Ports: Add libgcrypt port
This commit is contained in:
parent
3cfc05fb8a
commit
ba5710871b
3 changed files with 28 additions and 0 deletions
15
Ports/libgcrypt/package.sh
Executable file
15
Ports/libgcrypt/package.sh
Executable 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
|
||||
}
|
12
Ports/libgcrypt/patches/configure.patch
Normal file
12
Ports/libgcrypt/patches/configure.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff -Naur libgcrypt-1.9.2/build-aux/config.sub libgcrypt-1.9.2.serenity/build-aux/config.sub
|
||||
--- libgcrypt-1.9.2/build-aux/config.sub 2019-06-23 17:35:08.000000000 +0200
|
||||
+++ libgcrypt-1.9.2.serenity/build-aux/config.sub 2021-04-14 01:14:04.895316310 +0200
|
||||
@@ -1381,7 +1381,7 @@
|
||||
# The portable systems comes first.
|
||||
# Each alternative MUST END IN A *, to match a version number.
|
||||
# -sysv* is not here because it comes later, after sysvr4.
|
||||
- -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
|
||||
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* | -serenity* \
|
||||
| -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
|
||||
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
|
||||
| -sym* | -kopensolaris* | -plan9* \
|
Loading…
Add table
Add a link
Reference in a new issue