vcpkg/ports/libical/portfile.cmake
MonicaLiu 404b948f26
[libical] update to 3.0.15 (#27151)
* Update to 3.0.15

* update version

Co-authored-by: Monica <v-liumonica@microsoft.com>
2022-10-09 13:58:09 -07:00

43 lines
1.3 KiB
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO libical/libical
REF 408c598eea3d40c728df4e7dfd78dcdcc132c377 #v3.0.15
SHA512 7b25f3eab1b81621eb4704943bf9c69f5bb37a3d1489f84e95febb69073fa583877649a3d1109679962175f57f953547601e02349f034eb95b5eda8cfcec6f71
)
vcpkg_find_acquire_program(PERL)
get_filename_component(PERL_PATH ${PERL} DIRECTORY)
vcpkg_add_to_path(${PERL_PATH})
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
INVERTED_FEATURES
"rscale" CMAKE_DISABLE_FIND_PACKAGE_ICU
)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
list(APPEND FEATURE_OPTIONS -DSTATIC_ONLY=ON)
else()
list(APPEND FEATURE_OPTIONS -DSHARED_ONLY=ON)
endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DCMAKE_DISABLE_FIND_PACKAGE_BDB=ON
-DUSE_BUILTIN_TZDATA=ON
-DICAL_GLIB=OFF
-DICAL_BUILD_DOCS=OFF
-DLIBICAL_BUILD_TESTING=OFF
${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(PACKAGE_NAME LibIcal CONFIG_PATH CONFIG_PATH lib/cmake/LibIcal)
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)