From 7ad163e476f6ad9db9b6508d52f8f403b85c80d0 Mon Sep 17 00:00:00 2001 From: Phoebe <20694052+PhoebeHui@users.noreply.github.com> Date: Tue, 18 Aug 2020 17:03:36 -0700 Subject: [harfbuzz] Fix include path (#12871) --- ports/harfbuzz/CONTROL | 1 + ports/harfbuzz/fix_include.patch | 12 ++++++++++++ ports/harfbuzz/portfile.cmake | 1 + 3 files changed, 14 insertions(+) create mode 100644 ports/harfbuzz/fix_include.patch diff --git a/ports/harfbuzz/CONTROL b/ports/harfbuzz/CONTROL index 4dbeebf7c..31901b9d9 100644 --- a/ports/harfbuzz/CONTROL +++ b/ports/harfbuzz/CONTROL @@ -1,5 +1,6 @@ Source: harfbuzz Version: 2.6.6 +Port-Version: 1 Description: HarfBuzz OpenType text shaping engine Homepage: https://github.com/behdad/harfbuzz Build-Depends: freetype[core], ragel, gettext (osx) diff --git a/ports/harfbuzz/fix_include.patch b/ports/harfbuzz/fix_include.patch new file mode 100644 index 000000000..894f7b37c --- /dev/null +++ b/ports/harfbuzz/fix_include.patch @@ -0,0 +1,12 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c4dc524..bfd15ec 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -431,6 +431,7 @@ endif () + + ## Define harfbuzz library + add_library(harfbuzz ${project_sources} ${project_extra_sources} ${project_headers}) ++target_include_directories(harfbuzz PUBLIC $) + target_link_libraries(harfbuzz ${THIRD_PARTY_LIBS}) + + diff --git a/ports/harfbuzz/portfile.cmake b/ports/harfbuzz/portfile.cmake index 8e82f9d6e..d15504401 100644 --- a/ports/harfbuzz/portfile.cmake +++ b/ports/harfbuzz/portfile.cmake @@ -12,6 +12,7 @@ vcpkg_from_github( find-package-freetype-2.patch # This patch is required for propagating the full list of dependencies from glib glib-cmake.patch + fix_include.patch ) file(READ ${SOURCE_PATH}/CMakeLists.txt _contents) -- cgit v1.2.3