mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
graphics/darktable: Fix build on aarch64.
Approved by: portmgr (build fix blanket)
This commit is contained in:
parent
9b54d0b437
commit
ec284b1d57
2 changed files with 12 additions and 1 deletions
|
@ -117,7 +117,7 @@ WEBP_CMAKE_OFF= -DUSE_WEBP:BOOL=OFF
|
|||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${ARCH} == powerpc64le
|
||||
.if ${ARCH} == aarch64 || ${ARCH} == powerpc64le
|
||||
CMAKE_ARGS+= -DUSE_OPENCL:BOOL=OFF
|
||||
CXXFLAGS+= -DGDK_DISABLE_DEPRECATED
|
||||
PLIST_SUB+= NO_OPENCL="@comment "
|
||||
|
|
11
graphics/darktable/files/patch-src_is__supported__platform.h
Normal file
11
graphics/darktable/files/patch-src_is__supported__platform.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/is_supported_platform.h.orig 2021-11-14 08:33:27 UTC
|
||||
+++ src/is_supported_platform.h
|
||||
@@ -30,7 +30,7 @@
|
||||
#define DT_SUPPORTED_X86 0
|
||||
#endif
|
||||
|
||||
-#if defined(__aarch64__) && (defined(__ARM_64BIT_STATE) && defined(__ARM_ARCH) && defined(__ARM_ARCH_8A) || defined(__APPLE__))
|
||||
+#if defined(__aarch64__) && (defined(__ARM_64BIT_STATE) && defined(__ARM_ARCH) && defined(__ARM_ARCH_8A) || defined(__APPLE__) || defined(__FreeBSD__))
|
||||
#define DT_SUPPORTED_ARMv8A 1
|
||||
#else
|
||||
#define DT_SUPPORTED_ARMv8A 0
|
Loading…
Add table
Reference in a new issue