mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
65fd70c890
The automatically created CMakeConfig file was not working for cross-compilation. We now prefix the path with `${CMAKE_SYSROOT}` to have it work on host and target.
25 lines
705 B
Bash
Executable File
25 lines
705 B
Bash
Executable File
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port='gpgme'
|
|
version='1.23.2'
|
|
useconfigure='true'
|
|
use_fresh_config_sub='true'
|
|
config_sub_paths=(
|
|
'build-aux/config.sub'
|
|
)
|
|
files=(
|
|
"https://gnupg.org/ftp/gcrypt/gpgme/gpgme-${version}.tar.bz2#9499e8b1f33cccb6815527a1bc16049d35a6198a6c5fae0185f2bd561bce5224"
|
|
)
|
|
depends=(
|
|
'gnupg'
|
|
)
|
|
configopts=(
|
|
'--disable-gpg-test'
|
|
"--with-libgpg-error-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
|
|
"--with-libassuan-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
|
|
"--with-sysroot=${SERENITY_INSTALL_ROOT}"
|
|
)
|
|
|
|
post_install() {
|
|
run sed -i 's#/usr/local#${CMAKE_SYSROOT}/usr/local#g' ${SERENITY_INSTALL_ROOT}/usr/local/lib/cmake/Gpgmepp/GpgmeppConfig.cmake
|
|
}
|