mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-21 10:12:01 +01:00
[superlu] Add new port (#9930)
This commit is contained in:
parent
42dee421af
commit
5c415ff8a0
5
ports/superlu/CONTROL
Normal file
5
ports/superlu/CONTROL
Normal file
@ -0,0 +1,5 @@
|
||||
Source: superlu
|
||||
Version: 2020-01-07
|
||||
Build-Depends: openblas
|
||||
Description: Supernodal sparse direct solver.
|
||||
Homepage: https://github.com/xiaoyeli/superlu
|
17
ports/superlu/fix-libm.patch
Normal file
17
ports/superlu/fix-libm.patch
Normal file
@ -0,0 +1,17 @@
|
||||
diff --git a/SRC/CMakeLists.txt b/SRC/CMakeLists.txt
|
||||
index e627f06..9aa8949 100644
|
||||
--- a/SRC/CMakeLists.txt
|
||||
+++ b/SRC/CMakeLists.txt
|
||||
@@ -232,7 +232,11 @@ if(enable_complex16)
|
||||
endif()
|
||||
|
||||
add_library(superlu ${sources} ${HEADERS})
|
||||
-target_link_libraries(superlu PUBLIC ${BLAS_LIB} m)
|
||||
+if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
+ target_link_libraries(superlu PUBLIC ${BLAS_LIB})
|
||||
+else()
|
||||
+ target_link_libraries(superlu PUBLIC ${BLAS_LIB} m)
|
||||
+endif()
|
||||
target_include_directories(superlu PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
$<INSTALL_INTERFACE:include>
|
29
ports/superlu/portfile.cmake
Normal file
29
ports/superlu/portfile.cmake
Normal file
@ -0,0 +1,29 @@
|
||||
vcpkg_fail_port_install(ON_ARCH "arm" "arm64" ON_TARGET "UWP")
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO xiaoyeli/superlu
|
||||
REF a3d5233770f0caad4bc4578b46d3b26af99e9c19
|
||||
SHA512 c07e64be51ddef7774a367e1309ef4e596e93571531ec58a0c7b9db60a3db8b3a4a8b1262d66fcd512ad467db5df59a3726db342b259e392a08f56f5dd67c6ef
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
fix-libm.patch
|
||||
remove-make.inc.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DXSDK_ENABLE_Fortran=OFF
|
||||
-Denable_tests=OFF
|
||||
-Denable_blaslib=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/License.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
12
ports/superlu/remove-make.inc.patch
Normal file
12
ports/superlu/remove-make.inc.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index b414f5f..22f29ce 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -155,7 +155,6 @@ endif()
|
||||
# file(WRITE "make.defs" "# can be exposed to users"
|
||||
# ${CMAKE_C_COMPILER} )
|
||||
# configure_file(${CMAKE_SOURCE_DIR}/make.inc.in ${CMAKE_SOURCE_DIR}/make.inc)
|
||||
-configure_file(${SuperLU_SOURCE_DIR}/make.inc.in ${SuperLU_SOURCE_DIR}/make.inc)
|
||||
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/superlu.pc.in ${CMAKE_CURRENT_BINARY_DIR}/superlu.pc @ONLY)
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/superlu.pc
|
@ -1670,6 +1670,9 @@ stormlib:arm-uwp=fail
|
||||
stormlib:x64-uwp=fail
|
||||
stxxl:arm-uwp=fail
|
||||
stxxl:x64-uwp=fail
|
||||
superlu:arm64-windows=fail
|
||||
superlu:arm-uwp=fail
|
||||
superlu:x64-uwp=fail
|
||||
systemc:arm64-windows=fail
|
||||
systemc:arm-uwp=fail
|
||||
systemc:x64-uwp=fail
|
||||
|
Loading…
x
Reference in New Issue
Block a user