Date: Fri, 15 Jan 2021 18:00:45 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r561660 - head/emulators/mame/files Message-ID: <202101151800.10FI0jmO042511@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101151800.10FI0jmO042511>