aboutsummaryrefslogtreecommitdiff
path: root/ports/libharu
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2019-04-03 02:16:30 -0700
committerRobert Schumacher <roschuma@microsoft.com>2019-04-03 04:15:00 -0700
commitd788ada4e97ce5b36fc397a94da453814342ec43 (patch)
tree158c36dcfd2cf8514b409a9074e2d526c963458b /ports/libharu
parent641e1cd53db09305530130c78ef2b473a52682a1 (diff)
downloadvcpkg-d788ada4e97ce5b36fc397a94da453814342ec43.tar.gz
vcpkg-d788ada4e97ce5b36fc397a94da453814342ec43.zip
[vtk] Fix flakiness by relying on vcpkg-provided dependencies
[libharu] Add patches required for vtk [vcpkg-build-cmake] Add retry logic for mt.exe failures
Diffstat (limited to 'ports/libharu')
-rw-r--r--ports/libharu/CONTROL2
-rw-r--r--ports/libharu/add-boolean-typedef.patch12
-rw-r--r--ports/libharu/portfile.cmake15
3 files changed, 26 insertions, 3 deletions
diff --git a/ports/libharu/CONTROL b/ports/libharu/CONTROL
index c4f48ab3d..72778aa6b 100644
--- a/ports/libharu/CONTROL
+++ b/ports/libharu/CONTROL
@@ -1,4 +1,4 @@
Source: libharu
-Version: 2017-08-15-d84867ebf9f-5
+Version: 2017-08-15-d84867ebf9f-6
Description: libharu - free PDF library
Build-Depends: zlib, libpng
diff --git a/ports/libharu/add-boolean-typedef.patch b/ports/libharu/add-boolean-typedef.patch
new file mode 100644
index 000000000..7768ed301
--- /dev/null
+++ b/ports/libharu/add-boolean-typedef.patch
@@ -0,0 +1,12 @@
+diff --git a/include/hpdf.h b/include/hpdf.h
+index 1cf0dd9..cce9b59 100644
+--- a/include/hpdf.h
++++ b/include/hpdf.h
+@@ -54,6 +54,7 @@
+ #include "hpdf_types.h"
+
+ typedef void *HPDF_HANDLE;
++typedef HPDF_HANDLE HPDF_Boolean;
+ typedef HPDF_HANDLE HPDF_Doc;
+ typedef HPDF_HANDLE HPDF_Page;
+ typedef HPDF_HANDLE HPDF_Pages;
diff --git a/ports/libharu/portfile.cmake b/ports/libharu/portfile.cmake
index 42f85c2b4..7855dedc7 100644
--- a/ports/libharu/portfile.cmake
+++ b/ports/libharu/portfile.cmake
@@ -1,11 +1,22 @@
include(vcpkg_common_functions)
+
+vcpkg_download_distfile(SHADING_PR
+ URLS "https://github.com/libharu/libharu/pull/157.diff"
+ FILENAME "libharu-shading-pr-157.patch"
+ SHA512 f2ddb22b54b4eccc79400b6a4b2d245a221898f75456a5a559523eab7a523a87dfc5dfd0ec5fb17a771697e03c7ea6ed4c6095eff73e0a4302cd6eb24584c957
+)
+
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO libharu/libharu
REF d84867ebf9f3de6afd661d2cdaff102457fbc371
SHA512 789579dd52c1056ae90a4ce5360c26ba92cadae5341a3901c4159afe624129a1f628fa6412952a398e048b0e5040c93f7ed5b4e4bc620a22d897098298fe2a99
HEAD_REF master
- PATCHES fix-build-fail.patch
+ PATCHES
+ fix-build-fail.patch
+ add-boolean-typedef.patch
+ # This patch adds shading support which is required for VTK. If desired, this could be moved into an on-by-default feature.
+ ${SHADING_PR}
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" LIBHPDF_STATIC)
@@ -21,7 +32,7 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
-if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/libhpdfs.lib ${CURRENT_PACKAGES_DIR}/lib/libhpdf.lib)
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/libhpdfsd.lib ${CURRENT_PACKAGES_DIR}/debug/lib/libhpdfd.lib)
endif()