2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-07-17 20:10:35 +02:00
|
|
|
#
|
|
|
|
# libgcrypt
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2010-11-19 14:56:51 +01:00
|
|
|
|
2016-07-15 12:08:42 +02:00
|
|
|
LIBGCRYPT_VERSION = 1.7.2
|
2010-11-19 14:56:51 +01:00
|
|
|
LIBGCRYPT_SOURCE = libgcrypt-$(LIBGCRYPT_VERSION).tar.bz2
|
2012-09-11 23:58:14 +02:00
|
|
|
LIBGCRYPT_LICENSE = LGPLv2.1+
|
|
|
|
LIBGCRYPT_LICENSE_FILES = COPYING.LIB
|
2010-11-19 14:56:51 +01:00
|
|
|
LIBGCRYPT_SITE = ftp://ftp.gnupg.org/gcrypt/libgcrypt
|
2010-03-27 16:11:25 +01:00
|
|
|
LIBGCRYPT_INSTALL_STAGING = YES
|
2012-12-26 04:55:47 +01:00
|
|
|
LIBGCRYPT_DEPENDENCIES = libgpg-error
|
2013-02-07 13:35:05 +01:00
|
|
|
LIBGCRYPT_CONFIG_SCRIPTS = libgcrypt-config
|
2007-07-17 20:10:35 +02:00
|
|
|
|
2010-03-27 16:11:25 +01:00
|
|
|
LIBGCRYPT_CONF_ENV = \
|
|
|
|
ac_cv_sys_symbol_underscore=no
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBGCRYPT_CONF_OPTS = \
|
2010-05-09 18:13:06 +02:00
|
|
|
--with-gpg-error-prefix=$(STAGING_DIR)/usr
|
2007-07-17 20:10:35 +02:00
|
|
|
|
2016-07-31 10:28:03 +02:00
|
|
|
# Libgcrypt doesn't support assembly for coldfire
|
|
|
|
ifeq ($(BR2_m68k_cf),y)
|
|
|
|
LIBGCRYPT_CONF_OPTS += --disable-asm
|
|
|
|
endif
|
|
|
|
|
2013-04-23 08:52:49 +02:00
|
|
|
# Code doesn't build in thumb mode
|
|
|
|
ifeq ($(BR2_arm),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
LIBGCRYPT_CONF_ENV += CFLAGS="$(patsubst -mthumb,,$(TARGET_CFLAGS))"
|
2013-04-23 08:52:49 +02:00
|
|
|
endif
|
|
|
|
|
2012-12-26 04:55:47 +01:00
|
|
|
# Tests use fork()
|
|
|
|
define LIBGCRYPT_DISABLE_TESTS
|
|
|
|
$(SED) 's/ tests//' $(@D)/Makefile.in
|
|
|
|
endef
|
|
|
|
|
|
|
|
LIBGCRYPT_POST_PATCH_HOOKS += LIBGCRYPT_DISABLE_TESTS
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|