pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/libheif graphics/libheif: Fix build on SmartOS



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e6e4d181646f
branches:  trunk
changeset: 440090:e6e4d181646f
user:      otis <otis%pkgsrc.org@localhost>
date:      Fri Oct 02 17:09:35 2020 +0000

description:
graphics/libheif: Fix build on SmartOS

Fix build on SmartOS or other platforms where more include files
are needed.

diffstat:

 graphics/libheif/distinfo                             |   4 +++-
 graphics/libheif/patches/patch-examples_heif__info.cc |  17 +++++++++++++++++
 graphics/libheif/patches/patch-libheif_heif__hevc.cc  |  15 +++++++++++++++
 3 files changed, 35 insertions(+), 1 deletions(-)

diffs (55 lines):

diff -r 7cab45d78079 -r e6e4d181646f graphics/libheif/distinfo
--- a/graphics/libheif/distinfo Fri Oct 02 16:52:34 2020 +0000
+++ b/graphics/libheif/distinfo Fri Oct 02 17:09:35 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2020/09/29 06:04:58 triaxx Exp $
+$NetBSD: distinfo,v 1.6 2020/10/02 17:09:35 otis Exp $
 
 SHA1 (libheif-1.9.1.tar.gz) = 4fd8929b68af2b8f8870f5f7e5ce6918b35460c6
 RMD160 (libheif-1.9.1.tar.gz) = 92a6ff1b051c53da86643ef87c4d6c252772306b
@@ -6,3 +6,5 @@
 Size (libheif-1.9.1.tar.gz) = 1556450 bytes
 SHA1 (patch-configure) = 859f4ae06e77a79a723f2760d426c88787916a9c
 SHA1 (patch-examples_heif__convert.cc) = 6bdcf91c237824aaa63541370d342d86f5255db8
+SHA1 (patch-examples_heif__info.cc) = 105c94a5f37dd6ee2a438d86c7ba10dd76926ec6
+SHA1 (patch-libheif_heif__hevc.cc) = 6a000bf3a6aa6f7adf3f004dd646fb1bd7d30705
diff -r 7cab45d78079 -r e6e4d181646f graphics/libheif/patches/patch-examples_heif__info.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/libheif/patches/patch-examples_heif__info.cc     Fri Oct 02 17:09:35 2020 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-examples_heif__info.cc,v 1.3 2020/10/02 17:09:35 otis Exp $
+
+Help the compiler find the correct prototype for alloca()
+
+--- examples/heif_info.cc.orig 2020-09-22 10:09:51.000000000 +0000
++++ examples/heif_info.cc
+@@ -34,6 +34,10 @@
+ 
+ #include <unistd.h>
+ 
++#if defined(__sun) || defined(sun)
++#include <alloca.h>
++#endif
++
+ #else
+ #define STDOUT_FILENO 1
+ #endif
diff -r 7cab45d78079 -r e6e4d181646f graphics/libheif/patches/patch-libheif_heif__hevc.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/libheif/patches/patch-libheif_heif__hevc.cc      Fri Oct 02 17:09:35 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-libheif_heif__hevc.cc,v 1.1 2020/10/02 17:09:35 otis Exp $
+
+Help the compiler find the prototype fow pow()
+
+--- libheif/heif_hevc.cc.orig  2020-09-22 10:09:51.000000000 +0000
++++ libheif/heif_hevc.cc
+@@ -21,6 +21,8 @@
+ #include "heif_hevc.h"
+ #include "bitstream.h"
+ 
++#include <math.h>
++
+ #include <cmath>
+ 
+ using namespace heif;



Home | Main Index | Thread Index | Old Index