For some reason ports-gcc can't find "lz4.h", so pass -I in CXXFLAGS.
Then there's the usual missing include thing in gtest. I should see if I
can upstream that...
I don't think this changes the package where it already builds, but I
can bump REVISION if that's preferred.
Index: Makefile
===================================================================
RCS file: /cvs/ports/archivers/snappy/Makefile,v
retrieving revision 1.18
diff -u -p -r1.18 Makefile
--- Makefile 15 Oct 2023 07:31:06 -0000 1.18
+++ Makefile 16 Oct 2023 19:35:14 -0000
@@ -24,6 +24,8 @@ MODULES = devel/cmake
CONFIGURE_ARGS += -DBUILD_SHARED_LIBS=ON \
-DSNAPPY_BUILD_BENCHMARKS=OFF
+CONFIGURE_ENV += CXXFLAGS="-I${LOCALBASE}/include"
+
# expects submodule/cannot use system library
DIST_TUPLE = github google googletest
e40661d89b051e9ef4eb8a2420b74bf78b39ef41 \
third_party/googletest/ # BSD
Index: patches/patch-third_party_googletest_googletest_src_gtest_cc
===================================================================
RCS file: patches/patch-third_party_googletest_googletest_src_gtest_cc
diff -N patches/patch-third_party_googletest_googletest_src_gtest_cc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-third_party_googletest_googletest_src_gtest_cc 16 Oct
2023 19:38:50 -0000
@@ -0,0 +1,17 @@
+Fix build on sparc64:
+
+gtest.cc:5342:7:
+ error: 'raise' was not declared in this scope
+ raise(SIGTRAP);
+
+Index: third_party/googletest/googletest/src/gtest.cc
+--- third_party/googletest/googletest/src/gtest.cc.orig
++++ third_party/googletest/googletest/src/gtest.cc
+@@ -43,6 +43,7 @@
+ #include <algorithm>
+ #include <chrono> // NOLINT
+ #include <cmath>
++#include <csignal>
+ #include <cstdint>
+ #include <cstdlib>
+ #include <cstring>