2018-01-01 16:19:40 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2018-08-12 13:47:01 +08:00
|
|
|
REPO harfbuzz/harfbuzz
|
2021-01-25 17:47:30 +08:00
|
|
|
REF 7236c7e29cef1c2d76c7a284c5081ff4d3aa1127 # 2.7.4
|
|
|
|
SHA512 d231a788ea4e52231d4c363c1eca76424cb82ed0952b5c24d0b082e88b3dddbda967e7fffe67fffdcb22c7ebfbf0ec923365eb4532be772f2e61fa7d29b51998
|
2018-01-01 16:19:40 +08:00
|
|
|
HEAD_REF master
|
2018-01-19 02:45:34 +08:00
|
|
|
PATCHES
|
2019-03-13 04:54:20 +08:00
|
|
|
0002-fix-uwp-build.patch
|
2017-05-29 17:26:27 +08:00
|
|
|
)
|
|
|
|
|
2020-05-20 06:20:18 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-01-25 17:47:30 +08:00
|
|
|
icu icu
|
|
|
|
graphite2 graphite
|
|
|
|
glib glib
|
2020-05-20 06:20:18 +08:00
|
|
|
)
|
2017-05-29 17:26:27 +08:00
|
|
|
|
2021-01-25 17:47:30 +08:00
|
|
|
string(REPLACE "=ON" "=enabled" FEATURE_OPTIONS "${FEATURE_OPTIONS}")
|
|
|
|
string(REPLACE "=OFF" "=disabled" FEATURE_OPTIONS "${FEATURE_OPTIONS}")
|
|
|
|
|
|
|
|
vcpkg_configure_meson(
|
2017-04-15 20:39:04 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2020-05-20 06:20:18 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
2021-01-25 17:47:30 +08:00
|
|
|
-Dfreetype=enabled
|
|
|
|
-Dgobject=disabled
|
|
|
|
-Dcairo=disabled
|
|
|
|
-Dfontconfig=disabled
|
|
|
|
-Dintrospection=disabled
|
|
|
|
-Ddocs=disabled
|
|
|
|
-Dtests=disabled
|
|
|
|
-Dbenchmark=disabled
|
2016-10-08 03:09:58 +08:00
|
|
|
)
|
|
|
|
|
2021-01-25 17:47:30 +08:00
|
|
|
vcpkg_install_meson()
|
2017-04-15 20:39:04 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2021-01-25 17:47:30 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2017-01-26 18:25:24 +08:00
|
|
|
|
2021-01-25 17:47:30 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/cmake")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/cmake")
|
|
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/harfbuzzConfig.cmake.in"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/share/${PORT}/harfbuzzConfig.cmake" @ONLY)
|
2019-06-12 04:39:40 +08:00
|
|
|
|
2016-10-08 03:09:58 +08:00
|
|
|
# Handle copyright
|
2020-05-20 06:20:18 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|