mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
faiss, revbump, drop lapack dependency (#13286)
This commit is contained in:
@@ -8,9 +8,10 @@ implemented on the GPU. It is developed primarily at Meta's Fundamental AI Resea
|
||||
HOMEPAGE="https://github.com/facebookresearch/faiss"
|
||||
COPYRIGHT="2025 Facebook, Inc. and its affiliates."
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="$HOMEPAGE/archive/refs/tags/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="65b5493d6b8cb992f104677cab255a9b71ef1e1d2ea3b1500dc995c68b429949"
|
||||
PATCHES="faiss-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
@@ -27,7 +28,6 @@ PROVIDES="
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libgomp$secondaryArchSuffix
|
||||
lib:liblapack$secondaryArchSuffix
|
||||
lib:libopenblas$secondaryArchSuffix
|
||||
"
|
||||
|
||||
@@ -42,7 +42,6 @@ REQUIRES_devel="
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:liblapack$secondaryArchSuffix
|
||||
devel:libopenblas$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
@@ -103,7 +102,8 @@ INSTALL()
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
|
||||
packageEntries python$pythonPackage \
|
||||
$prefix/lib/python* \
|
||||
|
||||
25
dev-libs/faiss/patches/faiss-1.10.0.patchset
Normal file
25
dev-libs/faiss/patches/faiss-1.10.0.patchset
Normal file
@@ -0,0 +1,25 @@
|
||||
From 1fccffe8e5af8e3baa3209b8b6232f0876e9c514 Mon Sep 17 00:00:00 2001
|
||||
From: Luc Schrijvers <begasus@gmail.com>
|
||||
Date: Mon, 3 Nov 2025 08:04:07 +0100
|
||||
Subject: Install cmake configuration files to $libDir/cmake
|
||||
|
||||
|
||||
diff --git a/faiss/CMakeLists.txt b/faiss/CMakeLists.txt
|
||||
index d8bf74a..54db0e1 100644
|
||||
--- a/faiss/CMakeLists.txt
|
||||
+++ b/faiss/CMakeLists.txt
|
||||
@@ -452,9 +452,9 @@ configure_file(${PROJECT_SOURCE_DIR}/cmake/faiss-config.cmake.in
|
||||
)
|
||||
install(FILES ${PROJECT_BINARY_DIR}/cmake/faiss-config.cmake
|
||||
${PROJECT_BINARY_DIR}/cmake/faiss-config-version.cmake
|
||||
- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/faiss
|
||||
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/faiss
|
||||
)
|
||||
|
||||
install(EXPORT faiss-targets
|
||||
- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/faiss
|
||||
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/faiss
|
||||
)
|
||||
--
|
||||
2.51.0
|
||||
|
||||
Reference in New Issue
Block a user