Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions ports/lapack-reference/CONTROL

This file was deleted.

20 changes: 11 additions & 9 deletions ports/lapack-reference/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,19 @@ if(VCPKG_USE_INTERNAL_Fortran)
else()
set(USE_OPTIMIZED_BLAS ON)
endif()

vcpkg_configure_cmake(
Comment thread
JackBoosY marked this conversation as resolved.
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}")
Expand All @@ -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)
Expand Down
44 changes: 44 additions & 0 deletions ports/lapack-reference/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3010,7 +3010,7 @@
},
"lapack-reference": {
"baseline": "3.8.0",
"port-version": 5
"port-version": 6
},
"lastools": {
"baseline": "2020-05-09",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/lapack-reference.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "10799c7ec42f8369179ba7a8e927235596cb8bb7",
"version-semver": "3.8.0",
"port-version": 6
},
{
"git-tree": "1887fc1fcb0c96df1ea24fffc9b045330426e3b6",
"version-string": "3.8.0",
Expand Down