mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-03 08:19:58 +08:00
1db0bfeadf
Update `arpack-ng` version to 3.9.1 - [x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [x] SHA512s are updated for each updated download. - [ ] ~~The "supports" clause reflects platforms that may be fixed by this new version.~~ - [ ] ~~Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file.~~ - [ ] ~~Any patches that are no longer applied are deleted from the port's directory.~~ - [x] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [x] Only one version is added to each modified port's versions file.
36 lines
1.1 KiB
CMake
36 lines
1.1 KiB
CMake
include(vcpkg_find_fortran)
|
|
vcpkg_find_fortran(FORTRAN_CMAKE)
|
|
set(VCPKG_POLICY_ALLOW_OBSOLETE_MSVCRT enabled)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO opencollab/arpack-ng
|
|
REF ${VERSION}
|
|
SHA512 1ca590a8c4f75aa74402f9bd62e63851039687f4cb11afa8acb05fce1f22a512bff5fd1709ea85fdbea90b344fbbc01e3944c770b5ddc4d1aabc98ac334f78d2
|
|
HEAD_REF master
|
|
)
|
|
|
|
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
|
set(ENV{FFLAGS} "$ENV{FFLAGS} -fPIC")
|
|
endif()
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
${FORTRAN_CMAKE}
|
|
-DMPI=OFF
|
|
-DICB=ON
|
|
-DICBEXMM=OFF
|
|
-DEXAMPLES=OFF
|
|
-DTESTS=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME arpackng CONFIG_PATH lib/cmake/arpackng)
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|