1 ################################################################################
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)"
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
27 $(eval
$(generic-package
))