Pretty straight forward, let this port build on arm64.

(btw, it looks like the project is hosted on github now, they have newer
releases than what we have in the tree)

OK?


Index: net/poco/patches/patch-Foundation_include_Poco_Platform_h
===================================================================
RCS file: net/poco/patches/patch-Foundation_include_Poco_Platform_h
diff -N net/poco/patches/patch-Foundation_include_Poco_Platform_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ net/poco/patches/patch-Foundation_include_Poco_Platform_h   26 Sep 2017 
21:25:28 -0000
@@ -0,0 +1,23 @@
+$OpenBSD$
+
+Index: Foundation/include/Poco/Platform.h
+--- Foundation/include/Poco/Platform.h.orig
++++ Foundation/include/Poco/Platform.h
+@@ -145,6 +145,7 @@
+ #define POCO_ARCH_S390    0x0c
+ #define POCO_ARCH_SH      0x0d
+ #define POCO_ARCH_NIOS2   0x0e
++#define POCO_ARCH_AARCH64 0x0f
+ 
+ 
+ #if defined(__ALPHA) || defined(__alpha) || defined(__alpha__) || 
defined(_M_ALPHA)
+@@ -187,6 +188,9 @@
+       #else
+               #define POCO_ARCH_LITTLE_ENDIAN 1
+       #endif
++#elif defined(__AARCH64EL__)
++      #define POCO_ARCH POCO_ARCH_AARCH64
++      #define POCO_ARCH_LITTLE_ENDIAN 1
+ #elif defined(__m68k__)
+       #define POCO_ARCH POCO_ARCH_M68K
+       #define POCO_ARCH_BIG_ENDIAN 1
Index: net/poco/patches/patch-Foundation_src_Environment_VX_cpp
===================================================================
RCS file: net/poco/patches/patch-Foundation_src_Environment_VX_cpp
diff -N net/poco/patches/patch-Foundation_src_Environment_VX_cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ net/poco/patches/patch-Foundation_src_Environment_VX_cpp    26 Sep 2017 
21:23:48 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+
+Index: Foundation/src/Environment_VX.cpp
+--- Foundation/src/Environment_VX.cpp.orig
++++ Foundation/src/Environment_VX.cpp
+@@ -130,6 +130,8 @@ std::string EnvironmentImpl::osArchitectureImpl()
+       return "ppc";
+ #elif POCO_ARCH == POCO_ARCH_ARM
+       return "arm";
++#elif POCO_ARCH == POCO_ARCH_AARCH64
++      return "aarch64";
+ #elif POCO_ARCH == POCO_ARCH_SH
+       return "sh";
+ #else



-- 
If bankers can count, how come they have eight windows and only four
tellers?

Reply via email to