2020-03-26 11:43:02 +08:00
|
|
|
vcpkg_from_github(
|
2019-10-08 01:35:13 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-03-26 11:43:02 +08:00
|
|
|
REPO ubarsc/kealib
|
2023-10-04 08:22:40 +08:00
|
|
|
REF "kealib-${VERSION}"
|
|
|
|
SHA512 82399f1332ff2aeb6342732e9e5c897c813109fd18e77cfc8d866f06adf4faa7f080f1f3c0a3b777fb3a679912dacf4851b7ad09a338d6087dd1d26eb2d1689f
|
2020-03-26 11:43:02 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES hdf5_include.patch
|
2018-03-02 02:39:20 +08:00
|
|
|
)
|
|
|
|
|
2021-09-08 02:56:42 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-03-02 02:39:20 +08:00
|
|
|
OPTIONS
|
2021-09-08 02:56:42 +08:00
|
|
|
-DLIBKEA_WITH_GDAL=OFF
|
2023-07-20 14:26:01 +08:00
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_GDAL=ON
|
2018-03-02 02:39:20 +08:00
|
|
|
)
|
|
|
|
|
2021-09-08 02:56:42 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-03-02 02:39:20 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
2021-09-08 02:56:42 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin" "${CURRENT_PACKAGES_DIR}/bin")
|
2019-10-08 01:35:13 +08:00
|
|
|
endif()
|
2020-03-26 11:43:02 +08:00
|
|
|
|
2023-10-04 08:22:40 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libkea)
|
|
|
|
|
2021-09-08 02:56:42 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-03-26 11:43:02 +08:00
|
|
|
|
2021-09-08 02:56:42 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|