From owner-svn-ports-head@freebsd.org Tue Feb 5 17:46:05 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0E02014C2320; Tue, 5 Feb 2019 17:46:05 +0000 (UTC) (envelope-from lwhsu@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9B0F8858E2; Tue, 5 Feb 2019 17:46:04 +0000 (UTC) (envelope-from lwhsu@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 52CA421454; Tue, 5 Feb 2019 17:46:04 +0000 (UTC) (envelope-from lwhsu@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x15Hk4vl035242; Tue, 5 Feb 2019 17:46:04 GMT (envelope-from lwhsu@FreeBSD.org) Received: (from lwhsu@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x15Hk4pJ035241; Tue, 5 Feb 2019 17:46:04 GMT (envelope-from lwhsu@FreeBSD.org) Message-Id: <201902051746.x15Hk4pJ035241@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: lwhsu set sender to lwhsu@FreeBSD.org using -f From: Li-Wen Hsu Date: Tue, 5 Feb 2019 17:46:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r492260 - in head/editors/libreoffice: . files X-SVN-Group: ports-head X-SVN-Commit-Author: lwhsu X-SVN-Commit-Paths: in head/editors/libreoffice: . files X-SVN-Commit-Revision: 492260 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 9B0F8858E2 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.97)[-0.973,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-0.999,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2019 17:46:05 -0000 Author: lwhsu Date: Tue Feb 5 17:46:03 2019 New Revision: 492260 URL: https://svnweb.freebsd.org/changeset/ports/492260 Log: Add support for powerpc and powerpcspe PR: 234776 Submitted by: jhibbits Added: head/editors/libreoffice/files/patch-powerpc - copied, changed from r492259, head/editors/libreoffice/files/patch-powerpc64 Deleted: head/editors/libreoffice/files/patch-powerpc64 Modified: head/editors/libreoffice/Makefile Modified: head/editors/libreoffice/Makefile ============================================================================== --- head/editors/libreoffice/Makefile Tue Feb 5 17:42:21 2019 (r492259) +++ head/editors/libreoffice/Makefile Tue Feb 5 17:46:03 2019 (r492260) @@ -279,6 +279,8 @@ CXXFLAGS_WARN= -Woverloaded-virtual -Wno-unused-parame 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 Copied and modified: head/editors/libreoffice/files/patch-powerpc (from r492259, head/editors/libreoffice/files/patch-powerpc64) ============================================================================== --- head/editors/libreoffice/files/patch-powerpc64 Tue Feb 5 17:42:21 2019 (r492259, copy source) +++ head/editors/libreoffice/files/patch-powerpc Tue Feb 5 17:46:03 2019 (r492260) @@ -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 @@ @@ -56,6 +80,25 @@ # define OSL_BIGENDIAN # 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 @@