mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-22 15:37:56 +08:00
8fe30fe1ea
* [kealib] add kealib ports
KEALib is a GDAL model library using HDF5 standard.
- Patch library cmake scripts.
- Provide MIT license file.
- Depend on hdf5 library with [cpp] feature.
- No generation of GDAL driver.
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* [kealib] fix option key to specify building shared library
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* [kealib] call copy_pdbs() after install
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* [kealib] update cmake patch
- fix library name in MSVC
- fix to find hdf5 libraries
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* [kealib] add parallel feature
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* Revert "[hdf5] add cpp feature"
This reverts commit fbe8766466
.
* [hdf5] always build cpp library
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* [kealib] drop dependency for feature hdf5[cpp]
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* [kealib] update static link handling
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* [kealib] revert a previous hack for static link to szip/zlib
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* [hdf5] work around szip-config.cmake behavior
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* link dependencies of static libs
39 lines
1.2 KiB
CMake
39 lines
1.2 KiB
CMake
include(vcpkg_common_functions)
|
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/kealib-1.4.7)
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "https://bitbucket.org/chchrsc/kealib/downloads/kealib-1.4.7.tar.gz"
|
|
FILENAME "kealib-1.4.7.tar.gz"
|
|
SHA512 2d58d7d08943d028e19a24f3ad3316a13b4db59be8697cebf30ee621e6bf0a6a47bf61abadd972d6ea7af1c8eed28bba7edf40fb8709fcccc1effbc90ae6e244
|
|
)
|
|
vcpkg_extract_source_archive(${ARCHIVE})
|
|
|
|
vcpkg_apply_patches(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PATCHES
|
|
${CMAKE_CURRENT_LIST_DIR}/fix-cmake.patch
|
|
)
|
|
|
|
if ("parallel" IN_LIST FEATURES)
|
|
set(ENABLE_PARALLEL ON)
|
|
else()
|
|
set(ENABLE_PARALLEL OFF)
|
|
endif()
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}/trunk
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DHDF5_PREFER_PARALLEL=${ENABLE_PARALLEL}
|
|
-DLIBKEA_WITH_GDAL=OFF
|
|
-DDISABLE_TESTS=ON
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
file(INSTALL ${SOURCE_PATH}/trunk/python/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/kealib RENAME copyright)
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin ${CURRENT_PACKAGES_DIR}/bin)
|
|
endif() |