2018-02-25 22:28:15 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO silnrsi/graphite
|
2020-09-19 08:17:21 +08:00
|
|
|
REF 92f59dcc52f73ce747f1cdc831579ed2546884aa # 1.3.14
|
|
|
|
SHA512 011855576124b2f9ae9d7d3a0dfc5489794cf82b81bebc02c11c9cca350feb9fbb411844558811dff1ebbacac58a24a7cf56a374fc2c27e97a5fb4795a01486e
|
2018-02-25 22:28:15 +08:00
|
|
|
HEAD_REF master
|
2018-08-22 08:17:49 +08:00
|
|
|
PATCHES disable-tests.patch
|
2018-03-24 01:47:26 +08:00
|
|
|
)
|
|
|
|
|
2021-11-12 05:38:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-03-24 01:47:26 +08:00
|
|
|
OPTIONS
|
|
|
|
-DDISABLE_TESTS=ON
|
2018-02-25 22:28:15 +08:00
|
|
|
)
|
|
|
|
|
2021-11-12 05:38:04 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-02-25 22:28:15 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2021-11-12 05:38:04 +08:00
|
|
|
vcpkg_cmake_config_fixup()
|
2023-12-07 06:04:33 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/graphite2/Types.h" "defined GRAPHITE2_STATIC" "1")
|
|
|
|
endif()
|
2018-03-24 01:47:26 +08:00
|
|
|
|
2021-11-12 05:38:04 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/libgraphite2.la" "${CURRENT_PACKAGES_DIR}/debug/lib/libgraphite2.la")
|
2018-02-25 22:28:15 +08:00
|
|
|
|
2023-12-07 06:04:33 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING" "${SOURCE_PATH}/LICENSE")
|
2021-10-28 06:19:28 +08:00
|
|
|
|