Skip to content
Closed
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
1 change: 1 addition & 0 deletions ports/blas/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Source: blas
Version: 1
Port-Version: 1
Description: Metapackage for packages which provide BLAS
Build-Depends: openblas
31 changes: 30 additions & 1 deletion ports/blas/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)

# OpenBLAS
set(BLA_VENDOR OpenBLAS)

# For possible overlays:

#NETLIB reference implementation (contained in lapack-reference)
#set(BLA_VENDOR Generic)

# Intel MKL
#if(VCPKG_TARGET_ARCHITECTURE STREQUAL x64)
# set(BLA_VENDOR Intel10_64lp)
#elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL x86)
# set(BLA_VENDOR Intel10_32)
#else()
# message(FATAL_ERROR "Unsupported target architecture for Intel MKL!")
#endif()

# Apple Accelerate Framework
# set(BLA_VENDOR Apple)

if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
set(BLA_STATIC ON)
else()
set(BLA_STATIC OFF)
endif()

configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)
# Make sure BLAS can be found
vcpkg_configure_cmake(SOURCE_PATH ${CURRENT_PORT_DIR}
OPTIONS -DCMAKE_PREFIX_PATH="${CURRENT_PACKAGES_DIR}")
OPTIONS -DCMAKE_PREFIX_PATH="${CURRENT_PACKAGES_DIR}"
-DBLA_VENDOR=${BLA_VENDOR}
-DBLA_STATIC=${BLA_STATIC})
5 changes: 5 additions & 0 deletions ports/blas/vcpkg-cmake-wrapper.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set(BLA_VENDOR @BLA_VENDOR@)
set(BLA_STATIC @BLA_STATIC@)
_find_package(${ARGS})
unset(BLA_VENDOR)
unset(BLA_STATIC)
2 changes: 1 addition & 1 deletion ports/lapack-reference/CONTROL
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Source: lapack-reference
Version: 3.8.0
Port-Version: 4
Port-Version: 5
Description: LAPACK — Linear Algebra PACKage http://www.netlib.org/lapack/
Default-Features: blas-select
Build-Depends: vcpkg-gfortran (windows)
Expand Down
10 changes: 8 additions & 2 deletions ports/lapack-reference/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ if(VCPKG_TARGET_IS_WINDOWS)
endif()

if(NOT VCPKG_TARGET_IS_WINDOWS)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/lapack)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/FindLAPACK.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/lapack)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
set(BLA_STATIC ON)
else()
set(BLA_STATIC OFF)
endif()
set(BLA_VENDOR Generic)
configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" "${CURRENT_PACKAGES_DIR}/share/lapack/vcpkg-cmake-wrapper.cmake" @ONLY)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/FindLAPACK.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/lapack")
endif()
2 changes: 2 additions & 0 deletions ports/lapack-reference/vcpkg-cmake-wrapper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ list(REMOVE_ITEM ARGS "NO_MODULE")
list(REMOVE_ITEM ARGS "CONFIG")
list(REMOVE_ITEM ARGS "MODULE")

set(BLA_VENDOR @BLA_VENDOR@)
set(BLA_STATIC @BLA_STATIC@)
_find_package(${ARGS})

set(CMAKE_MODULE_PATH ${LAPACK_PREV_MODULE_PATH})
2 changes: 1 addition & 1 deletion ports/lapack/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: lapack
Version: 3
Port-Version: 1
Port-Version: 2
Description: Metapackage for packages which provide LAPACK
Build-Depends: clapack(arm&windows), lapack-reference(!arm|!windows)
14 changes: 13 additions & 1 deletion ports/lapack/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)

if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
set(BLA_STATIC ON)
else()
set(BLA_STATIC OFF)
endif()
set(BLA_VENDOR Generic)
if(VCPKG_TARGET_IS_WINDOWS) # The other wrapper is in lapack-reference
configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" "${CURRENT_PACKAGES_DIR}/share/lapack/vcpkg-cmake-wrapper.cmake" @ONLY)
endif()
# Make sure LAPACK can be found
vcpkg_configure_cmake(SOURCE_PATH ${CURRENT_PORT_DIR}
OPTIONS -DCMAKE_PREFIX_PATH="${CURRENT_PACKAGES_DIR}")
OPTIONS -DCMAKE_PREFIX_PATH="${CURRENT_PACKAGES_DIR}"
-DBLA_VENDOR=${BLA_VENDOR}
-DBLA_STATIC=${BLA_STATIC})

5 changes: 5 additions & 0 deletions ports/lapack/vcpkg-cmake-wrapper.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set(BLA_VENDOR @BLA_VENDOR@)
set(BLA_STATIC @BLA_STATIC@)
_find_package(${ARGS})
unset(BLA_VENDOR)
unset(BLA_STATIC)
5 changes: 5 additions & 0 deletions versions/b-/blas.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "e9b2b37537892de237c078a3d12963654c7dbbe1",
"version-string": "1",
"port-version": 1
},
{
"git-tree": "2877c1693c63195d4edacfb42156c9d8874ad046",
"version-string": "1",
Expand Down
6 changes: 3 additions & 3 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@
},
"blas": {
"baseline": "1",
"port-version": 0
"port-version": 1
},
"blaze": {
"baseline": "3.8",
Expand Down Expand Up @@ -2762,11 +2762,11 @@
},
"lapack": {
"baseline": "3",
"port-version": 1
"port-version": 2
},
"lapack-reference": {
"baseline": "3.8.0",
"port-version": 4
"port-version": 5
},
"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": "b517efd51168209fcdc218bd43bb487656fb0dba",
"version-string": "3.8.0",
"port-version": 5
},
{
"git-tree": "34971ac86a76f6bffefe5962980c3991abf87a58",
"version-string": "3.8.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/lapack.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "459d9d4feb9b3dd3820651e696a38f7bd278e2ea",
"version-string": "3",
"port-version": 2
},
{
"git-tree": "e3e10603a14f3b981ce689ba768d42a1a2ec07d4",
"version-string": "3",
Expand Down