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

Ports: Update formatting to be consistent with other ports

This commit updates the formatting for all ports to be updated in this
PR in one go, to keep those changes centralized.
This commit is contained in:
EWouters 2023-09-01 15:27:50 +02:00 committed by Jelle Raaijmakers
parent 349996f7f2
commit 50758181a3
72 changed files with 595 additions and 399 deletions

View file

@ -1,26 +1,33 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=ntbtls
version=0.2.0
useconfigure=true
use_fresh_config_sub=true
config_sub_paths=("build-aux/config.sub")
depends=("libgpg-error" "libksba" "libgcrypt" "zlib")
port='ntbtls'
version='0.2.0'
useconfigure='true'
use_fresh_config_sub='true'
config_sub_paths=(
'build-aux/config.sub'
)
depends=(
'libgcrypt'
'libgpg-error'
'libksba'
'zlib'
)
files=(
"https://gnupg.org/ftp/gcrypt/ntbtls/ntbtls-${version}.tar.bz2#649fe74a311d13e43b16b26ebaa91665ddb632925b73902592eac3ed30519e17"
)
configopts=(
"--with-libgcrypt-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
"--with-libgpg-error-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
# It's documented as "--with-libksba-prefix" (note the "lib"), but if it is set it is
# immediately overwritten by whatever is given through "--with-ksba-prefix",
# EVEN IF the latter switch is not given, thus overwriting it with the empty string.
"--with-ksba-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
)
pre_configure() {
export ntbtls_cv_gcc_has_f_visibility=no
export ntbtls_cv_gcc_has_f_visibility='no'
}
configure() {
run ./configure --host="${SERENITY_ARCH}-pc-serenity" --build="$($workdir/build-aux/config.guess)" "${configopts[@]}"
run ./configure \
--host="${SERENITY_ARCH}-pc-serenity" \
--build="$("${workdir}/build-aux/config.guess")" \
--with-libgcrypt-prefix="${SERENITY_INSTALL_ROOT}/usr/local" \
--with-libgpg-error-prefix="${SERENITY_INSTALL_ROOT}/usr/local" \
--with-ksba-prefix="${SERENITY_INSTALL_ROOT}/usr/local"
# It's documented as "--with-libksba-prefix" (note the "lib"), but if it is set it is
# immediately overwritten by whatever is given through "--with-ksba-prefix",
# EVEN IF the latter switch is not given, thus overwriting it with the empty string.
}