View | Details | Raw Unified | Return to bug 200020 | Differences between
and this patch

Collapse All | Expand All

(-)b/Makefile (+5 lines)
Lines 325-330 Link Here
325
EXTRA_PATCHES+=	${FILESDIR}/extra-configure.ac
325
EXTRA_PATCHES+=	${FILESDIR}/extra-configure.ac
326
.endif
326
.endif
327
327
328
.if ${ARCH} == "powerpc64"
329
EXTRA_PATCHES+= ${FILESDIR}/extra-enable_powerpc64_build
330
USE_GCC= 4.8+
331
.endif
332
328
.if ${OSVERSION} < 900506
333
.if ${OSVERSION} < 900506
329
CONFIGURE_ARGS+=	--with-linker-hash-style=sysv
334
CONFIGURE_ARGS+=	--with-linker-hash-style=sysv
330
.endif
335
.endif
(-)libreoffice_local/Makefile.common (-1 / +1 lines)
Lines 17-23 Link Here
17
MASTER_SITES?=	http://download.documentfoundation.org/libreoffice/${MASTER_SITE_SUBDIR}/
17
MASTER_SITES?=	http://download.documentfoundation.org/libreoffice/${MASTER_SITE_SUBDIR}/
18
.endif
18
.endif
19
19
20
ONLY_FOR_ARCH=	i386 amd64
20
ONLY_FOR_ARCH=	i386 amd64 powerpc64
21
21
22
# for dynamic plist generation
22
# for dynamic plist generation
23
PLISTD?=	${WRKDIR}/plist_dirs
23
PLISTD?=	${WRKDIR}/plist_dirs
(-)b/files/extra-enable_powerpc64_build (+96 lines)
Line 0 Link Here
1
--- a/bridges/Library_cpp_uno.mk	2015-04-20 15:36:29.000000000 -0400
2
+++ b/bridges/Library_cpp_uno.mk	2015-05-06 18:16:35.314879000 -0400
3
@@ -119,6 +119,12 @@
4
 bridge_noopt_objects := except
5
 bridge_exception_objects := cpp2uno uno2cpp
6
 
7
+else ifeq ($(OS)-$(CPUNAME),FREEBSD-POWERPC64)
8
+
9
+bridges_SELECTED_BRIDGE := gcc3_linux_powerpc64
10
+bridge_noopt_objects := cpp2uno uno2cpp
11
+bridge_exception_objects := except
12
+
13
 else ifeq ($(CPUNAME),X86_64)
14
 
15
 ifneq ($(filter DRAGONFLY FREEBSD LINUX NETBSD OPENBSD,$(OS)),)
16
--- a/bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx	2015-04-20 15:36:29.000000000 -0400
17
+++ b/bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx	2015-05-06 18:16:35.331133000 -0400
18
@@ -17,8 +17,11 @@
19
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
20
  */
21
 
22
-
23
+#if defined (FREEBSD) || defined(NETBSD) || defined(OPENBSD) || defined(DRAGONFLY)
24
+#include <stdlib.h>
25
+#else
26
 #include <malloc.h>
27
+#endif
28
 
29
 #include <com/sun/star/uno/genfunc.hxx>
30
 #include <uno/data.h>
31
--- a/configure.ac	2015-05-06 18:08:54.099927000 -0400
32
+++ b/configure.ac	2015-05-06 18:15:16.156078000 -0400
33
@@ -4275,6 +4275,11 @@
34
         RTL_ARCH=X86_64
35
         PLATFORMID=freebsd_x86_64
36
         ;;
37
+    powerpc64)
38
+        CPUNAME=POWERPC64
39
+        RTL_ARCH=PowerPC_64
40
+        PLATFORMID=freebsd_powerpc64
41
+        ;;
42
     *)
43
         AC_MSG_ERROR([Unsupported host_cpu $host_cpu for host_os $host_os])
44
         ;;
45
--- a/solenv/gbuild/platform/FREEBSD_POWERPC64_GCC.mk	1969-12-31 19:00:00.000000000 -0500
46
+++ b/solenv/gbuild/platform/FREEBSD_POWERPC64_GCC.mk	2015-05-06 18:16:35.299362000 -0400
47
@@ -0,0 +1,17 @@
48
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
49
+#
50
+# This file is part of the LibreOffice project.
51
+#
52
+# This Source Code Form is subject to the terms of the Mozilla Public
53
+# License, v. 2.0. If a copy of the MPL was not distributed with this
54
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
55
+#
56
+
57
+#please make generic modifications to unxgcc.mk
58
+gb_CPUDEFS += -DPPC
59
+gb_COMPILERDEFAULTOPTFLAGS := -O2
60
+gb_CXXFLAGS += -mminimal-toc
61
+
62
+include $(GBUILDDIR)/platform/unxgcc.mk
63
+
64
+# vim: set noet sw=4:
65
--- a/testtools/CustomTarget_uno_test.mk	2015-05-06 20:11:22.846110000 -0400
66
+++ b/testtools/CustomTarget_uno_test.mk	2015-05-06 20:10:07.369638000 -0400
67
@@ -13,17 +13,17 @@
68
 .PHONY : $(call gb_CustomTarget_get_target,testtools/uno_test)
69
 
70
 $(call gb_CustomTarget_get_target,testtools/uno_test) : \
71
-		$(call gb_Executable_get_runtime_dependencies,uno) \
72
-		$(call gb_InternalUnoApi_get_target,bridgetest) \
73
-		$(call gb_Rdb_get_target,uno_services) \
74
-		$(call gb_Rdb_get_target,ure/services) \
75
-		$(call gb_UnoApi_get_target,udkapi)
76
-	$(call gb_Helper_abbreviate_dirs,\
77
-		$(call gb_Executable_get_command,uno) \
78
-		-s com.sun.star.test.bridge.BridgeTest \
79
-		-- com.sun.star.test.bridge.CppTestObject \
80
-		-env:LO_BUILD_LIB_DIR=$(call gb_Helper_make_url,$(gb_Library_WORKDIR_FOR_BUILD)) \
81
-		-env:URE_MORE_SERVICES=$(call gb_Helper_make_url,$(call gb_Rdb_get_target,uno_services)) \
82
-		-env:URE_MORE_TYPES=$(call gb_Helper_make_url,$(WORKDIR)/UnoApiTarget/bridgetest.rdb))
83
+#		$(call gb_Executable_get_runtime_dependencies,uno) \
84
+#		$(call gb_InternalUnoApi_get_target,bridgetest) \
85
+#		$(call gb_Rdb_get_target,uno_services) \
86
+#		$(call gb_Rdb_get_target,ure/services) \
87
+#		$(call gb_UnoApi_get_target,udkapi)
88
+#	$(call gb_Helper_abbreviate_dirs,\
89
+#		$(call gb_Executable_get_command,uno) \
90
+#		-s com.sun.star.test.bridge.BridgeTest \
91
+#		-- com.sun.star.test.bridge.CppTestObject \
92
+#		-env:LO_BUILD_LIB_DIR=$(call gb_Helper_make_url,$(gb_Library_WORKDIR_FOR_BUILD)) \
93
+#		-env:URE_MORE_SERVICES=$(call gb_Helper_make_url,$(call gb_Rdb_get_target,uno_services)) \
94
+#		-env:URE_MORE_TYPES=$(call gb_Helper_make_url,$(WORKDIR)/UnoApiTarget/bridgetest.rdb))
95
 
96
 # vim:set shiftwidth=4 tabstop=4 noexpandtab:

Return to bug 200020