[Bug 271468] emulators/mame: add arm64 support

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 17 May 2023 13:16:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271468

--- Comment #2 from Robert Clausecker <fuz@FreeBSD.org> ---
Sorry, the bit about SYMBOLS was a local experiment to see why stripping made
the build work on armv7.  Will remove that from the final patch.

> Instead of patching the makefile, does passing PRECOMPILE=1 to ${MAKE_ENV} achieve the same? I am finding that I need to disable PRECOMPILE at the moment, I noted that pkgsrc does the same.

This change adds a new make rule freebsd_arm64_clang doing the same thing as
freebsd_x64_clang.  It does not add a precompile target where there previously
was none.

The problem that prevented a build on arm64 was this error:

===>  Building for mame-0.254
gmake[2]: Entering directory
'/usr/home/ports/main.ports/emulators/mame/work/mame-mame0254'
Clang 14.0.5 detected
gmake[2]: *** No rule to make target 'freebsd_arm64_clang', needed by 'all'. 
Stop.
gmake[2]: Leaving directory
'/usr/home/ports/main.ports/emulators/mame/work/mame-mame0254'
===> Compilation failed unexpectedly.


My patch fixes this error by adding the missing rule.

-- 
You are receiving this mail because:
You are the assignee for the bug.