summaryrefslogtreecommitdiff
path: root/graphics/vtk
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2022-07-29 09:56:49 +0000
committerhe <he@pkgsrc.org>2022-07-29 09:56:49 +0000
commit012fa2ba87736f314be2a7f45e01f81d41530965 (patch)
tree084ebcfa479c74ecbecfb3cd3a40ab8e5ce2b079 /graphics/vtk
parentd140565a9b09d234dad112da7861637c1583c325 (diff)
downloadpkgsrc-012fa2ba87736f314be2a7f45e01f81d41530965.tar.gz
graphics/vtk: on NetBSD/powerpc, use libatomic for 8-byte atomics.
Diffstat (limited to 'graphics/vtk')
-rw-r--r--graphics/vtk/hacks.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/graphics/vtk/hacks.mk b/graphics/vtk/hacks.mk
new file mode 100644
index 00000000000..3e4ccf6fa97
--- /dev/null
+++ b/graphics/vtk/hacks.mk
@@ -0,0 +1,13 @@
+# $NetBSD: hacks.mk,v 1.1 2022/07/29 09:56:49 he Exp $
+
+.if !defined(GRAPHICS_VTK_HACKS_MK)
+GRAPHICS_VTK__HACKS_MK= defined
+
+# [Fri Jul 29 11:55:42 CEST 2022 : he ]
+# On NetBSD/powerpc, use devel/libatomic to get 8-byte atomics.
+.if ${MACHINE_ARCH} == "powerpc" && ${OPSYS} == "NetBSD"
+PKG_HACKS+= powerpc-atomics
+.include "../../devel/libatomic/buildlink3.mk"
+.endif
+
+.endif # GRAPHICS_VTK_HACKS_MK