From 8957aaead08dd5763a783a182457c11d40c058a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Wed, 7 Dec 2016 17:34:22 +0100 Subject: [PATCH] documentviewer: fix build on x86_64. --- .../documentviewer-0.3_git.recipe | 3 ++- .../patches/documentviewer-0.3_git.patchset | 21 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 haiku-apps/documentviewer/patches/documentviewer-0.3_git.patchset diff --git a/haiku-apps/documentviewer/documentviewer-0.3_git.recipe b/haiku-apps/documentviewer/documentviewer-0.3_git.recipe index ed80c3c6f..f860a33cd 100644 --- a/haiku-apps/documentviewer/documentviewer-0.3_git.recipe +++ b/haiku-apps/documentviewer/documentviewer-0.3_git.recipe @@ -3,10 +3,11 @@ DESCRIPTION="DocumentViewer is a viewer that supports PDF and DJVU files." HOMEPAGE="http://github.com/HaikuArchives/DocumentViewer" COPYRIGHT="2010-2014 Haiku, Inc" LICENSE="MIT" -REVISION="8" +REVISION="9" SOURCE_URI="https://github.com/HaikuArchives/DocumentViewer/archive/185b59ce4bd850b28c2c3cfcc20a4e2677d4bd44.tar.gz" CHECKSUM_SHA256="29123fbad4ebf83a829480f0e8136e1e55286ae351c6a030ab3e8617481719fc" SOURCE_DIR="DocumentViewer-185b59ce4bd850b28c2c3cfcc20a4e2677d4bd44" +PATCHES="documentviewer-0.3_git.patchset" ARCHITECTURES="!x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="x86" diff --git a/haiku-apps/documentviewer/patches/documentviewer-0.3_git.patchset b/haiku-apps/documentviewer/patches/documentviewer-0.3_git.patchset new file mode 100644 index 000000000..6a44b2603 --- /dev/null +++ b/haiku-apps/documentviewer/patches/documentviewer-0.3_git.patchset @@ -0,0 +1,21 @@ +From 41ca688e6df4c23f387a22d3c3e0418028e74f09 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Wed, 7 Dec 2016 14:51:42 +0000 +Subject: missing cmath for std::sqrt(). + + +diff --git a/application/PrintingWindow.cpp b/application/PrintingWindow.cpp +index 2c3fc44..5513008 100644 +--- a/application/PrintingWindow.cpp ++++ b/application/PrintingWindow.cpp +@@ -9,6 +9,7 @@ + #include "PrintingWindow.h" + + #include ++#include + #include + + #include +-- +2.10.2 +