libtomcrypt: new package
[buildroot-gz.git] / package / libtomcrypt / libtomcrypt.mk
blob53dbfd504b5a5799ad93aa1c24a991fd1b556b98
1 ################################################################################
3 # libtomcrypt
5 ################################################################################
7 LIBTOMCRYPT_VERSION = 1.17
8 LIBTOMCRYPT_SITE = https://github.com/libtom/libtomcrypt/releases/download/$(LIBTOMCRYPT_VERSION)
9 LIBTOMCRYPT_SOURCE = crypt-$(LIBTOMCRYPT_VERSION).tar.bz2
10 LIBTOMCRYPT_LICENSE = WTFPL
11 LIBTOMCRYPT_LICENSE_FILES = LICENSE
12 LIBTOMCRYPT_INSTALL_STAGING = YES
13 LIBTOMCRYPT_INSTALL_TARGET = NO # only static library
14 LIBTOMCRYPT_DEPENDENCIES = libtommath
16 LIBTOMCRYPT_CFLAGS = -I./src/headers $(TARGET_CFLAGS) -DLTC_SOURCE -DLTM_DESC \
17 $(if $(BR2_USE_WCHAR),,-DLTC_NO_WCHAR)
19 define LIBTOMCRYPT_BUILD_CMDS
20 $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) CFLAGS="$(LIBTOMCRYPT_CFLAGS)"
21 endef
23 define LIBTOMCRYPT_INSTALL_STAGING_CMDS
24 $(MAKE) -C $(@D) DESTDIR="$(STAGING_DIR)" NODOCS=1 INSTALL_USER=$(shell id -u) INSTALL_GROUP=$(shell id -g) install
25 endef
27 $(eval $(generic-package))