summaryrefslogtreecommitdiffstats
path: root/package/mpir/mpir.mk
blob: 91f704d30cd93fe00bdd903081548f7f645f20fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
################################################################################
#
# mpir
#
################################################################################

MPIR_VERSION = 3.0.0
MPIR_SITE = http://www.mpir.org
MPIR_SOURCE = mpir-$(MPIR_VERSION).tar.bz2
MPIR_LICENSE = LGPL-3.0+
MPIR_LICENSE_FILES = COPYING.LIB
MPIR_INSTALL_STAGING = YES
MPIR_DEPENDENCIES = gmp host-yasm

ifeq ($(BR2_MIPS_NABI32),y)
MPIR_CONF_OPTS += ABI=n32
endif

ifeq ($(BR2_MIPS_NABI64),y)
MPIR_CONF_OPTS += ABI=64
endif

# The optimized ARM assembly code uses ARM-only (i.e not Thumb1/2
# compatible) instructions.
ifeq ($(BR2_arm)$(BR2_armeb):$(BR2_ARM_CPU_HAS_ARM),y:)
MPIR_CONF_ENV += MPN_PATH="generic"
endif

# Optimized mips32/mips64 code not suitable for mips32r6/mips64r6
ifeq ($(BR2_MIPS_CPU_MIPS32R6)$(BR2_MIPS_CPU_MIPS64R6),y)
MPIR_CONF_ENV += MPN_PATH="generic"
endif

# Optimized powerpc64 code is not suitable for powerpc64le
ifeq ($(BR2_powerpc64le),y)
MPIR_CONF_ENV += MPN_PATH="generic"
endif

$(eval $(autotools-package))
OpenPOWER on IntegriCloud