summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2021-07-14 17:24:54 +0000
committeradam <adam@pkgsrc.org>2021-07-14 17:24:54 +0000
commitd82e96630c89258b5e557b657e33433d846b3de1 (patch)
tree964d46d143007387776320370d09b0d604b94ce5
parent0c04d049a6bc1dbb0fc6e94ff716af233d4a2726 (diff)
downloadpkgsrc-d82e96630c89258b5e557b657e33433d846b3de1.tar.gz
libheif: fix building with Clang
-rw-r--r--graphics/libheif/Makefile7
-rw-r--r--graphics/libheif/buildlink3.mk4
2 files changed, 7 insertions, 4 deletions
diff --git a/graphics/libheif/Makefile b/graphics/libheif/Makefile
index 3d05bcd3598..40bfc0a6c2f 100644
--- a/graphics/libheif/Makefile
+++ b/graphics/libheif/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2021/05/20 08:21:21 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2021/07/14 17:24:54 adam Exp $
DISTNAME= libheif-1.12.0
CATEGORIES= graphics
@@ -18,13 +18,16 @@ USE_LANGUAGES= c c++
CONFIGURE_ARGS+= --disable-go
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mgcc)
CXXFLAGS.NetBSD+= -Wno-error=maybe-uninitialized
+.endif
PKGCONFIG_OVERRIDE+= libheif.pc.in
-.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../multimedia/libaom/buildlink3.mk"
.include "../../multimedia/libde265/buildlink3.mk"
.include "../../multimedia/x265/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/libheif/buildlink3.mk b/graphics/libheif/buildlink3.mk
index c565a9cc5ee..fb095d4b1ab 100644
--- a/graphics/libheif/buildlink3.mk
+++ b/graphics/libheif/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.2 2021/04/12 08:29:59 adam Exp $
+# $NetBSD: buildlink3.mk,v 1.3 2021/07/14 17:24:54 adam Exp $
BUILDLINK_TREE+= libheif
@@ -6,7 +6,7 @@ BUILDLINK_TREE+= libheif
LIBHEIF_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.libheif+= libheif>=1.8.0
-BUILDLINK_ABI_DEPENDS.libheif?= libheif>=1.11.0nb1
+BUILDLINK_ABI_DEPENDS.libheif+= libheif>=1.11.0nb1
BUILDLINK_PKGSRCDIR.libheif?= ../../graphics/libheif
.include "../../graphics/png/buildlink3.mk"