aboutsummaryrefslogtreecommitdiff
path: root/ports/harfbuzz
diff options
context:
space:
mode:
authorangelmixu <salemixu@gmail.com>2019-02-08 00:24:33 +0100
committerRobert Schumacher <roschuma@microsoft.com>2019-02-07 15:24:33 -0800
commit1eceb88c71b3ed2a12e9a56823c658ebb2e57cc1 (patch)
tree2649c23cfa8293b7fdac5f3b43ca5d61a6ff859c /ports/harfbuzz
parent0b79c4bb74aa1a1908c23edb3ca07b5e6dd39141 (diff)
downloadvcpkg-1eceb88c71b3ed2a12e9a56823c658ebb2e57cc1.tar.gz
vcpkg-1eceb88c71b3ed2a12e9a56823c658ebb2e57cc1.zip
fix build for harfbuzz on macOS (#4776)
* fix library exports for iconv on macOS, add Threads dependency for cairo, add the iconv, intl and Threads dependencies to harfbuzz * updated portfile from harfbuzz fix * fix indenting and order * fix portfile * [gettext] Add unofficial-gettext targets * [gettext] Fixup for Linux
Diffstat (limited to 'ports/harfbuzz')
-rw-r--r--ports/harfbuzz/0002-fix-macos-build.patch21
-rw-r--r--ports/harfbuzz/CONTROL4
-rw-r--r--ports/harfbuzz/portfile.cmake1
3 files changed, 24 insertions, 2 deletions
diff --git a/ports/harfbuzz/0002-fix-macos-build.patch b/ports/harfbuzz/0002-fix-macos-build.patch
new file mode 100644
index 000000000..3b32092c1
--- /dev/null
+++ b/ports/harfbuzz/0002-fix-macos-build.patch
@@ -0,0 +1,21 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5c613e0..32d3a29 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 2.8.0)
++cmake_minimum_required(VERSION 3.5.0)
+ project(harfbuzz)
+
+ enable_testing()
+@@ -316,6 +316,10 @@ if (HB_HAVE_GLIB)
+
+ find_package(Threads REQUIRED)
+ find_package(unofficial-iconv REQUIRED)
++ if(APPLE)
++ find_package(unofficial-gettext CONFIG REQUIRED)
++ list(APPEND THIRD_PARTY_LIBS unofficial::gettext::libintl)
++ endif()
+ find_package(unofficial-glib CONFIG REQUIRED)
+
+ list(APPEND project_sources ${PROJECT_SOURCE_DIR}/src/hb-glib.cc)
diff --git a/ports/harfbuzz/CONTROL b/ports/harfbuzz/CONTROL
index 32d70f5ec..fccb549ff 100644
--- a/ports/harfbuzz/CONTROL
+++ b/ports/harfbuzz/CONTROL
@@ -1,7 +1,7 @@
Source: harfbuzz
-Version: 1.8.4-3
+Version: 1.8.4-4
Description: HarfBuzz OpenType text shaping engine
-Build-Depends: freetype, ragel
+Build-Depends: freetype, ragel, gettext (osx)
Default-Features: ucdn
Feature: graphite2
diff --git a/ports/harfbuzz/portfile.cmake b/ports/harfbuzz/portfile.cmake
index 382b045e1..d1455e5dc 100644
--- a/ports/harfbuzz/portfile.cmake
+++ b/ports/harfbuzz/portfile.cmake
@@ -11,6 +11,7 @@ vcpkg_from_github(
find-package-freetype-2.patch
glib-cmake.patch
0001-fix-cmake-export.patch
+ 0002-fix-macos-build.patch
)
SET(HB_HAVE_ICU "OFF")