diff options
author | Uffe Jakobsen | 2019-10-09 22:51:35 +0200 |
---|---|---|
committer | Uffe Jakobsen | 2019-10-09 22:51:35 +0200 |
commit | 14fd712194660654e41651b7b95987e2a4451ecf (patch) | |
tree | 6f74bfc169ece95948ab0b0e86a63e7780eeaf9f | |
parent | 430d2680adf69c1390d097bcc6952c548faa50b8 (diff) | |
download | aur-14fd712194660654e41651b7b95987e2a4451ecf.tar.gz |
Apply cmake list hack to work around harfbuzz hb.h inclusion problem
-rw-r--r-- | CMakeLists.txt.patch | 21 | ||||
-rw-r--r-- | PKGBUILD | 1 |
2 files changed, 22 insertions, 0 deletions
diff --git a/CMakeLists.txt.patch b/CMakeLists.txt.patch new file mode 100644 index 000000000000..dacc9c55884f --- /dev/null +++ b/CMakeLists.txt.patch @@ -0,0 +1,21 @@ +--- CMakeLists.txt 2019-10-09 12:20:58.359078260 +0200 ++++ CMakeLists.txt 2019-10-09 13:30:15.743666144 +0200 +@@ -245,14 +245,16 @@ + find_package(GTK3) + set(CMAKE_MODULE_PATH ${OLD_CMAKE_MODULE_PATH}) # Reset, else the official path isn't used again :/ + if (GTK3_FOUND) +- include_directories(${GTK3_INCLUDE_DIRS}) ++ message("-- GTK3 found") ++ include_directories(${GTK3_INCLUDE_DIRS} /usr/include/harfbuzz/) + else (GTK3_FOUND) + message(FATAL_ERROR "Could not locate GTK.") + endif (GTK3_FOUND) + else() + find_package(GTK2) + if (GTK2_FOUND) +- include_directories(${GTK2_INCLUDE_DIRS}) ++ message("-- GTK2 found") ++ include_directories(${GTK2_INCLUDE_DIRS} /usr/include/harfbuzz/) + else (GTK2_FOUND) + message(FATAL_ERROR "Could not locate GTK.") + endif (GTK2_FOUND) @@ -69,6 +69,7 @@ pkg_name_ver="${pkgname}-${pkgver//_/-}" prepare() { cd "${srcdir}/${pkg_name_ver}" + patch -p0 < "${startdir}/CMakeLists.txt.patch" } |