Thu Jun 23 09:32:57 2022 UTC ()
darktable: Only enable hack when GCC is in use.


(nia)
diff -r1.1 -r1.2 pkgsrc/graphics/darktable/hacks.mk

cvs diff -r1.1 -r1.2 pkgsrc/graphics/darktable/hacks.mk (expand / switch to unified diff)

--- pkgsrc/graphics/darktable/hacks.mk 2022/06/23 07:08:36 1.1
+++ pkgsrc/graphics/darktable/hacks.mk 2022/06/23 09:32:57 1.2
@@ -1,20 +1,20 @@ @@ -1,20 +1,20 @@
1# $NetBSD: hacks.mk,v 1.1 2022/06/23 07:08:36 nia Exp $ 1# $NetBSD: hacks.mk,v 1.2 2022/06/23 09:32:57 nia Exp $
2 2
3.if !defined(DARKTABLE_HACKS_MK) 3.if !defined(DARKTABLE_HACKS_MK)
4DARKTABLE_HACKS_MK:= 4DARKTABLE_HACKS_MK:=
5 5
6. include "../../mk/bsd.fast.prefs.mk" 6. include "../../mk/bsd.fast.prefs.mk"
7. if ${OPSYS} == "NetBSD" 7. if ${OPSYS} == "NetBSD" && !empty(PKGSRC_COMPILER:M*gcc*)
8PKG_HACKS+= disable-graphite-opt 8PKG_HACKS+= disable-graphite-opt
9# Disable some of the more ridiculous compiler flags being used, that are 9# Disable some of the more ridiculous compiler flags being used, that are
10# creating build failures with the system compiler on NetBSD due to the 10# creating build failures with the system compiler on NetBSD due to the
11# assumption that the isl/graphite optimizer is available. 11# assumption that the isl/graphite optimizer is available.
12CFLAGS+= -Wno-unknown-pragmas 12CFLAGS+= -Wno-unknown-pragmas
13SUBST_CLASSES+= opt 13SUBST_CLASSES+= opt
14SUBST_MESSAGE.opt= Disabling excessive forced optimizations. 14SUBST_MESSAGE.opt= Disabling excessive forced optimizations.
15SUBST_STAGE.opt+= pre-configure 15SUBST_STAGE.opt+= pre-configure
16SUBST_SED.opt+= -e "s,pragma GCC optimize,pragma GCC nooptimize,g" 16SUBST_SED.opt+= -e "s,pragma GCC optimize,pragma GCC nooptimize,g"
17SUBST_FILES.opt+= src/iop/*.c 17SUBST_FILES.opt+= src/iop/*.c
18SUBST_FILES.opt+= src/iop/*.h 18SUBST_FILES.opt+= src/iop/*.h
19SUBST_FILES.opt+= src/develop/blends/*.c 19SUBST_FILES.opt+= src/develop/blends/*.c
20SUBST_FILES.opt+= src/common/*.c 20SUBST_FILES.opt+= src/common/*.c