--- Makefile (revision 535894) +++ Makefile (working copy) @@ -11,7 +11,7 @@ LICENSE= APACHE20 -ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc64 +ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 ONLY_FOR_ARCHS_REASON= has not been ported to this platform USES= compiler gmake tar:tgz --- files/patch-build-BSD.inc (revision 535894) +++ files/patch-build-BSD.inc (working copy) @@ -1,6 +1,6 @@ ---- build/BSD.inc.orig 2019-12-18 22:42:41 UTC +--- build/BSD.inc.orig 2020-03-30 11:38:06 UTC +++ build/BSD.inc -@@ -22,17 +22,26 @@ ifndef arch +@@ -22,17 +22,29 @@ ifndef arch ifeq ($(shell uname -m),amd64) export arch:=intel64 endif @@ -13,6 +13,9 @@ + ifeq ($(shell uname -p),powerpc64) + export arch:=powerpc64 + endif ++ ifeq ($(shell uname -p),powerpc) ++ export arch:=powerpc ++ endif endif ifndef runtime @@ -30,7 +33,7 @@ debugger ?= gdb CMD=$(SHELL) -c -@@ -42,7 +51,7 @@ RD?=rmdir +@@ -42,7 +54,7 @@ RD?=rmdir MD?=mkdir -p NUL= /dev/null SLASH=/ --- files/patch-build_FreeBSD.gcc.inc (revision 535894) +++ files/patch-build_FreeBSD.gcc.inc (working copy) @@ -1,4 +1,4 @@ ---- build/FreeBSD.gcc.inc.orig 2019-12-20 22:46:13 UTC +--- build/FreeBSD.gcc.inc.orig 2020-03-30 11:38:06 UTC +++ build/FreeBSD.gcc.inc @@ -26,7 +26,7 @@ WARNING_SUPPRESS = -Wno-parentheses @@ -9,15 +9,20 @@ LIBS = -lpthread C_FLAGS = $(CPLUS_FLAGS) -@@ -56,6 +56,11 @@ ifeq (ia64,$(arch)) - endif - +@@ -58,6 +58,16 @@ endif ifeq (intel64,$(arch)) + CPLUS_FLAGS += -m64 + LIB_LINK_FLAGS += -m64 ++endif ++ ++ifeq (powerpc64,$(arch)) + CPLUS_FLAGS += -m64 + LIB_LINK_FLAGS += -m64 +endif + -+ifeq (powerpc64,$(arch)) - CPLUS_FLAGS += -m64 - LIB_LINK_FLAGS += -m64 ++ifeq (powerpc,$(arch)) ++ CPLUS_FLAGS += -m32 ++ LIB_LINK_FLAGS += -m32 endif + + ifeq (ia32,$(arch))