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:27:10 +01:00
PKG_NAME = "libgpg-error"
2017-05-06 21:16:56 +01:00
PKG_VERSION = "1.27"
2017-07-17 20:49:22 +02:00
PKG_SHA256 = "4f93aac6fecb7da2b92871bb9ee33032be6a87b174f54abf8ddf0911a22d29d2"
2011-01-05 17:27:10 +01:00
PKG_ARCH = "any"
2015-09-05 14:24:00 +02:00
PKG_LICENSE = "GPLv2"
PKG_SITE = "https://www.gnupg.org"
PKG_URL = " https://www.gnupg.org/ftp/gcrypt/libgpg-error/ $PKG_NAME - $PKG_VERSION .tar.bz2 "
2014-01-30 14:31:58 +01:00
PKG_DEPENDS_TARGET = "toolchain"
2011-01-05 17:27:10 +01:00
PKG_SECTION = "security"
PKG_SHORTDESC = "libgpg-error: Library that defines common error values for GnuPG components"
PKG_LONGDESC = "This is a library that defines common error values for all GnuPG components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt, Libksba, DirMngr, Pinentry, SmartCard Daemon and possibly more in the future."
2013-12-25 14:12:19 +01:00
2017-06-14 12:46:19 -07:00
PKG_CONFIGURE_OPTS_TARGET = " CC_FOR_BUILD= $HOST_CC --enable-static --disable-shared --disable-nls --disable-rpath --with-gnu-ld --with-pic "
2013-12-25 14:12:19 +01:00
2015-04-09 10:31:21 +02:00
p r e _ c o n f i g u r e _ t a r g e t ( ) {
# inspired by openembedded
case ${ TARGET_ARCH } in
aarch64)
GPGERROR_TUPLE = aarch64-unknown-linux-gnu
GPGERROR_TARGET = linux-gnueabi
; ;
arm)
GPGERROR_TUPLE = arm-unknown-linux-gnueabi
GPGERROR_TARGET = linux-gnueabi
; ;
i386)
GPGERROR_TUPLE = i486-pc-linux-gnu
GPGERROR_TARGET = linux-gnu
; ;
x86_64)
GPGERROR_TUPLE = x86_64-pc-linux-gnu
GPGERROR_TARGET = linux-gnu
; ;
esac
2017-02-17 06:40:16 +00:00
cp $PKG_BUILD /src/syscfg/lock-obj-pub.$GPGERROR_TUPLE .h $PKG_BUILD /src/syscfg/lock-obj-pub.$GPGERROR_TARGET .h
2015-04-09 10:31:21 +02:00
}
2013-12-25 14:12:19 +01:00
p o s t _ m a k e i n s t a l l _ t a r g e t ( ) {
rm -rf $INSTALL /usr/bin
rm -rf $INSTALL /usr/share
sed -e " s:\(['= ]\)/usr:\\1 $SYSROOT_PREFIX /usr:g " -i src/gpg-error-config
2016-01-07 03:26:47 +01:00
cp src/gpg-error-config $SYSROOT_PREFIX /usr/bin
2013-12-25 14:12:19 +01:00
}