17ffb91551
cpe:2.3🅰️libtom:libtommath is a valid CPE identifier for this package: https://nvd.nist.gov/products/cpe/detail/F0D99614-AA27-4713-ADD2-103647C8838B Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
25 lines
834 B
Makefile
25 lines
834 B
Makefile
################################################################################
|
|
#
|
|
# libtommath
|
|
#
|
|
################################################################################
|
|
|
|
LIBTOMMATH_VERSION = 1.2.1
|
|
LIBTOMMATH_SITE = https://github.com/libtom/libtommath/releases/download/v$(LIBTOMMATH_VERSION)
|
|
LIBTOMMATH_SOURCE = ltm-$(LIBTOMMATH_VERSION).tar.xz
|
|
LIBTOMMATH_LICENSE = Unlicense
|
|
LIBTOMMATH_LICENSE_FILES = LICENSE
|
|
LIBTOMMATH_CPE_ID_VENDOR = libtom
|
|
LIBTOMMATH_INSTALL_STAGING = YES
|
|
LIBTOMMATH_INSTALL_TARGET = NO # only static library
|
|
|
|
define LIBTOMMATH_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) CFLAGS="-I./ -fPIC $(TARGET_CFLAGS)"
|
|
endef
|
|
|
|
define LIBTOMMATH_INSTALL_STAGING_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(STAGING_DIR)" PREFIX=/usr install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|