diff options
author | Dima Panov <fluffy@FreeBSD.org> | 2022-10-15 00:02:09 +0300 |
---|---|---|
committer | Dima Panov <fluffy@FreeBSD.org> | 2022-10-15 00:09:27 +0300 |
commit | f06e9ca2524b70edfb4ce95cf473fb6cf3f4d34f (patch) | |
tree | 67581a34441fc19d18708e6e34b91daed0f5f7da /math/mathgl/files/patch-src_prc.cpp | |
parent | print/libharu: adopt and update to 2.4.3 release (+) (diff) |
math/mathgl: unbreak build after print/libharu update to 2.4.3 (+)
Backport patch from upstream
While here, apply dos2unix conversion
Bump PORTREVISION
Diffstat (limited to 'math/mathgl/files/patch-src_prc.cpp')
-rw-r--r-- | math/mathgl/files/patch-src_prc.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/math/mathgl/files/patch-src_prc.cpp b/math/mathgl/files/patch-src_prc.cpp new file mode 100644 index 000000000000..863bf044492f --- /dev/null +++ b/math/mathgl/files/patch-src_prc.cpp @@ -0,0 +1,24 @@ +--- src/prc.cpp.orig 2021-12-08 05:59:55 UTC ++++ src/prc.cpp +@@ -36,6 +36,7 @@ + #include <hpdf.h> + #include <hpdf_u3d.h> + #include <hpdf_annotation.h> ++#include <hpdf_version.h> + #endif // MGL_HAVE_PDF + + +@@ -959,7 +960,12 @@ void MGL_EXPORT mgl_write_prc(HMGL gr, const char *fna + HPDF_U3D_SetDefault3DView(u3d, "DefaultView"); + + // Create annotation +- annot = HPDF_Page_Create3DAnnot (page, rect, u3d ); ++ annot ++ #if HPDF_VERSION_ID >= 20400 ++ = HPDF_Page_Create3DAnnot (page, rect, HPDF_FALSE, HPDF_FALSE, u3d, NULL); ++ #else ++ = HPDF_Page_Create3DAnnot (page, rect, u3d); ++ #endif + + // Enable toolbar + HPDF_Dict action = (HPDF_Dict)HPDF_Dict_GetItem (annot, "3DA", HPDF_OCLASS_DICT); |