2021-04-14 05:32:34 +03:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
|
|
|
port=libgpg-error
|
|
|
|
version=1.42
|
|
|
|
useconfigure=true
|
2021-05-19 22:46:22 +03:00
|
|
|
depends="gettext"
|
2021-04-14 05:32:34 +03:00
|
|
|
configopts="--disable-tests --disable-threads"
|
2021-04-25 13:20:15 +03:00
|
|
|
files="https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-${version}.tar.bz2 libgpg-error-${version}.tar.bz2 fc07e70f6c615f8c4f590a8e37a9b8dd2e2ca1e9408f8e60459c67452b925e23"
|
|
|
|
auth_type=sha256
|
2021-04-14 05:32:34 +03:00
|
|
|
|
|
|
|
configure() {
|
|
|
|
run ./configure --host="${SERENITY_ARCH}-pc-serenity" --build="$($workdir/build-aux/config.guess)" $configopts
|
|
|
|
}
|
2021-05-19 22:46:22 +03:00
|
|
|
|
|
|
|
install() {
|
|
|
|
run make DESTDIR=${SERENITY_INSTALL_ROOT} $installopts install
|
|
|
|
${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libgpg-error.so -Wl,-soname,libgpg-error.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libgpg-error.a -Wl,--no-whole-archive -lintl
|
|
|
|
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libgpg-error.la
|
|
|
|
}
|