mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 13:11:46 +03:00
cdd6d68b2a
All of these patches did the same thing, which is already in upstream config.sub. With this change, we need only add `use_fresh_config_sub=true` to the package.sh file. Note that this is not done automatically in case the port has a modified config.sub file.
24 lines
907 B
Bash
Executable File
24 lines
907 B
Bash
Executable File
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port=libksba
|
|
version=1.5.1
|
|
useconfigure=true
|
|
use_fresh_config_sub=true
|
|
config_sub_path=build-aux/config.sub
|
|
depends=("libgpg-error")
|
|
files="https://gnupg.org/ftp/gcrypt/libksba/libksba-${version}.tar.bz2 libksba-${version}.tar.bz2 b0f4c65e4e447d9a2349f6b8c0e77a28be9531e4548ba02c545d1f46dc7bf921"
|
|
auth_type=sha256
|
|
|
|
pre_configure() {
|
|
export ksba_cv_gcc_has_f_visibility=no
|
|
}
|
|
|
|
configure() {
|
|
run ./configure --host="${SERENITY_ARCH}-pc-serenity" --build="$($workdir/build-aux/config.guess)" "${configopts[@]}"
|
|
}
|
|
|
|
install() {
|
|
run make DESTDIR=${SERENITY_INSTALL_ROOT} "${installopts[@]}" install
|
|
${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libksba.so -Wl,-soname,libksba.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libksba.a -Wl,--no-whole-archive -lgpg-error
|
|
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libksba.la
|
|
}
|