pkgsrc/emulators/libretro-parallel-n64/Makefile
mrg 0a843265c7 various fixes for arm64 big endian support.
most of these simply extend matching from "aarch64" to "aarch64eb"
in various forms of code.  most remaining uses in pkgsrc of
"MACHINE_ARCH == aarch64" are because of missing aarch64eb support,
such as most of the binary-bootstrap requiring languages like rust,
go, and java.

no pkg-bump because this shouldn't change packages on systems that
could already build all of these.
2021-04-25 07:51:24 +00:00

44 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2021/04/25 07:51:24 mrg Exp $
DISTNAME= libretro-parallel-n64-20200528
CATEGORIES= emulators
GITHUB_PROJECT= parallel-n64
GITHUB_TAG= 9dd669e2f63b320c5942f2fe0b2df275dba99393
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/libretro/parallel-n64
COMMENT= Libretro core based on the Parallel N64 emulator
LICENSE= gnu-gpl-v2
USE_LANGUAGES= c c++
LIBRETRO_CORE= parallel_n64
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == "i386"
MAKE_FLAGS+= WITH_DYNAREC=x86
.elif ${MACHINE_ARCH} == "x86_64"
MAKE_FLAGS+= WITH_DYNAREC=x86_64
.elif ${MACHINE_CPU} == "aarch64"
MAKE_FLAGS+= WITH_DYNAREC=aarch64
MAKE_FLAGS+= HAVE_NEON=0
CFLAGS+= -DNO_ASM -DARM_FIX
.elif ${MACHINE_ARCH} == "earmv7hf"
MAKE_FLAGS+= WITH_DYNAREC=arm
MAKE_FLAGS+= HAVE_NEON=1
CFLAGS+= -DNO_ASM -DARM_FIX
.elif !empty(MACHINE_ARCH:M*arm*)
MAKE_FLAGS+= WITH_DYNAREC=arm
MAKE_FLAGS+= HAVE_NEON=0
CFLAGS+= -DNO_ASM -DARM_FIX
.else
MAKE_FLAGS+= WITH_DYNAREC=
CFLAGS+= -DNO_ASM
.endif
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,--version-script=./libretro/link.T
.include "options.mk"
.include "../../emulators/retroarch/core.mk"
.include "../../mk/atomic64.mk"
.include "../../mk/bsd.pkg.mk"