svn commit: r561660 - head/emulators/mame/files
Piotr Kubaj
pkubaj at FreeBSD.org
Fri Jan 15 18:00:46 UTC 2021
Author: pkubaj
Date: Fri Jan 15 18:00:45 2021
New Revision: 561660
URL: https://svnweb.freebsd.org/changeset/ports/561660
Log:
emulators/mame: fix build on powerpc64
Use on powerpc64 the same options that upstream uses on ppc64 (Linux name for our powerpc64).
MFH: 2021Q1
Modified:
head/emulators/mame/files/patch-makefile
Modified: head/emulators/mame/files/patch-makefile
==============================================================================
--- head/emulators/mame/files/patch-makefile Fri Jan 15 17:58:00 2021 (r561659)
+++ head/emulators/mame/files/patch-makefile Fri Jan 15 18:00:45 2021 (r561660)
@@ -1,6 +1,41 @@
---- makefile.orig 2020-10-27 02:00:36.000000000 +0100
-+++ makefile 2020-12-26 00:03:58.094364000 +0100
-@@ -419,15 +419,15 @@
+--- makefile.orig 2020-10-27 01:00:36 UTC
++++ makefile
+@@ -319,6 +319,9 @@ endif
+ ifeq ($(firstword $(filter ppc64,$(UNAME))),ppc64)
+ ARCHITECTURE := _x64
+ endif
++ifeq ($(firstword $(filter powerpc64,$(UNAME))),powerpc64)
++ARCHITECTURE := _x64
++endif
+ ifeq ($(firstword $(filter ppc64le,$(UNAME))),ppc64le)
+ ARCHITECTURE := _x64
+ endif
+@@ -399,6 +402,13 @@ ifndef FORCE_DRC_C_BACKEND
+ endif
+ endif
+
++# powerpc has inline assembly support but no DRC
++ifeq ($(findstring powerpc,$(UNAME)),powerpc)
++ifndef FORCE_DRC_C_BACKEND
++ FORCE_DRC_C_BACKEND := 1
++endif
++endif
++
+ # Autodetect BIGENDIAN
+ # MacOSX
+ ifndef BIGENDIAN
+@@ -416,18 +426,26 @@ endif
+ ifneq (,$(findstring s390x,$(UNAME)))
+ BIGENDIAN := 1
+ endif
++# FreeBSD
++ifneq (,$(findstring powerpc,$(UNAME)))
++ifneq (,$(findstring powerpc64le,$(UNAME)))
++BIGENDIAN := 0
++else
++BIGENDIAN := 1
++endif
++endif
endif # BIGENDIAN
ifndef PYTHON_EXECUTABLE
@@ -21,7 +56,7 @@
endif
#-------------------------------------------------
-@@ -558,19 +558,19 @@
+@@ -558,19 +576,19 @@ endif
ifdef OVERRIDE_CC
PARAMS += --CC='$(OVERRIDE_CC)'
ifndef CROSS_BUILD
More information about the svn-ports-all
mailing list