pkgsrc-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2d495f7d8dfe
branches:  trunk
changeset: 439840:2d495f7d8dfe
user:      triaxx <triaxx%pkgsrc.org@localhost>
date:      Tue Sep 29 06:04:58 2020 +0000

description:
libheif: Fix build on FreeBSD

pkgsrc changes:
---------------
  * Add preprocessor test for stdlib.h inclusion on FreeBSD
  * Bump revision

diffstat:

 graphics/libheif/Makefile                                |  3 ++-
 graphics/libheif/distinfo                                |  4 ++--
 graphics/libheif/patches/patch-examples_heif__convert.cc |  7 +++++--
 3 files changed, 9 insertions(+), 5 deletions(-)

diffs (50 lines):

diff -r afd4a9e7b388 -r 2d495f7d8dfe graphics/libheif/Makefile
--- a/graphics/libheif/Makefile Tue Sep 29 05:45:04 2020 +0000
+++ b/graphics/libheif/Makefile Tue Sep 29 06:04:58 2020 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2020/09/28 13:38:13 ryoon Exp $
+# $NetBSD: Makefile,v 1.5 2020/09/29 06:04:58 triaxx Exp $
 
 DISTNAME=      libheif-1.9.1
+PKGREVISION=   1
 CATEGORIES=    graphics
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=strukturag/}
 GITHUB_PROJECT=        libheif
diff -r afd4a9e7b388 -r 2d495f7d8dfe graphics/libheif/distinfo
--- a/graphics/libheif/distinfo Tue Sep 29 05:45:04 2020 +0000
+++ b/graphics/libheif/distinfo Tue Sep 29 06:04:58 2020 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.4 2020/09/28 13:38:13 ryoon Exp $
+$NetBSD: distinfo,v 1.5 2020/09/29 06:04:58 triaxx Exp $
 
 SHA1 (libheif-1.9.1.tar.gz) = 4fd8929b68af2b8f8870f5f7e5ce6918b35460c6
 RMD160 (libheif-1.9.1.tar.gz) = 92a6ff1b051c53da86643ef87c4d6c252772306b
 SHA512 (libheif-1.9.1.tar.gz) = a41ff9666877904da095c72af743b56196c75ce90deaeb1998be7eba9729a62282827e7e916e2a067489cc78e558c55fbb6d70da6a5b5281f6d2efcccbe6dbbe
 Size (libheif-1.9.1.tar.gz) = 1556450 bytes
 SHA1 (patch-configure) = 859f4ae06e77a79a723f2760d426c88787916a9c
-SHA1 (patch-examples_heif__convert.cc) = b4b6b16d40ad87ca20730c4decf337e7bf123ce4
+SHA1 (patch-examples_heif__convert.cc) = 6bdcf91c237824aaa63541370d342d86f5255db8
diff -r afd4a9e7b388 -r 2d495f7d8dfe graphics/libheif/patches/patch-examples_heif__convert.cc
--- a/graphics/libheif/patches/patch-examples_heif__convert.cc  Tue Sep 29 05:45:04 2020 +0000
+++ b/graphics/libheif/patches/patch-examples_heif__convert.cc  Tue Sep 29 06:04:58 2020 +0000
@@ -1,15 +1,18 @@
-$NetBSD: patch-examples_heif__convert.cc,v 1.2 2020/09/28 13:38:13 ryoon Exp $
+$NetBSD: patch-examples_heif__convert.cc,v 1.3 2020/09/29 06:04:58 triaxx Exp $
 
 Include alloca.h on SunOS
 
 --- examples/heif_convert.cc.orig      2020-09-23 14:02:39.000000000 +0000
 +++ examples/heif_convert.cc
-@@ -27,7 +27,7 @@
+@@ -27,8 +27,10 @@
  #include "config.h"
  #endif
  
 -#if defined(_MSC_VER) || defined(__MINGW32__)
 +#if defined(_MSC_VER) || defined(__MINGW32__) || defined(__NetBSD__)
  # include <malloc.h>
++#elif defined(__FreeBSD__)
++# include <stdlib.h>
  #else
  # include <alloca.h>
+ #endif



Home | Main Index | Thread Index | Old Index