2020-07-07 17:41:59 -03:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mobius3/font-chef
|
2021-11-15 23:32:51 +01:00
|
|
|
REF v1.1.0
|
|
|
|
SHA512 3df1e31e4405bcbb05ffed8fe618eb953498389adef3d83d337ac570644008bee031e08cd64382443ad123c4abf7e0acca5e3e16288caf6225672d6796a9494f
|
2020-07-07 17:41:59 -03:00
|
|
|
HEAD_REF master
|
2021-11-15 23:32:51 +01:00
|
|
|
PATCHES
|
|
|
|
disable-warnings-as-errors.patch # to workaround https://github.com/mobius3/font-chef/issues/3
|
2020-07-07 17:41:59 -03:00
|
|
|
)
|
|
|
|
|
2021-11-15 23:32:51 +01:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-07-07 17:41:59 -03:00
|
|
|
)
|
|
|
|
|
2021-11-15 23:32:51 +01:00
|
|
|
vcpkg_cmake_install()
|
2020-07-07 17:41:59 -03:00
|
|
|
|
2021-11-15 23:32:51 +01:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
2020-07-07 17:41:59 -03:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
|
|
endif()
|
|
|
|
|
2021-11-15 23:32:51 +01:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|