mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 15:32:47 +08:00
[vcpkg baseline][lapack-reference] Fix copy openblas's pkgconfig file (#19628)
* [lapack-reference] Fix copy openblas's pkgconfig file * version * Use vcpkg-cmake and vcpkg-cmake-config instead * version stuff * Restore the changes about vcpkg-cmake-configure / vcpkg-cmake-install * update version keyword * version
This commit is contained in:
parent
b590d6abb1
commit
620cb9ad5d
@ -1,17 +0,0 @@
|
||||
Source: lapack-reference
|
||||
Version: 3.8.0
|
||||
Port-Version: 5
|
||||
Description: LAPACK — Linear Algebra PACKage http://www.netlib.org/lapack/
|
||||
Default-Features: blas-select
|
||||
Build-Depends: vcpkg-gfortran (windows)
|
||||
|
||||
Feature: cblas
|
||||
Description: Builds CBLAS
|
||||
|
||||
Feature: noblas
|
||||
Build-Depends: blas
|
||||
Description: Use external optimized BLAS
|
||||
|
||||
Feature: blas-select
|
||||
Build-Depends: lapack-reference[core, noblas](!windows|!static)
|
||||
Description: Use external optimized BLAS
|
@ -60,17 +60,19 @@ if(VCPKG_USE_INTERNAL_Fortran)
|
||||
else()
|
||||
set(USE_OPTIMIZED_BLAS ON)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
PREFER_NINJA
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
"-DUSE_OPTIMIZED_BLAS=${USE_OPTIMIZED_BLAS}"
|
||||
"-DCBLAS=${CBLAS}"
|
||||
${FORTRAN_CMAKE}
|
||||
)
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
"-DUSE_OPTIMIZED_BLAS=${USE_OPTIMIZED_BLAS}"
|
||||
"-DCBLAS=${CBLAS}"
|
||||
${FORTRAN_CMAKE}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/lapack-${lapack_ver}) #Should the target path be lapack and not lapack-reference?
|
||||
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME lapack-${lapack_ver} CONFIG_PATH lib/cmake/lapack-${lapack_ver}) #Should the target path be lapack and not lapack-reference?
|
||||
|
||||
set(pcfile "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/lapack.pc")
|
||||
if(EXISTS "${pcfile}")
|
||||
@ -84,7 +86,7 @@ if(EXISTS "${pcfile}")
|
||||
set(_contents "prefix=${CURRENT_INSTALLED_DIR}/debug\n${_contents}")
|
||||
file(WRITE "${pcfile}" "${_contents}")
|
||||
endif()
|
||||
if(NOT USE_OPTIMIZED_BLAS)
|
||||
if(NOT USE_OPTIMIZED_BLAS AND NOT (VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "static"))
|
||||
set(pcfile "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/blas.pc")
|
||||
if(EXISTS "${pcfile}")
|
||||
file(READ "${pcfile}" _contents)
|
||||
|
44
ports/lapack-reference/vcpkg.json
Normal file
44
ports/lapack-reference/vcpkg.json
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
"name": "lapack-reference",
|
||||
"version-semver": "3.8.0",
|
||||
"port-version": 6,
|
||||
"description": "LAPACK — Linear Algebra PACKage",
|
||||
"homepage": "http://www.netlib.org/lapack/",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-gfortran",
|
||||
"platform": "windows"
|
||||
}
|
||||
],
|
||||
"default-features": [
|
||||
"blas-select"
|
||||
],
|
||||
"features": {
|
||||
"blas-select": {
|
||||
"description": "Use external optimized BLAS",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "lapack-reference",
|
||||
"default-features": false,
|
||||
"features": [
|
||||
"noblas"
|
||||
],
|
||||
"platform": "!windows | !static"
|
||||
}
|
||||
]
|
||||
},
|
||||
"cblas": {
|
||||
"description": "Builds CBLAS"
|
||||
},
|
||||
"noblas": {
|
||||
"description": "Use external optimized BLAS",
|
||||
"dependencies": [
|
||||
"blas"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -3018,7 +3018,7 @@
|
||||
},
|
||||
"lapack-reference": {
|
||||
"baseline": "3.8.0",
|
||||
"port-version": 5
|
||||
"port-version": 6
|
||||
},
|
||||
"lastools": {
|
||||
"baseline": "2020-05-09",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "10799c7ec42f8369179ba7a8e927235596cb8bb7",
|
||||
"version-semver": "3.8.0",
|
||||
"port-version": 6
|
||||
},
|
||||
{
|
||||
"git-tree": "1887fc1fcb0c96df1ea24fffc9b045330426e3b6",
|
||||
"version-string": "3.8.0",
|
||||
|
Loading…
Reference in New Issue
Block a user