aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2019-09-04 03:12:51 +0800
committersunpoet <sunpoet@FreeBSD.org>2019-09-04 03:12:51 +0800
commitdc5e4a3fc7385c92f137f31ac4daad7e2f52f91e (patch)
treee8d50d9be43555607bc3b8fb475aaa35b58f7e69 /databases
parent40b30431b423e81f75e2f1fef3ef58c0f71020b2 (diff)
downloadfreebsd-ports-gnome-dc5e4a3fc7385c92f137f31ac4daad7e2f52f91e.tar.gz
freebsd-ports-gnome-dc5e4a3fc7385c92f137f31ac4daad7e2f52f91e.tar.zst
freebsd-ports-gnome-dc5e4a3fc7385c92f137f31ac4daad7e2f52f91e.zip
Fix build on powerpc64
PR: 240088 Submitted by: pkubaj
Diffstat (limited to 'databases')
-rw-r--r--databases/p5-Tie-LevelDB/Makefile4
-rw-r--r--databases/p5-Tie-LevelDB/files/patch-port-atomic_pointer.h11
2 files changed, 14 insertions, 1 deletions
diff --git a/databases/p5-Tie-LevelDB/Makefile b/databases/p5-Tie-LevelDB/Makefile
index ce284a442c0b..8031cb94e4d5 100644
--- a/databases/p5-Tie-LevelDB/Makefile
+++ b/databases/p5-Tie-LevelDB/Makefile
@@ -14,7 +14,7 @@ COMMENT= Perl Interface to the Google LevelDB NoSQL database
LICENSE= ART10 GPLv1+
LICENSE_COMB= dual
-NOT_FOR_ARCHS= aarch64 powerpc powerpc64 powerpcspe
+NOT_FOR_ARCHS= aarch64 powerpc powerpcspe
NOT_FOR_ARCHS_REASON= does not build: Please implement AtomicPointer for this platform
BROKEN_sparc64= does not build: unrecognized command line options
@@ -29,6 +29,8 @@ MAKE_ARGS= CC="${CXX}"
.if ${CHOSEN_COMPILER_TYPE} == clang
CFLAGS+= -Wno-reserved-user-defined-literal
+.else
+CFLAGS+= -DLEVELDB_CSTDATOMIC_PRESENT
.endif
post-patch:
diff --git a/databases/p5-Tie-LevelDB/files/patch-port-atomic_pointer.h b/databases/p5-Tie-LevelDB/files/patch-port-atomic_pointer.h
new file mode 100644
index 000000000000..3a7b2f35feb0
--- /dev/null
+++ b/databases/p5-Tie-LevelDB/files/patch-port-atomic_pointer.h
@@ -0,0 +1,11 @@
+--- port/atomic_pointer.h.orig 2019-08-25 00:44:43 UTC
++++ port/atomic_pointer.h
+@@ -21,7 +21,7 @@
+
+ #include <stdint.h>
+ #ifdef LEVELDB_CSTDATOMIC_PRESENT
+-#include <cstdatomic>
++#include <atomic>
+ #endif
+ #ifdef OS_WIN
+ #include <windows.h>