xxhash: build with cmake
authorRosen Penev <rosenp@gmail.com>
Sat, 13 Apr 2024 21:35:46 +0000 (14:35 -0700)
committerRosen Penev <rosenp@gmail.com>
Sun, 21 Apr 2024 01:06:21 +0000 (18:06 -0700)
Faster.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
utils/xxhash/Makefile

index 510193338ae08bfa2cd8142a3acdc2d8b6b175d2..36f23732d7048551d07ead69bd5b1a770851fd8c 100644 (file)
@@ -25,9 +25,10 @@ PKG_LICENSE:=BSD-2-Clause GPL-2.0-or-later
 PKG_LICENSE_FILES:=LICENSE cli/COPYING
 PKG_MAINTAINER:=Julien Malik <julien.malik@paraiso.me>
 
-PKG_INSTALL:=1
+CMAKE_SOURCE_SUBDIR:=cmake_unofficial
 
 include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/cmake.mk
 
 define Package/xxhash/Default
   TITLE:=Extremely fast hash algorithm
@@ -73,7 +74,7 @@ define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include
        $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
        $(INSTALL_DIR) $(1)/usr/lib
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxxhash.{a,so*} $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxxhash.so* $(1)/usr/lib/
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxxhash.pc $(1)/usr/lib/pkgconfig/
 endef