kumquat-buildroot/package/libtomcrypt/libtomcrypt.mk
Peter Seiderer 84582b4d6a package/libtomcrypt: use makefile.unix, brings pkgconfig support
Change from makefile to makefile.unix:
  - brings pkgconfig support (libtomcrypt.pc will be installed)
  - remove NODOCS (legacy, not used anymore)
  - remove INSTALL_USER/INSTALL_GROUP (not needed for makefile.unix)

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2021-07-29 00:13:16 +02:00

36 lines
1.1 KiB
Makefile

################################################################################
#
# libtomcrypt
#
################################################################################
LIBTOMCRYPT_VERSION = 1.18.2
LIBTOMCRYPT_SITE = https://github.com/libtom/libtomcrypt/releases/download/v$(LIBTOMCRYPT_VERSION)
LIBTOMCRYPT_SOURCE = crypt-$(LIBTOMCRYPT_VERSION).tar.xz
LIBTOMCRYPT_LICENSE = WTFPL
LIBTOMCRYPT_LICENSE_FILES = LICENSE
LIBTOMCRYPT_CPE_ID_VENDOR = libtom
LIBTOMCRYPT_INSTALL_STAGING = YES
LIBTOMCRYPT_INSTALL_TARGET = NO # only static library
LIBTOMCRYPT_DEPENDENCIES = libtommath
# 0001-fix-CVE-2019-17362.patch
LIBTOMCRYPT_IGNORE_CVES += CVE-2019-17362
LIBTOMCRYPT_CFLAGS = -I./src/headers $(TARGET_CFLAGS) -DLTC_SOURCE -DLTM_DESC
ifeq ($(BR2_STATIC_LIBS),)
LIBTOMCRYPT_CFLAGS += -fPIC
endif
define LIBTOMCRYPT_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) -f makefile.unix $(TARGET_CONFIGURE_OPTS) CFLAGS="$(LIBTOMCRYPT_CFLAGS)"
endef
define LIBTOMCRYPT_INSTALL_STAGING_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) -f makefile.unix \
DESTDIR="$(STAGING_DIR)" PREFIX=/usr install
endef
$(eval $(generic-package))