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
|
2021-09-08 02:56:42 +08:00
|
|
|
REF 4984102cf5867105a28ae754689566217309d120 #1.4.14
|
|
|
|
SHA512 06628996757bc9cffc5af0f03468ec32246980b6f72f7f1c88a489a8a2aed70924115df0726fcbb9851e44030c6a44ee0f3137660de43af421dec1eab81cc147
|
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
|
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
|
|
|
|
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)
|