git: ea8d13f6c102 - main - graphics/darktable: fix build on powerpc64le
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 30 Dec 2025 14:55:03 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ea8d13f6c1020424c8e6bae5c9ffd8a002717275
commit ea8d13f6c1020424c8e6bae5c9ffd8a002717275
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-12-29 13:51:16 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-12-30 14:54:54 +0000
graphics/darktable: fix build on powerpc64le
Use GCC to work around https://github.com/llvm/llvm-project/issues/147288
Add -lexecinfo because of:
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if(HAVE_EXECINFO_H)
add_definitions("-DDT_HAVE_SIGNAL_TRACE")
message(STATUS "Signal debug: print-trace possible")
endif(HAVE_EXECINFO_H)
endif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
---
graphics/darktable/Makefile | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/graphics/darktable/Makefile b/graphics/darktable/Makefile
index 8fef9cea2700..1dc5eb14e03f 100644
--- a/graphics/darktable/Makefile
+++ b/graphics/darktable/Makefile
@@ -42,9 +42,8 @@ LIB_DEPENDS= libavif.so:graphics/libavif \
libtiff.so:graphics/tiff \
libwebp.so:graphics/webp
-USES= cmake compiler:c++11-lib desktop-file-utils gl gnome jpeg \
- llvm:build lua perl5 pkgconfig sdl shebangfix sqlite \
- tar:xz xorg
+USES= cmake desktop-file-utils gl gnome jpeg llvm:build lua perl5 \
+ pkgconfig sdl shebangfix sqlite tar:xz xorg
USE_GL= gl
USE_GNOME= cairo gtk30 intltool librsvg2 libxml2
USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}
@@ -105,6 +104,13 @@ PLIST_SUB+= NO_OPENCL="@comment "
PLIST_SUB+= NO_OPENCL=""
.endif
+.if ${ARCH} == powerpc64le
+LDFLAGS+= -lexecinfo
+USES+= compiler:gcc-c++11-lib
+.else
+USES+= compiler:c++11-lib
+.endif
+
.include <bsd.port.pre.mk>
# work around CMAKE/CCACHE flaw (cmake stomps over ccache)