xref: /OK3568_Linux_fs/buildroot/package/xxhash/xxhash.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# xxhash
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunXXHASH_VERSION = 0.8.0
8*4882a593SmuzhiyunXXHASH_SITE = $(call github,Cyan4973,xxHash,v$(XXHASH_VERSION))
9*4882a593SmuzhiyunXXHASH_LICENSE = BSD-2-Clause (library), GPL-2.0+ (xxhsum)
10*4882a593SmuzhiyunXXHASH_LICENSE_FILES = LICENSE
11*4882a593Smuzhiyun
12*4882a593Smuzhiyundefine XXHASH_BUILD_CMDS
13*4882a593Smuzhiyun	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) xxhsum
14*4882a593Smuzhiyunendef
15*4882a593Smuzhiyun
16*4882a593Smuzhiyundefine XXHASH_INSTALL_TARGET_CMDS
17*4882a593Smuzhiyun	$(INSTALL) -m 0755 -D $(@D)/xxhsum $(TARGET_DIR)/usr/bin/xxhsum
18*4882a593Smuzhiyunendef
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun$(eval $(generic-package))
21