pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/emulators



Module Name:    pkgsrc
Committed By:   nia
Date:           Sun May 31 15:20:22 UTC 2020

Modified Files:
        pkgsrc/emulators: Makefile
Added Files:
        pkgsrc/emulators/libretro-flycast: DESCR MESSAGE Makefile PLIST
            distinfo options.mk
        pkgsrc/emulators/libretro-flycast/patches: patch-Makefile
            patch-Makefile.common patch-core_hw_aica_dsp__x64.cpp
            patch-core_hw_sh4_dyna_driver.cpp patch-core_libretro_common.cpp
            patch-core_log_StringUtil.h patch-core_rec-x64_rec__x64.cpp

Log Message:
emulators: Add libretro-flycast

Libretro is a simple but powerful development interface that allows for the
easy creation of emulators, games and multimedia applications that can plug
straight into any libretro-compatible frontend. This development interface is
open to others so that they can run these pluggable emulator and game cores
also in their own programs or devices.

Flycast is a multi-platform Sega Dreamcast emulator.


To generate a diff of this commit:
cvs rdiff -u -r1.318 -r1.319 pkgsrc/emulators/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/emulators/libretro-flycast/DESCR \
    pkgsrc/emulators/libretro-flycast/MESSAGE \
    pkgsrc/emulators/libretro-flycast/Makefile \
    pkgsrc/emulators/libretro-flycast/PLIST \
    pkgsrc/emulators/libretro-flycast/distinfo \
    pkgsrc/emulators/libretro-flycast/options.mk
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/emulators/libretro-flycast/patches/patch-Makefile \
    pkgsrc/emulators/libretro-flycast/patches/patch-Makefile.common \
    pkgsrc/emulators/libretro-flycast/patches/patch-core_hw_aica_dsp__x64.cpp \
    pkgsrc/emulators/libretro-flycast/patches/patch-core_hw_sh4_dyna_driver.cpp \
    pkgsrc/emulators/libretro-flycast/patches/patch-core_libretro_common.cpp \
    pkgsrc/emulators/libretro-flycast/patches/patch-core_log_StringUtil.h \
    pkgsrc/emulators/libretro-flycast/patches/patch-core_rec-x64_rec__x64.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/emulators/Makefile
diff -u pkgsrc/emulators/Makefile:1.318 pkgsrc/emulators/Makefile:1.319
--- pkgsrc/emulators/Makefile:1.318     Sun May 31 12:28:21 2020
+++ pkgsrc/emulators/Makefile   Sun May 31 15:20:21 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.318 2020/05/31 12:28:21 nia Exp $
+# $NetBSD: Makefile,v 1.319 2020/05/31 15:20:21 nia Exp $
 #
 
 COMMENT=       Emulators for other operating systems
@@ -108,6 +108,7 @@ SUBDIR+=    libretro-desmume
 SUBDIR+=       libretro-dolphin
 SUBDIR+=       libretro-fbneo
 SUBDIR+=       libretro-fceumm
+SUBDIR+=       libretro-flycast
 SUBDIR+=       libretro-freeintv
 SUBDIR+=       libretro-fuse
 SUBDIR+=       libretro-gambatte

Added files:

Index: pkgsrc/emulators/libretro-flycast/DESCR
diff -u /dev/null pkgsrc/emulators/libretro-flycast/DESCR:1.1
--- /dev/null   Sun May 31 15:20:22 2020
+++ pkgsrc/emulators/libretro-flycast/DESCR     Sun May 31 15:20:22 2020
@@ -0,0 +1,7 @@
+Libretro is a simple but powerful development interface that allows for the
+easy creation of emulators, games and multimedia applications that can plug
+straight into any libretro-compatible frontend. This development interface is
+open to others so that they can run these pluggable emulator and game cores
+also in their own programs or devices.
+
+Flycast is a multi-platform Sega Dreamcast emulator.
Index: pkgsrc/emulators/libretro-flycast/MESSAGE
diff -u /dev/null pkgsrc/emulators/libretro-flycast/MESSAGE:1.1
--- /dev/null   Sun May 31 15:20:22 2020
+++ pkgsrc/emulators/libretro-flycast/MESSAGE   Sun May 31 15:20:22 2020
@@ -0,0 +1,17 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2020/05/31 15:20:22 nia Exp $
+
+Flycast requires the following BIOS files in order to work:
+
+SHA256 (dc/dc_boot.bin) =
+88d6a666495ad14ab5988d8cb730533cfc94ec2cfd53a7eeda14642ab0d4abf9
+
+SHA256 (dc/dc_flash.bin) =
+dd8b365521a9c08bb4c170da3592212580f7251f35a45d6083774d1c030bc3e3
+
+In retroarch, you'll need to place them in the System Directory.
+
+Alternatively, you can place them in your Content Directory next to the
+software you are going to run.
+
+===========================================================================
Index: pkgsrc/emulators/libretro-flycast/Makefile
diff -u /dev/null pkgsrc/emulators/libretro-flycast/Makefile:1.1
--- /dev/null   Sun May 31 15:20:22 2020
+++ pkgsrc/emulators/libretro-flycast/Makefile  Sun May 31 15:20:22 2020
@@ -0,0 +1,70 @@
+# $NetBSD: Makefile,v 1.1 2020/05/31 15:20:22 nia Exp $
+
+DISTNAME=      libretro-flycast-20200529
+CATEGORIES=    emulators
+GITHUB_PROJECT=        flycast
+GITHUB_TAG=    e595af5dfbff2e49fbcb95bec5b240785c8b4f4f
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://docs.libretro.com/library/flycast/
+COMMENT=       Libretro core based on the Reicast Sega Dreamcast emulator
+LICENSE=       gnu-gpl-v2
+
+LIBRETRO_CORE= flycast
+USE_LANGUAGES= c c++
+
+LDFLAGS+=      -lFLAC -lxxhash -lz
+
+MAKE_FLAGS+=   HAVE_OPENMP=0
+MAKE_FLAGS+=   HAVE_VULKAN=0
+MAKE_FLAGS+=   SINGLE_PREC_FLAGS=1
+MAKE_FLAGS+=   CC_AS=${AS}
+
+.if ${MACHINE_ARCH} != "x86_64"
+CFLAGS+=       -DLOW_END
+CXXFLAGS+=     -DLOW_END
+.endif
+
+CFLAGS+=       -DHAVE_POSIX_MEMALIGN=1
+CXXFLAGS+=     -DHAVE_POSIX_MEMALIGN=1
+
+.if ${MACHINE_ARCH} == "aarch64"
+MAKE_FLAGS+=   WITH_DYNAREC=arm64
+MAKE_FLAGS+=   HAVE_GENERIC_JIT=0
+.elif ${MACHINE_ARCH} == "i386"
+MAKE_FLAGS+=   WITH_DYNAREC=x86
+MAKE_FLAGS+=   HAVE_GENERIC_JIT=0
+.elif ${MACHINE_ARCH} == "x86_64"
+MAKE_FLAGS+=   WITH_DYNAREC=x86_64
+MAKE_FLAGS+=   HAVE_GENERIC_JIT=0
+.elif ${MACHINE_ARCH} == "earmv7hf"
+MAKE_FLAGS+=   WITH_DYNAREC=arm
+MAKE_FLAGS+=   HAVE_GENERIC_JIT=0
+MAKE_FLAGS+=   ARM_FLOAT_ABI_HARD=1
+MAKE_FLAGS+=   ARMV7A_FLAGS=1
+.elif ${MACHINE_ARCH} == "earmv6hf"
+CFLAGS+=       -marm
+CXXFLAGS+=     -marm
+MAKE_FLAGS+=   WITH_DYNAREC=arm
+MAKE_FLAGS+=   HAVE_GENERIC_JIT=0
+MAKE_FLAGS+=   ARM_FLOAT_ABI_HARD=1
+.elif !empty(MACHINE_ARCH:M*arm*)
+CFLAGS+=       -marm
+CXXFLAGS+=     -marm
+MAKE_FLAGS+=   WITH_DYNAREC=arm
+MAKE_FLAGS+=   HAVE_GENERIC_JIT=0
+MAKE_FLAGS+=   ARM_FLOAT_ABI_HARD=0
+.elif !empty(MACHINE_ARCH:M*mips*)
+MAKE_FLAGS+=   WITH_DYNAREC=mips
+MAKE_FLAGS+=   HAVE_GENERIC_JIT=0
+.else
+MAKE_FLAGS+=   WITH_DYNAREC=
+MAKE_FLAGS+=   HAVE_GENERIC_JIT=1
+.endif
+
+.include "options.mk"
+.include "../../emulators/retroarch/core.mk"
+.include "../../audio/flac/buildlink3.mk"
+.include "../../devel/xxhash/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/emulators/libretro-flycast/PLIST
diff -u /dev/null pkgsrc/emulators/libretro-flycast/PLIST:1.1
--- /dev/null   Sun May 31 15:20:22 2020
+++ pkgsrc/emulators/libretro-flycast/PLIST     Sun May 31 15:20:22 2020
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/05/31 15:20:22 nia Exp $
+lib/libretro/flycast_libretro.${SOEXT}
Index: pkgsrc/emulators/libretro-flycast/distinfo
diff -u /dev/null pkgsrc/emulators/libretro-flycast/distinfo:1.1
--- /dev/null   Sun May 31 15:20:22 2020
+++ pkgsrc/emulators/libretro-flycast/distinfo  Sun May 31 15:20:22 2020
@@ -0,0 +1,13 @@
+$NetBSD: distinfo,v 1.1 2020/05/31 15:20:22 nia Exp $
+
+SHA1 (libretro-flycast-20200529-e595af5dfbff2e49fbcb95bec5b240785c8b4f4f.tar.gz) = b4c6492680fd84a8dc4d7ef025ab648438e305dc
+RMD160 (libretro-flycast-20200529-e595af5dfbff2e49fbcb95bec5b240785c8b4f4f.tar.gz) = 5545255f788358f03ab5340436d75a17e28d8523
+SHA512 (libretro-flycast-20200529-e595af5dfbff2e49fbcb95bec5b240785c8b4f4f.tar.gz) = 
0c6bf51960a36069912a0d44dfc96a0cc8fd352e6e06087bd11dd309045b8f0efbd83629f894f213f822efe73d3f94a9f3461cfc3f14c77c56ead664bcc23acd
+Size (libretro-flycast-20200529-e595af5dfbff2e49fbcb95bec5b240785c8b4f4f.tar.gz) = 4301350 bytes
+SHA1 (patch-Makefile) = 8159fc931d8514bd100ead06c3fe1ae4d11dfac0
+SHA1 (patch-Makefile.common) = 4bfdaae74db7672f11698040bbb29d851006c2b3
+SHA1 (patch-core_hw_aica_dsp__x64.cpp) = 2ed58220ac214136879bc4aa8939c11b8d6f0916
+SHA1 (patch-core_hw_sh4_dyna_driver.cpp) = 6067ac4c8009759baeffc71049e7987c5441947b
+SHA1 (patch-core_libretro_common.cpp) = c3cf6bcfa2e2f9a74459517f8d9e3d0a562cf479
+SHA1 (patch-core_log_StringUtil.h) = b0726f1ab856adb27ba672f8a9ca3ef9f369e583
+SHA1 (patch-core_rec-x64_rec__x64.cpp) = c0074b495a15f3cc8b4772a7b51a1100cff04286
Index: pkgsrc/emulators/libretro-flycast/options.mk
diff -u /dev/null pkgsrc/emulators/libretro-flycast/options.mk:1.1
--- /dev/null   Sun May 31 15:20:22 2020
+++ pkgsrc/emulators/libretro-flycast/options.mk        Sun May 31 15:20:22 2020
@@ -0,0 +1,23 @@
+# $NetBSD: options.mk,v 1.1 2020/05/31 15:20:22 nia Exp $
+
+PKG_OPTIONS_VAR=               PKG_OPTIONS.libretro-flycast
+PKG_OPTIONS_REQUIRED_GROUPS=   gl
+PKG_OPTIONS_GROUP.gl=          opengl
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+.if ${OPSYS} == "NetBSD" && !empty(MACHINE_ARCH:M*arm*)
+PKG_OPTIONS_GROUP.gl+=         rpi
+.endif
+
+PKG_SUGGESTED_OPTIONS+=                opengl
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mopengl)
+.  include "../../graphics/MesaLib/buildlink3.mk"
+.elif !empty(PKG_OPTIONS:Mrpi)
+MAKE_FLAGS+=   GLES=1
+MAKE_FLAGS+=   GL_LIB="-lbrcmGLESv2"
+.  include "../../misc/raspberrypi-userland/buildlink3.mk"
+.endif

Index: pkgsrc/emulators/libretro-flycast/patches/patch-Makefile
diff -u /dev/null pkgsrc/emulators/libretro-flycast/patches/patch-Makefile:1.1
--- /dev/null   Sun May 31 15:20:22 2020
+++ pkgsrc/emulators/libretro-flycast/patches/patch-Makefile    Sun May 31 15:20:22 2020
@@ -0,0 +1,19 @@
+$NetBSD: patch-Makefile,v 1.1 2020/05/31 15:20:22 nia Exp $
+
+Don't override things we want to pass through from pkgsrc cleanly.
+
+--- Makefile.orig      2020-05-29 12:45:55.000000000 +0000
++++ Makefile
+@@ -40,12 +40,8 @@ CC_AS    ?= ${CC_PREFIX}as
+ 
+ MFLAGS   := 
+ ASFLAGS  := 
+-LDFLAGS  :=
+ LDFLAGS_END :=
+ INCFLAGS :=
+-LIBS     :=
+-CFLAGS   := 
+-CXXFLAGS :=
+ 
+ GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
+ ifneq ($(GIT_VERSION)," unknown")
Index: pkgsrc/emulators/libretro-flycast/patches/patch-Makefile.common
diff -u /dev/null pkgsrc/emulators/libretro-flycast/patches/patch-Makefile.common:1.1
--- /dev/null   Sun May 31 15:20:22 2020
+++ pkgsrc/emulators/libretro-flycast/patches/patch-Makefile.common     Sun May 31 15:20:22 2020
@@ -0,0 +1,58 @@
+$NetBSD: patch-Makefile.common,v 1.1 2020/05/31 15:20:22 nia Exp $
+
+Avoid bundling depends.
+
+--- Makefile.common.orig       2020-05-29 12:45:55.000000000 +0000
++++ Makefile.common
+@@ -191,8 +191,7 @@ SOURCES_C +=   \
+                                       $(DEPS_DIR)/picotcp/stack/pico_socket_multicast.c \
+                                       $(DEPS_DIR)/picotcp/stack/pico_socket.c \
+                                       $(DEPS_DIR)/picotcp/stack/pico_stack.c \
+-                                      $(DEPS_DIR)/picotcp/stack/pico_tree.c \
+-                                      $(DEPS_DIR)/xxhash/xxhash.c
++                                      $(DEPS_DIR)/picotcp/stack/pico_tree.c
+ 
+ SOURCES_ASM :=
+ 
+@@ -401,21 +400,6 @@ SOURCES_CXX += $(DEPS_DIR)/xbrz/xbrz.cpp
+ endif
+ 
+ ifeq ($(HAVE_CHD),1)
+-INCFLAGS += -I$(DEPS_DIR)/flac/include
+-
+-SOURCES_C += \
+-                               $(DEPS_DIR)/flac/bitmath.c \
+-                               $(DEPS_DIR)/flac/bitreader.c \
+-                               $(DEPS_DIR)/flac/cpu.c \
+-                               $(DEPS_DIR)/flac/crc.c \
+-                               $(DEPS_DIR)/flac/fixed.c \
+-                               $(DEPS_DIR)/flac/float.c \
+-                               $(DEPS_DIR)/flac/format.c \
+-                               $(DEPS_DIR)/flac/lpc.c \
+-                               $(DEPS_DIR)/flac/md5.c \
+-                               $(DEPS_DIR)/flac/memory.c \
+-                               $(DEPS_DIR)/flac/stream_decoder.c
+-
+ SOURCES_C += $(DEPS_DIR)/lzma/C/7zArcIn.c \
+                                $(DEPS_DIR)/lzma/C/7zBuf.c \
+                                $(DEPS_DIR)/lzma/C/7zCrc.c \
+@@ -440,19 +424,3 @@ SOURCES_C += $(DEPS_DIR)/lzma/C/7zArcIn.
+                                $(DEPS_DIR)/lzma/C/Sort.c
+ 
+ endif
+-
+-SOURCES_C +=   $(DEPS_DIR)/zlib/deflate.c \
+-                                      $(DEPS_DIR)/zlib/gzlib.c \
+-                                      $(DEPS_DIR)/zlib/uncompr.c \
+-                                      $(DEPS_DIR)/zlib/zutil.c \
+-                                      $(DEPS_DIR)/zlib/inffast.c \
+-                                      $(DEPS_DIR)/zlib/gzread.c \
+-                                      $(DEPS_DIR)/zlib/crc32.c \
+-                                      $(DEPS_DIR)/zlib/gzwrite.c \
+-                                      $(DEPS_DIR)/zlib/inflate.c \
+-                                      $(DEPS_DIR)/zlib/infback.c \
+-                                      $(DEPS_DIR)/zlib/inftrees.c \
+-                                      $(DEPS_DIR)/zlib/trees.c \
+-                                      $(DEPS_DIR)/zlib/gzclose.c \
+-                                      $(DEPS_DIR)/zlib/compress.c \
+-                                      $(DEPS_DIR)/zlib/adler32.c
Index: pkgsrc/emulators/libretro-flycast/patches/patch-core_hw_aica_dsp__x64.cpp
diff -u /dev/null pkgsrc/emulators/libretro-flycast/patches/patch-core_hw_aica_dsp__x64.cpp:1.1
--- /dev/null   Sun May 31 15:20:22 2020
+++ pkgsrc/emulators/libretro-flycast/patches/patch-core_hw_aica_dsp__x64.cpp   Sun May 31 15:20:22 2020
@@ -0,0 +1,18 @@
+$NetBSD: patch-core_hw_aica_dsp__x64.cpp,v 1.1 2020/05/31 15:20:22 nia Exp $
+
+Add support for more operating systems.
+
+--- core/hw/aica/dsp_x64.cpp.orig      2020-05-29 12:45:55.000000000 +0000
++++ core/hw/aica/dsp_x64.cpp
+@@ -33,7 +33,10 @@
+ DECL_ALIGN(4096) static u8 CodeBuffer[32 * 1024]
+ #if defined(_WIN32) || defined(__HAIKU__)
+       ;
+-#elif defined(__linux__)
++#elif defined(__linux__) || \
++      defined(__FreeBSD__) || \
++      defined(__DragonFly__) || \
++      defined(__NetBSD__)
+       __attribute__((section(".text")));
+ #elif defined(__MACH__)
+       __attribute__((section("__TEXT,.text")));
Index: pkgsrc/emulators/libretro-flycast/patches/patch-core_hw_sh4_dyna_driver.cpp
diff -u /dev/null pkgsrc/emulators/libretro-flycast/patches/patch-core_hw_sh4_dyna_driver.cpp:1.1
--- /dev/null   Sun May 31 15:20:22 2020
+++ pkgsrc/emulators/libretro-flycast/patches/patch-core_hw_sh4_dyna_driver.cpp Sun May 31 15:20:22 2020
@@ -0,0 +1,15 @@
+$NetBSD: patch-core_hw_sh4_dyna_driver.cpp,v 1.1 2020/05/31 15:20:22 nia Exp $
+
+Add support for NetBSD.
+
+--- core/hw/sh4/dyna/driver.cpp.orig   2020-05-29 12:45:55.000000000 +0000
++++ core/hw/sh4/dyna/driver.cpp
+@@ -28,7 +28,7 @@ u8 SH4_TCB[CODE_SIZE + TEMP_CODE_SIZE + 
+ #if defined(_WIN32) || FEAT_SHREC != DYNAREC_JIT
+       ;
+ #elif defined(__linux__) || defined(__HAIKU__) || \
+-      defined(__FreeBSD__) || defined(__DragonFly__) || \
++      defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || \
+         defined(HAVE_LIBNX)
+       __attribute__((section(".text")));
+ #elif defined(__MACH__)
Index: pkgsrc/emulators/libretro-flycast/patches/patch-core_libretro_common.cpp
diff -u /dev/null pkgsrc/emulators/libretro-flycast/patches/patch-core_libretro_common.cpp:1.1
--- /dev/null   Sun May 31 15:20:22 2020
+++ pkgsrc/emulators/libretro-flycast/patches/patch-core_libretro_common.cpp    Sun May 31 15:20:22 2020
@@ -0,0 +1,22 @@
+$NetBSD: patch-core_libretro_common.cpp,v 1.1 2020/05/31 15:20:22 nia Exp $
+
+Add support for NetBSD.
+
+--- core/libretro/common.cpp.orig      2020-05-29 12:45:55.000000000 +0000
++++ core/libretro/common.cpp
+@@ -298,7 +298,7 @@ static void sigill_handler(int sn, sigin
+ #endif
+ 
+ #if defined(__MACH__) || defined(__linux__) || defined(__HAIKU__) || \
+-   defined(__FreeBSD__) || defined(__DragonFly__) || defined(HAVE_LIBNX)
++   defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(HAVE_LIBNX)
+ //#define LOG_SIGHANDLER
+ 
+ #ifdef HAVE_LIBNX
+@@ -769,4 +769,4 @@ void __libnx_exception_handler(ThreadExc
+ }
+ }
+ 
+-#endif
+\ No newline at end of file
++#endif
Index: pkgsrc/emulators/libretro-flycast/patches/patch-core_log_StringUtil.h
diff -u /dev/null pkgsrc/emulators/libretro-flycast/patches/patch-core_log_StringUtil.h:1.1
--- /dev/null   Sun May 31 15:20:22 2020
+++ pkgsrc/emulators/libretro-flycast/patches/patch-core_log_StringUtil.h       Sun May 31 15:20:22 2020
@@ -0,0 +1,47 @@
+$NetBSD: patch-core_log_StringUtil.h,v 1.1 2020/05/31 15:20:22 nia Exp $
+
+Make this compile on NetBSD...
+
+--- core/log/StringUtil.h.orig 2020-05-29 12:45:55.000000000 +0000
++++ core/log/StringUtil.h
+@@ -24,7 +24,7 @@ int vasprintf(char **s, const char *fmt,
+ }
+ #endif
+ 
+-#if !defined(_WIN32) && !defined(ANDROID) && !defined(__HAIKU__) && !defined(__OpenBSD__) && !defined(HAVE_LIBNX)
++#if !defined(_WIN32) && !defined(ANDROID) && !defined(__HAIKU__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(HAVE_LIBNX)
+ static locale_t GetCLocale()
+ {
+   static locale_t c_locale = newlocale(LC_ALL_MASK, "C", nullptr);
+@@ -69,11 +69,11 @@ bool CharArrayFromFormatV(char* out, int
+   writtenCount = vsnprintf(out, outsize, format, args);
+ #endif
+ #else
+-#if !defined(ANDROID) && !defined(__HAIKU__) && !defined(__OpenBSD__) && !defined(HAVE_LIBNX)
++#if !defined(ANDROID) && !defined(__HAIKU__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(HAVE_LIBNX)
+   locale_t previousLocale = uselocale(GetCLocale());
+ #endif
+   writtenCount = vsnprintf(out, outsize, format, args);
+-#if !defined(ANDROID) && !defined(__HAIKU__) && !defined(__OpenBSD__) && !defined(HAVE_LIBNX)
++#if !defined(ANDROID) && !defined(__HAIKU__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(HAVE_LIBNX)
+   uselocale(previousLocale);
+ #endif
+ #endif
+@@ -101,7 +101,7 @@ std::string StringFromFormatV(const char
+   std::string temp = buf;
+   delete[] buf;
+ #else
+-#if !defined(ANDROID) && !defined(__HAIKU__) && !defined(__OpenBSD__) && !defined(HAVE_LIBNX)
++#if !defined(ANDROID) && !defined(__HAIKU__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(HAVE_LIBNX)
+   locale_t previousLocale = uselocale(GetCLocale());
+ #endif
+   if (vasprintf(&buf, format, args) < 0)
+@@ -110,7 +110,7 @@ std::string StringFromFormatV(const char
+     buf = nullptr;
+   }
+ 
+-#if !defined(ANDROID) && !defined(__HAIKU__) && !defined(__OpenBSD__) && !defined(HAVE_LIBNX)
++#if !defined(ANDROID) && !defined(__HAIKU__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(HAVE_LIBNX)
+   uselocale(previousLocale);
+ #endif
+ 
Index: pkgsrc/emulators/libretro-flycast/patches/patch-core_rec-x64_rec__x64.cpp
diff -u /dev/null pkgsrc/emulators/libretro-flycast/patches/patch-core_rec-x64_rec__x64.cpp:1.1
--- /dev/null   Sun May 31 15:20:22 2020
+++ pkgsrc/emulators/libretro-flycast/patches/patch-core_rec-x64_rec__x64.cpp   Sun May 31 15:20:22 2020
@@ -0,0 +1,15 @@
+$NetBSD: patch-core_rec-x64_rec__x64.cpp,v 1.1 2020/05/31 15:20:22 nia Exp $
+
+Add support for NetBSD.
+
+--- core/rec-x64/rec_x64.cpp.orig      2020-05-29 12:45:55.000000000 +0000
++++ core/rec-x64/rec_x64.cpp
+@@ -112,6 +112,8 @@ WIN32_ONLY(     ".seh_pushreg %r14      
+ #endif
+ #if defined(__MACH__) || defined(_WIN32)
+                         "call " _U "setjmp                                                    \n\t"
++#elif defined(__NetBSD__)
++                        "call " _U "__setjmp14@PLT                                            \n\t"
+ #else
+                         "call " _U "setjmp@PLT                                                \n\t"
+ #endif



Home | Main Index | Thread Index | Old Index