2016-12-14 22:58:00 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
2019-10-08 01:35:13 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
|
|
|
set(ADDITIONAL_PATCH "shared.patch")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2017-08-20 04:29:24 +08:00
|
|
|
REPO mm2/Little-CMS
|
2019-05-22 12:00:24 +08:00
|
|
|
REF lcms2.9
|
|
|
|
SHA512 b565ed3714c9beaf13e15b3798abbc6c295443357c8db3299cecd9794620bb1d7c50ad258cf887c7bbf66efacb8d8699a7ee579f8c73598740915caa3044ae70
|
2018-08-08 13:50:51 +08:00
|
|
|
HEAD_REF master
|
2019-10-08 01:35:13 +08:00
|
|
|
PATCHES
|
|
|
|
remove_library_directive.patch
|
|
|
|
${ADDITIONAL_PATCH}
|
|
|
|
)
|
2016-12-14 22:58:00 +08:00
|
|
|
|
2017-08-20 04:29:24 +08:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
2016-12-14 22:58:00 +08:00
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-08-20 04:29:24 +08:00
|
|
|
PREFER_NINJA
|
2016-12-14 22:58:00 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
2019-10-08 01:35:13 +08:00
|
|
|
vcpkg_fixup_cmake_targets()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2017-01-30 22:22:39 +08:00
|
|
|
|
2019-10-08 01:35:13 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/lcms RENAME copyright)
|