2011-01-09 18:36:48 +01:00
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
2016-01-02 17:29:56 +01:00
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
2011-01-09 18:36:48 +01:00
#
2013-12-21 21:51:48 +01:00
# OpenELEC is free software: you can redistribute it and/or modify
2011-01-09 18:36:48 +01:00
# it under the terms of the GNU General Public License as published by
2013-12-21 21:51:48 +01:00
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
2011-01-09 18:36:48 +01:00
#
2013-12-21 21:51:48 +01:00
# OpenELEC is distributed in the hope that it will be useful,
2011-01-09 18:36:48 +01:00
# but WITHOUT ANY WARRANTY; without even the implied warranty of
2013-12-21 21:51:48 +01:00
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2011-01-09 18:36:48 +01:00
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
2013-12-21 21:51:48 +01:00
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
2011-01-09 18:36:48 +01:00
################################################################################
2011-01-05 17:54:54 +01:00
PKG_NAME = "libgcrypt"
2016-11-16 00:13:28 +00:00
PKG_VERSION = "1.7.3"
2011-01-05 17:54:54 +01:00
PKG_REV = "1"
PKG_ARCH = "any"
2015-09-05 14:33:48 +02:00
PKG_LICENSE = "GPLv2"
PKG_SITE = "https://www.gnupg.org/"
PKG_URL = " https://www.gnupg.org/ftp/gcrypt/libgcrypt/ $PKG_NAME - $PKG_VERSION .tar.bz2 "
2014-01-30 14:31:58 +01:00
PKG_DEPENDS_TARGET = "toolchain libgpg-error"
2011-01-05 17:54:54 +01:00
PKG_SECTION = "security"
PKG_SHORTDESC = "libgcrypt: General purpose cryptographic library"
PKG_LONGDESC = "Libgcrypt is a general purpose cryptographic library based on the code from GnuPG. It provides functions for all cryptographic building blocks: symmetric ciphers, hash algorithms, MACs, public key algorithms, large integer functions, random numbers and a lot of supporting functions."
2013-08-22 15:44:54 +02:00
PKG_IS_ADDON = "no"
2011-01-05 17:54:54 +01:00
PKG_AUTORECONF = "yes"
2013-08-22 15:44:54 +02:00
2016-11-16 00:13:28 +00:00
PKG_CONFIGURE_OPTS_TARGET = " CC_FOR_BUILD= $HOST_CC \
ac_cv_sys_symbol_underscore = no \
2016-11-15 23:49:07 +00:00
--enable-asm \
--with-gnu-ld \
2016-11-16 00:13:28 +00:00
--with-libgpg-error-prefix= $SYSROOT_PREFIX /usr \
--disable-doc"
p r e _ c o n f i g u r e _ t a r g e t ( ) {
# libgcrypt-1.7.x fails to build with LTO support
# see for example https://bugs.gentoo.org/show_bug.cgi?id=581114
strip_lto
}
2013-08-22 15:44:54 +02:00
p o s t _ m a k e i n s t a l l _ t a r g e t ( ) {
2016-01-07 03:26:18 +01:00
sed -e " s:\(['= ]\)\"/usr:\\1\" $SYSROOT_PREFIX /usr:g " -i src/$PKG_NAME -config
cp src/$PKG_NAME -config $SYSROOT_PREFIX /usr/bin
2013-08-22 15:44:54 +02:00
rm -rf $INSTALL /usr/bin
}