Index: editors/libreoffice/Makefile =================================================================== --- editors/libreoffice/Makefile (revision 489619) +++ editors/libreoffice/Makefile (working copy) @@ -279,6 +279,8 @@ CXXFLAGS_WARN= -Wshadow -Woverloaded-virtual .endif +CXXFLAGS_powerpcspe= -D__NO_FPRS + post-patch: ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ ${WRKSRC}/shell/source/unix/exec/shellexec.cxx Index: editors/libreoffice/files/patch-powerpc64 =================================================================== --- editors/libreoffice/files/patch-powerpc64 (revision 489619) +++ editors/libreoffice/files/patch-powerpc64 (working copy) @@ -1,20 +1,25 @@ ---- configure.ac.orig -+++ configure.ac -@@ -4189,6 +4189,11 @@ - CPUNAME=X86_64 +--- configure.ac.old 2018-12-30 15:36:04.692353000 -0600 ++++ configure.ac 2018-12-30 15:37:39.225930000 -0600 +@@ -3981,6 +3981,16 @@ RTL_ARCH=X86_64 PLATFORMID=freebsd_x86_64 -+ ;; + ;; + powerpc64) + CPUNAME=POWERPC64 + RTL_ARCH=PowerPC_64 + PLATFORMID=freebsd_powerpc64 - ;; ++ ;; ++ powerpc|powerpcspe) ++ CPUNAME=POWERPC ++ RTL_ARCH=PowerPC ++ PLATFORMID=freebsd_powerpc ++ ;; *) AC_MSG_ERROR([Unsupported host_cpu $host_cpu for host_os $host_os]) ---- configure.orig -+++ configure -@@ -10936,6 +10936,11 @@ + ;; +--- configure.old 2018-12-30 15:33:12.582597000 -0600 ++++ configure 2018-12-30 15:35:48.424447000 -0600 +@@ -11511,6 +11511,16 @@ RTL_ARCH=X86_64 PLATFORMID=freebsd_x86_64 ;; @@ -23,9 +28,28 @@ + RTL_ARCH=PowerPC_64 + PLATFORMID=freebsd_powerpc64 + ;; ++ powerpc|powerpcspe) ++ CPUNAME=POWERPC ++ RTL_ARCH=PowerPC ++ PLATFORMID=freebsd_powerpc ++ ;; *) as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5 ;; +--- bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx.orig ++++ bridges/source/cpp_uno/gcc3_linux_powerpc/uno2cpp.cxx +@@ -18,7 +18,11 @@ + */ + + ++#if defined (FREEBSD) || defined(NETBSD) || defined(OPENBSD) || defined(DRAGONFLY) ++#include ++#else + #include ++#endif + + #include + #include --- bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx.orig +++ bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx @@ -18,7 +18,11 @@ @@ -57,6 +81,25 @@ # endif #elif defined AIX --- /dev/null ++++ solenv/gbuild/platform/FREEBSD_POWERPC_GCC.mk +@@ -0,0 +1,16 @@ ++# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- ++# ++# This file is part of the LibreOffice project. ++# ++# This Source Code Form is subject to the terms of the Mozilla Public ++# License, v. 2.0. If a copy of the MPL was not distributed with this ++# file, You can obtain one at http://mozilla.org/MPL/2.0/. ++# ++ ++#please make generic modifications to unxgcc.mk or linux.mk ++gb_CPUDEFS += -DPPC -DPOWERPC ++gb_COMPILERDEFAULTOPTFLAGS := -O2 ++ ++include $(GBUILDDIR)/platform/unxgcc.mk ++ ++# vim: set noet sw=4: +--- /dev/null +++ solenv/gbuild/platform/FREEBSD_POWERPC64_GCC.mk @@ -0,0 +1,17 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-