pkgsrc-Changes archive

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

CVS commit: pkgsrc/graphics/libheif



Module Name:    pkgsrc
Committed By:   dholland
Date:           Fri Apr  4 01:00:52 UTC 2025

Modified Files:
        pkgsrc/graphics/libheif: buildlink3.mk

Log Message:
libheif: restore bl3 hook to divert to the c++11 version

(but only for gcc versions that support c++11 but not c++17)

XXX: If we're going to do this sort of thing there should be
XXX: infrastructure. If we start spraying logic like this all over
XXX: everywhere we'll eventually regret it.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/graphics/libheif/buildlink3.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/libheif/buildlink3.mk
diff -u pkgsrc/graphics/libheif/buildlink3.mk:1.16 pkgsrc/graphics/libheif/buildlink3.mk:1.17
--- pkgsrc/graphics/libheif/buildlink3.mk:1.16  Thu Apr  3 07:03:48 2025
+++ pkgsrc/graphics/libheif/buildlink3.mk       Fri Apr  4 01:00:52 2025
@@ -1,9 +1,19 @@
-# $NetBSD: buildlink3.mk,v 1.16 2025/04/03 07:03:48 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.17 2025/04/04 01:00:52 dholland Exp $
 
 BUILDLINK_TREE+=       libheif
 
 .include "../../mk/compiler.mk"
 
+# Intercept gcc versions that accept c++11 but not c++17.
+#
+# XXX: This version logic should not be pasted into bl3 files all over
+# XXX: the place; if we're going to do this, there should be
+# XXX: infrastructure for it.
+.if ${CC_VERSION:Mgcc-4.[89].*} || ${CC_VERSION:Mgcc-[56].*}
+# this defines LIBHEIF_BUILDLINK3_MK so the next sections aren't used
+.  include "../../graphics/libheif-cxx11/buildlink3.mk"
+.endif
+
 .if !defined(LIBHEIF_BUILDLINK3_MK)
 LIBHEIF_BUILDLINK3_MK:=
 



Home | Main Index | Thread Index | Old Index