2013-06-21 00:17:14 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# nettle
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2013-07-15 16:19:15 +02:00
|
|
|
NETTLE_VERSION = 2.7.1
|
2012-12-28 11:01:08 +01:00
|
|
|
NETTLE_SITE = http://www.lysator.liu.se/~nisse/archive
|
|
|
|
NETTLE_DEPENDENCIES = gmp
|
|
|
|
NETTLE_INSTALL_STAGING = YES
|
2012-12-28 11:39:53 +01:00
|
|
|
NETTLE_LICENSE = LGPLv2.1+
|
|
|
|
NETTLE_LICENSE_FILES = COPYING.LIB
|
2013-11-06 11:53:43 +01:00
|
|
|
# don't include openssl support for (unused) examples as it has problems
|
|
|
|
# with static linking
|
2014-09-27 21:32:44 +02:00
|
|
|
NETTLE_CONF_OPTS = --disable-openssl
|
2012-12-28 11:01:08 +01:00
|
|
|
|
2013-04-28 04:31:24 +02:00
|
|
|
# ARM assembly requires v6+ ISA
|
2014-09-15 23:01:57 +02:00
|
|
|
ifeq ($(BR2_arm920t)$(BR2_arm922t)$(BR2_arm926t)$(BR2_fa526)$(BR2_strongarm)$(BR2_xscale)$(BR2_iwmmxt),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
NETTLE_CONF_OPTS += --disable-assembler
|
2013-04-28 04:31:24 +02:00
|
|
|
endif
|
|
|
|
|
2013-05-05 04:35:08 +02:00
|
|
|
# ARM NEON, requires binutils 2.21+
|
|
|
|
ifeq ($(BR2_ARM_CPU_HAS_NEON)$(BR2_TOOLCHAIN_BUILDROOT)$(BR2_BINUTILS_VERSION_2_20_1),yy)
|
2014-09-27 21:32:44 +02:00
|
|
|
NETTLE_CONF_OPTS += --enable-arm-neon
|
2013-04-28 04:31:24 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
NETTLE_CONF_OPTS += --disable-arm-neon
|
2013-04-28 04:31:24 +02:00
|
|
|
endif
|
|
|
|
|
2012-12-28 11:01:08 +01:00
|
|
|
define NETTLE_DITCH_DEBUGGING_CFLAGS
|
|
|
|
$(SED) '/CFLAGS/ s/ -ggdb3//' $(@D)/configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
NETTLE_POST_EXTRACT_HOOKS += NETTLE_DITCH_DEBUGGING_CFLAGS
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|