2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="libgcrypt"
|
2022-04-14 11:56:57 +00:00
|
|
|
PKG_VERSION="1.8.7"
|
|
|
|
PKG_SHA256="03b70f028299561b7034b8966d7dd77ef16ed139c43440925fe8782561974748"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="GPLv2"
|
|
|
|
PKG_SITE="https://www.gnupg.org/"
|
2022-04-14 11:56:57 +00:00
|
|
|
PKG_URL="https://www.gnupg.org/ftp/gcrypt/libgcrypt/${PKG_NAME}-${PKG_VERSION}.tar.bz2"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain libgpg-error"
|
|
|
|
PKG_LONGDESC="A General purpose cryptographic library."
|
|
|
|
PKG_TOOLCHAIN="autotools"
|
|
|
|
# libgcrypt-1.7.x fails to build with LTO support
|
|
|
|
# see for example https://bugs.gentoo.org/show_bug.cgi?id=581114
|
|
|
|
|
|
|
|
pre_configure_target() {
|
2022-04-14 11:56:57 +00:00
|
|
|
PKG_CONFIGURE_OPTS_TARGET="CC_FOR_BUILD=${HOST_CC} \
|
2022-02-05 14:23:32 +00:00
|
|
|
ac_cv_sys_symbol_underscore=no \
|
|
|
|
--enable-asm \
|
|
|
|
--with-gnu-ld \
|
2022-04-14 11:56:57 +00:00
|
|
|
--with-libgpg-error-prefix=${SYSROOT_PREFIX}/usr \
|
2022-02-05 14:23:32 +00:00
|
|
|
--disable-doc"
|
|
|
|
}
|
|
|
|
|
|
|
|
post_makeinstall_target() {
|
2022-04-14 11:56:57 +00:00
|
|
|
sed -e "s:\(['= ]\)\"/usr:\\1\"${SYSROOT_PREFIX}/usr:g" -i src/${PKG_NAME}-config
|
|
|
|
cp src/${PKG_NAME}-config ${SYSROOT_PREFIX}/usr/bin
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2022-04-14 11:56:57 +00:00
|
|
|
rm -rf ${INSTALL}/usr/bin
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|