[freetype] Disabled Harfbuzz check for non-Windows platforms (#10073)

* Added ifdef and disabled Harfbuzz check for non-Windows machines

* Updated portfile and CONTROL as requested
This commit is contained in:
Ken Johnson 2020-03-10 20:28:49 -04:00 committed by GitHub
parent cf405d4ed0
commit 93045f2974
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,5 @@
Source: freetype
Version: 2.10.1-4
Version: 2.10.1-5
Build-Depends: zlib
Homepage: https://www.freetype.org/
Description: A library to render fonts.

View File

@ -31,6 +31,11 @@ else()
set(ENABLE_DLL_EXPORT ON)
endif()
set(OPTIONS)
if (NOT VCPKG_TARGET_IS_WINDOWS)
list(APPEND OPTIONS -DFT_DISABLE_FIND_PACKAGE_Harfbuzz=TRUE)
endif()
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
@ -39,6 +44,7 @@ vcpkg_configure_cmake(
-DFT_WITH_ZLIB=ON # Force system zlib.
${FEATURE_OPTIONS}
-DENABLE_DLL_EXPORT=${ENABLE_DLL_EXPORT}
${OPTIONS}
)
vcpkg_install_cmake()