2023-02-28 06:34:22 +08:00
|
|
|
include(vcpkg_find_fortran)
|
|
|
|
vcpkg_find_fortran(FORTRAN_CMAKE)
|
2023-03-02 01:45:11 +08:00
|
|
|
set(VCPKG_POLICY_ALLOW_OBSOLETE_MSVCRT enabled)
|
2023-02-28 06:34:22 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO opencollab/arpack-ng
|
|
|
|
REF ${VERSION}
|
2024-04-29 21:13:11 +08:00
|
|
|
SHA512 1ca590a8c4f75aa74402f9bd62e63851039687f4cb11afa8acb05fce1f22a512bff5fd1709ea85fdbea90b344fbbc01e3944c770b5ddc4d1aabc98ac334f78d2
|
2023-02-28 06:34:22 +08:00
|
|
|
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)
|