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
|
|
|
|
REF de6dabd414039dd36a1ff01243901cec3f45256e #1.4.11
|
|
|
|
SHA512 34032dd27aee0714cbe6b76b2f731a05408fd5ff78080343bcfbc3aa7e6eeb06a341a423cee1e7f3624f4c1f661feaf4ea3a3d2e53172933e49982df0c438a6f
|
|
|
|
HEAD_REF master
|
|
|
|
PATCHES hdf5_include.patch
|
2018-03-02 02:39:20 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
if ("parallel" IN_LIST FEATURES)
|
|
|
|
set(ENABLE_PARALLEL ON)
|
|
|
|
else()
|
|
|
|
set(ENABLE_PARALLEL OFF)
|
|
|
|
endif()
|
|
|
|
|
2019-03-15 05:30:18 +08:00
|
|
|
if(${VCPKG_LIBRARY_LINKAGE} MATCHES "static")
|
|
|
|
set(HDF5_USE_STATIC_LIBRARIES ON)
|
|
|
|
endif()
|
|
|
|
|
2018-03-02 02:39:20 +08:00
|
|
|
vcpkg_configure_cmake(
|
2019-03-15 05:30:18 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2018-03-02 02:39:20 +08:00
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DHDF5_PREFER_PARALLEL=${ENABLE_PARALLEL}
|
|
|
|
-DLIBKEA_WITH_GDAL=OFF
|
|
|
|
-DDISABLE_TESTS=ON
|
2019-03-15 05:30:18 +08:00
|
|
|
-DHDF5_USE_STATIC_LIBRARIES=${HDF5_USE_STATIC_LIBRARIES}
|
2018-03-02 02:39:20 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
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
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/python/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|