svn commit: r561661 - branches/2021Q1/emulators/mame/files

Piotr Kubaj pkubaj at FreeBSD.org
Fri Jan 15 18:01:27 UTC 2021


Author: pkubaj
Date: Fri Jan 15 18:01:26 2021
New Revision: 561661
URL: https://svnweb.freebsd.org/changeset/ports/561661

Log:
  MFH: r561660
  
  emulators/mame: fix build on powerpc64
  
  Use on powerpc64 the same options that upstream uses on ppc64 (Linux name for our powerpc64).

Modified:
  branches/2021Q1/emulators/mame/files/patch-makefile
Directory Properties:
  branches/2021Q1/   (props changed)

Modified: branches/2021Q1/emulators/mame/files/patch-makefile
==============================================================================
--- branches/2021Q1/emulators/mame/files/patch-makefile	Fri Jan 15 18:00:45 2021	(r561660)
+++ branches/2021Q1/emulators/mame/files/patch-makefile	Fri Jan 15 18:01:26 2021	(r561661)
@@ -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-branches mailing list