2016-04-10 16:55:24 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libtommath
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-03-11 11:36:00 +01:00
|
|
|
LIBTOMMATH_VERSION = 1.2.0
|
2016-04-10 16:55:24 +02:00
|
|
|
LIBTOMMATH_SITE = https://github.com/libtom/libtommath/releases/download/v$(LIBTOMMATH_VERSION)
|
|
|
|
LIBTOMMATH_SOURCE = ltm-$(LIBTOMMATH_VERSION).tar.xz
|
2019-01-30 15:03:52 +01:00
|
|
|
LIBTOMMATH_LICENSE = Unlicense
|
2016-04-10 16:55:24 +02:00
|
|
|
LIBTOMMATH_LICENSE_FILES = LICENSE
|
|
|
|
LIBTOMMATH_INSTALL_STAGING = YES
|
|
|
|
LIBTOMMATH_INSTALL_TARGET = NO # only static library
|
|
|
|
|
|
|
|
define LIBTOMMATH_BUILD_CMDS
|
2016-10-14 00:13:52 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) CFLAGS="-I./ -fPIC $(TARGET_CFLAGS)"
|
2016-04-10 16:55:24 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBTOMMATH_INSTALL_STAGING_CMDS
|
2017-09-05 20:52:19 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(STAGING_DIR)" PREFIX=/usr install
|
2016-04-10 16:55:24 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|