Mon Oct 15 17:20:22 2018 UTC ()
libretro-dolphin: import version 20180827
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.
Dolphin is a Nintendo GameCube and Wii emulator with high compatibility
across the majority of titles for both platforms.
(nia)
diff -r1.287 -r1.288 pkgsrc/emulators/Makefile
diff -r0 -r1.1 pkgsrc/emulators/libretro-dolphin/DESCR
diff -r0 -r1.1 pkgsrc/emulators/libretro-dolphin/MESSAGE
diff -r0 -r1.1 pkgsrc/emulators/libretro-dolphin/Makefile
diff -r0 -r1.1 pkgsrc/emulators/libretro-dolphin/PLIST
diff -r0 -r1.1 pkgsrc/emulators/libretro-dolphin/distinfo
diff -r0 -r1.1 pkgsrc/emulators/libretro-dolphin/patches/patch-CMakeLists.txt
diff -r0 -r1.1 pkgsrc/emulators/libretro-dolphin/patches/patch-Externals_SFML_include_SFML_Config.hpp
diff -r0 -r1.1 pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Common_MemoryUtil.cpp
diff -r0 -r1.1 pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Common_StringUtil.cpp
diff -r0 -r1.1 pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Common_Swap.h
diff -r0 -r1.1 pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Common_Thread.cpp
diff -r0 -r1.1 pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Core_Analytics.cpp
diff -r0 -r1.1 pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Core_HW_EXI_EXI__DeviceEthernet.h
diff -r0 -r1.1 pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Core_IOS_Network_Socket.h
diff -r0 -r1.1 pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Core_MemTools.cpp
diff -r0 -r1.1 pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_VideoCommon_DriverDetails.cpp
diff -r0 -r1.1 pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_VideoCommon_DriverDetails.h
--- pkgsrc/emulators/Makefile 2018/10/13 17:58:08 1.287
+++ pkgsrc/emulators/Makefile 2018/10/15 17:20:21 1.288
| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.287 2018/10/13 17:58:08 nia Exp $ | | 1 | # $NetBSD: Makefile,v 1.288 2018/10/15 17:20:21 nia Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | COMMENT= Emulators for other operating systems | | 4 | COMMENT= Emulators for other operating systems |
5 | | | 5 | |
6 | SUBDIR+= 8086tiny | | 6 | SUBDIR+= 8086tiny |
7 | SUBDIR+= BasiliskII | | 7 | SUBDIR+= BasiliskII |
8 | SUBDIR+= Cygne-SDL | | 8 | SUBDIR+= Cygne-SDL |
9 | SUBDIR+= DatLib | | 9 | SUBDIR+= DatLib |
10 | SUBDIR+= DatUtil | | 10 | SUBDIR+= DatUtil |
11 | SUBDIR+= MAMEDiff | | 11 | SUBDIR+= MAMEDiff |
12 | SUBDIR+= PC6001VX | | 12 | SUBDIR+= PC6001VX |
13 | SUBDIR+= ROMBuild | | 13 | SUBDIR+= ROMBuild |
14 | SUBDIR+= ROMInfo | | 14 | SUBDIR+= ROMInfo |
| @@ -93,26 +93,27 @@ SUBDIR+= libretro-beetle-pce-fast | | | @@ -93,26 +93,27 @@ SUBDIR+= libretro-beetle-pce-fast |
93 | SUBDIR+= libretro-beetle-psx | | 93 | SUBDIR+= libretro-beetle-psx |
94 | SUBDIR+= libretro-beetle-saturn | | 94 | SUBDIR+= libretro-beetle-saturn |
95 | SUBDIR+= libretro-beetle-sgx | | 95 | SUBDIR+= libretro-beetle-sgx |
96 | SUBDIR+= libretro-beetle-vb | | 96 | SUBDIR+= libretro-beetle-vb |
97 | SUBDIR+= libretro-beetle-wswan | | 97 | SUBDIR+= libretro-beetle-wswan |
98 | SUBDIR+= libretro-bluemsx | | 98 | SUBDIR+= libretro-bluemsx |
99 | SUBDIR+= libretro-bsnes-mercury | | 99 | SUBDIR+= libretro-bsnes-mercury |
100 | SUBDIR+= libretro-bsnes-mercury-accuracy | | 100 | SUBDIR+= libretro-bsnes-mercury-accuracy |
101 | SUBDIR+= libretro-bsnes-mercury-performance | | 101 | SUBDIR+= libretro-bsnes-mercury-performance |
102 | SUBDIR+= libretro-cap32 | | 102 | SUBDIR+= libretro-cap32 |
103 | SUBDIR+= libretro-core-info | | 103 | SUBDIR+= libretro-core-info |
104 | SUBDIR+= libretro-database | | 104 | SUBDIR+= libretro-database |
105 | SUBDIR+= libretro-desmume | | 105 | SUBDIR+= libretro-desmume |
| | | 106 | SUBDIR+= libretro-dolphin |
106 | SUBDIR+= libretro-fbalpha | | 107 | SUBDIR+= libretro-fbalpha |
107 | SUBDIR+= libretro-fceumm | | 108 | SUBDIR+= libretro-fceumm |
108 | SUBDIR+= libretro-freeintv | | 109 | SUBDIR+= libretro-freeintv |
109 | SUBDIR+= libretro-fuse | | 110 | SUBDIR+= libretro-fuse |
110 | SUBDIR+= libretro-gambatte | | 111 | SUBDIR+= libretro-gambatte |
111 | SUBDIR+= libretro-genesis-plus-gx | | 112 | SUBDIR+= libretro-genesis-plus-gx |
112 | SUBDIR+= libretro-glsl-shaders | | 113 | SUBDIR+= libretro-glsl-shaders |
113 | SUBDIR+= libretro-mgba | | 114 | SUBDIR+= libretro-mgba |
114 | SUBDIR+= libretro-mupen64plus | | 115 | SUBDIR+= libretro-mupen64plus |
115 | SUBDIR+= libretro-nestopia | | 116 | SUBDIR+= libretro-nestopia |
116 | SUBDIR+= libretro-np2kai | | 117 | SUBDIR+= libretro-np2kai |
117 | SUBDIR+= libretro-o2em | | 118 | SUBDIR+= libretro-o2em |
118 | SUBDIR+= libretro-pcsx-rearmed | | 119 | SUBDIR+= libretro-pcsx-rearmed |
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.
Dolphin is a Nintendo GameCube and Wii emulator with high compatibility
across the majority of titles for both platforms.
===========================================================================
$NetBSD: MESSAGE,v 1.1 2018/10/15 17:20:21 nia Exp $
This package is not PaX MPROTECT-safe, because of its just-in-time
compiler.
MPROTECT must be disabled for RetroArch for this core to be usable.
===========================================================================
# $NetBSD: Makefile,v 1.1 2018/10/15 17:20:21 nia Exp $
DISTNAME= libretro-dolphin-20180827
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
GITHUB_PROJECT= dolphin
GITHUB_TAG= a5bce7d67abeaa9142d466a578ca5049197073e9
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://docs.libretro.com/library/dolphin/
COMMENT= Libretro core based on the Dolphin GameCube/Wii emulator
LICENSE= gnu-gpl-v2
EXTRACT_USING= bsdtar
USE_CMAKE= yes
USE_LANGUAGES= c c++14
GCC_REQD+= 6.0
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
CMAKE_ARGS+= -DTRY_X11=OFF
CMAKE_ARGS+= -DUSE_DISCORD_PRESENCE=OFF
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_HIDAPI=ON
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_MbedTLS=ON
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_OpenSLES=ON
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_SFML=ON
CMAKE_ARGS+= -DENABLE_BLUEZ=OFF
CMAKE_ARGS+= -DENABLE_QT=OFF
CMAKE_ARGS+= -DENABLE_SDL=OFF
CMAKE_ARGS+= -DENABLE_EVDEV=OFF
CMAKE_ARGS+= -DLIBRETRO=ON
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
do-install:
${INSTALL_LIB} ${WRKSRC}/dolphin_libretro.so \
${DESTDIR}${PREFIX}/lib/libretro/dolphin_libretro.so
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} != "Darwin"
.include "../../archivers/lzo/buildlink3.mk"
.include "../../devel/libusb1/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.endif
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../textproc/pugixml/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"
@comment $NetBSD: PLIST,v 1.1 2018/10/15 17:20:21 nia Exp $
lib/libretro/dolphin_libretro.so
$NetBSD: distinfo,v 1.1 2018/10/15 17:20:21 nia Exp $
SHA1 (libretro-dolphin-20180827-a5bce7d67abeaa9142d466a578ca5049197073e9.tar.gz) = 10f66e6c88d28a0ee203ce29526c862286a30e65
RMD160 (libretro-dolphin-20180827-a5bce7d67abeaa9142d466a578ca5049197073e9.tar.gz) = 6c60c2ba633d5195efe8a1c9632c7eea09444b52
SHA512 (libretro-dolphin-20180827-a5bce7d67abeaa9142d466a578ca5049197073e9.tar.gz) = 2229d009cc0cd73838b8ffcf3d7cd97e8ea80b6ff4daded92367e11bcf43b752c8111ea5b029d76a3d92d8a15bb0c7e22fb6a9285c918148f82837135502d685
Size (libretro-dolphin-20180827-a5bce7d67abeaa9142d466a578ca5049197073e9.tar.gz) = 37405005 bytes
SHA1 (patch-CMakeLists.txt) = a2645cbadef33fa5da955f577d7b076b4d56d139
SHA1 (patch-Externals_SFML_include_SFML_Config.hpp) = 75ece2ce86b54b219a80d6ff028ecc80a00454f5
SHA1 (patch-Source_Core_Common_MemoryUtil.cpp) = dd5792447e2a06b0a94e64b33d5bd77f0c439724
SHA1 (patch-Source_Core_Common_StringUtil.cpp) = e7617eb9c16f479f3a3edda1a2ed7496d5ca531c
SHA1 (patch-Source_Core_Common_Swap.h) = bbba25b164dac8109c7e95256e108cff2c71924d
SHA1 (patch-Source_Core_Common_Thread.cpp) = 2043bdbdc07eb0e3a0e78cf5258cac10b350d26b
SHA1 (patch-Source_Core_Core_Analytics.cpp) = 7b6b5770eea86d71c42bf309eca86eff14b1b177
SHA1 (patch-Source_Core_Core_HW_EXI_EXI__DeviceEthernet.h) = 4c57bf3268069a504ab476775d83c00af66fb22b
SHA1 (patch-Source_Core_Core_IOS_Network_Socket.h) = 7b75283cc3a6a886300be6d66104bbd6d16a0968
SHA1 (patch-Source_Core_Core_MemTools.cpp) = 5289516a468136fb0f3e7395f7af4c47d73e72ee
SHA1 (patch-Source_Core_VideoCommon_DriverDetails.cpp) = 4edf1ff02454f52e36a8d1290192bb766f65f5e5
SHA1 (patch-Source_Core_VideoCommon_DriverDetails.h) = 12be2c451f3a74a57de6212c44333fa51c1e7f4e
$NetBSD: patch-CMakeLists.txt,v 1.1 2018/10/15 17:20:21 nia Exp $
Use png and curl from pkgsrc.
--- CMakeLists.txt.orig 2018-10-14 19:34:08.015071627 +0000
+++ CMakeLists.txt
@@ -613,7 +613,7 @@ else()
set(LZO lzo2)
endif()
-if(NOT APPLE AND NOT MSVC AND NOT LIBRETRO)
+if(NOT APPLE AND NOT MSVC)
check_lib(PNG libpng png png.h QUIET)
endif()
if (PNG_FOUND)
@@ -687,7 +687,7 @@ else()
endif()
find_package(CURL)
-if(CURL_FOUND AND NOT(LIBRETRO))
+if(CURL_FOUND)
message(STATUS "Using shared libcurl")
include_directories(${CURL_INCLUDE_DIRS})
else()
$NetBSD: patch-Externals_SFML_include_SFML_Config.hpp,v 1.1 2018/10/15 17:20:21 nia Exp $
Support NetBSD.
--- Externals/SFML/include/SFML/Config.hpp.orig 2018-08-27 13:59:39.000000000 +0000
+++ Externals/SFML/include/SFML/Config.hpp
@@ -59,6 +59,11 @@
// FreeBSD
#define SFML_SYSTEM_FREEBSD
+#elif defined(__NetBSD__)
+
+ // NetBSD
+ #define SFML_SYSTEM_NETBSD
+
#else
// Unsupported system
$NetBSD: patch-Source_Core_Common_MemoryUtil.cpp,v 1.1 2018/10/15 17:20:21 nia Exp $
Support NetBSD.
--- Source/Core/Common/MemoryUtil.cpp.orig 2018-08-27 13:59:39.000000000 +0000
+++ Source/Core/Common/MemoryUtil.cpp
@@ -19,7 +19,7 @@
#include <stdio.h>
#include <sys/mman.h>
#include <sys/types.h>
-#if defined __APPLE__ || defined __FreeBSD__ || defined __OpenBSD__
+#if defined __APPLE__ || defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__
#include <sys/sysctl.h>
#elif defined __HAIKU__
#include <OS.h>
@@ -156,7 +156,7 @@ size_t MemPhysical()
memInfo.dwLength = sizeof(MEMORYSTATUSEX);
GlobalMemoryStatusEx(&memInfo);
return memInfo.ullTotalPhys;
-#elif defined __APPLE__ || defined __FreeBSD__ || defined __OpenBSD__
+#elif defined __APPLE__ || defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__
int mib[2];
size_t physical_memory;
mib[0] = CTL_HW;
@@ -164,7 +164,7 @@ size_t MemPhysical()
mib[1] = HW_MEMSIZE;
#elif defined __FreeBSD__
mib[1] = HW_REALMEM;
-#elif defined __OpenBSD__
+#elif defined __NetBSD__ || defined __OpenBSD__
mib[1] = HW_PHYSMEM;
#endif
size_t length = sizeof(size_t);
$NetBSD: patch-Source_Core_Common_StringUtil.cpp,v 1.1 2018/10/15 17:20:21 nia Exp $
Support NetBSD.
--- Source/Core/Common/StringUtil.cpp.orig 2018-08-27 13:59:39.000000000 +0000
+++ Source/Core/Common/StringUtil.cpp
@@ -131,11 +131,11 @@ bool CharArrayFromFormatV(char* out, int
c_locale = _create_locale(LC_ALL, "C");
writtenCount = _vsnprintf_l(out, outsize, format, c_locale, args);
#else
-#if !defined(ANDROID) && !defined(__HAIKU__) && !defined(__OpenBSD__)
+#if !defined(ANDROID) && !defined(__HAIKU__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
locale_t previousLocale = uselocale(GetCLocale());
#endif
writtenCount = vsnprintf(out, outsize, format, args);
-#if !defined(ANDROID) && !defined(__HAIKU__) && !defined(__OpenBSD__)
+#if !defined(ANDROID) && !defined(__HAIKU__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
uselocale(previousLocale);
#endif
#endif
@@ -172,7 +172,7 @@ std::string StringFromFormatV(const char
std::string temp = buf;
delete[] buf;
#else
-#if !defined(_WIN32) && !defined(ANDROID) && !defined(__HAIKU__) && !defined(__OpenBSD__)
+#if !defined(_WIN32) && !defined(ANDROID) && !defined(__HAIKU__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
locale_t previousLocale = uselocale(GetCLocale());
#endif
if (vasprintf(&buf, format, args) < 0)
@@ -181,7 +181,7 @@ std::string StringFromFormatV(const char
buf = nullptr;
}
-#if !defined(_WIN32) && !defined(ANDROID) && !defined(__HAIKU__) && !defined(__OpenBSD__)
+#if !defined(_WIN32) && !defined(ANDROID) && !defined(__HAIKU__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
uselocale(previousLocale);
#endif
@@ -550,8 +550,13 @@ std::string CodeTo(const char* tocode, c
while (src_bytes != 0)
{
+#ifdef __NetBSD__
+ size_t const iconv_result =
+ iconv(conv_desc, (const char**)(&src_buffer), &src_bytes, &dst_buffer, &dst_bytes);
+#else
size_t const iconv_result =
iconv(conv_desc, (char**)(&src_buffer), &src_bytes, &dst_buffer, &dst_bytes);
+#endif
if ((size_t)-1 == iconv_result)
{
$NetBSD: patch-Source_Core_Common_Swap.h,v 1.1 2018/10/15 17:20:21 nia Exp $
Support NetBSD.
--- Source/Core/Common/Swap.h.orig 2018-08-27 13:59:39.000000000 +0000
+++ Source/Core/Common/Swap.h
@@ -13,7 +13,7 @@
#include <byteswap.h>
#elif defined(__FreeBSD__)
#include <sys/endian.h>
-#elif defined(__OpenBSD__)
+#elif defined(__NetBSD__) || defined(__OpenBSD__)
#include <endian.h>
#endif
$NetBSD: patch-Source_Core_Common_Thread.cpp,v 1.1 2018/10/15 17:20:21 nia Exp $
Support NetBSD.
--- Source/Core/Common/Thread.cpp.orig 2018-08-27 13:59:39.000000000 +0000
+++ Source/Core/Common/Thread.cpp
@@ -18,7 +18,7 @@
#include <mach/mach.h>
#elif defined BSD4_4 || defined __FreeBSD__ || defined __OpenBSD__
#include <pthread_np.h>
-#elif defined __MINGW32__
+#elif defined __NetBSD__ || defined __MINGW32__
#include <pthread.h>
#elif defined __HAIKU__
#include <OS.h>
@@ -139,6 +139,8 @@ void SetCurrentThreadName(const char* sz
pthread_setname_np(szThreadName);
#elif defined __FreeBSD__ || defined __OpenBSD__
pthread_set_name_np(pthread_self(), szThreadName);
+#elif defined __NetBSD__
+ pthread_setname_np(pthread_self(), szThreadName, NULL);
#elif defined __HAIKU__
rename_thread(find_thread(nullptr), szThreadName);
#else
$NetBSD: patch-Source_Core_Core_Analytics.cpp,v 1.1 2018/10/15 17:20:21 nia Exp $
Support NetBSD.
--- Source/Core/Core/Analytics.cpp.orig 2018-08-27 13:59:39.000000000 +0000
+++ Source/Core/Core/Analytics.cpp
@@ -173,6 +173,8 @@ void DolphinAnalytics::MakeBaseBuilder()
builder.AddData("os-type", "linux");
#elif defined(__FreeBSD__)
builder.AddData("os-type", "freebsd");
+#elif defined(__NetBSD__)
+ builder.AddData("os-type", "netbsd");
#else
builder.AddData("os-type", "unknown");
#endif
$NetBSD: patch-Source_Core_Core_HW_EXI_EXI__DeviceEthernet.h,v 1.1 2018/10/15 17:20:21 nia Exp $
Support NetBSD.
--- Source/Core/Core/HW/EXI/EXI_DeviceEthernet.h.orig 2018-08-27 13:59:39.000000000 +0000
+++ Source/Core/Core/HW/EXI/EXI_DeviceEthernet.h
@@ -316,12 +316,13 @@ private:
OVERLAPPED mWriteOverlapped = {};
std::vector<u8> mWriteBuffer;
bool mWritePending = false;
-#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
+#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || \
+ defined(__OpenBSD__)
int fd = -1;
#endif
-#if defined(_WIN32) || defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || \
- defined(__OpenBSD__)
+#if defined(_WIN32) || defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || \
+ defined(__NetBSD__) || defined(__OpenBSD__)
std::thread readThread;
Common::Flag readEnabled;
Common::Flag readThreadShutdown;
$NetBSD: patch-Source_Core_Core_IOS_Network_Socket.h,v 1.1 2018/10/15 17:20:21 nia Exp $
Support NetBSD.
--- Source/Core/Core/IOS/Network/Socket.h.orig 2018-08-27 13:59:39.000000000 +0000
+++ Source/Core/Core/IOS/Network/Socket.h
@@ -15,7 +15,8 @@ typedef pollfd pollfd_t;
#define MALLOC(x) HeapAlloc(GetProcessHeap(), 0, (x))
#define FREE(x) HeapFree(GetProcessHeap(), 0, (x))
-#elif defined(__linux__) or defined(__APPLE__) or defined(__FreeBSD__) or defined(__HAIKU__)
+#elif defined(__linux__) or defined(__APPLE__) or defined(__FreeBSD__) or defined(__NetBSD__) \
+ or defined(__HAIKU__)
#include <arpa/inet.h>
#include <netdb.h>
#include <sys/ioctl.h>
$NetBSD: patch-Source_Core_Core_MemTools.cpp,v 1.1 2018/10/15 17:20:21 nia Exp $
Support NetBSD.
--- Source/Core/Core/MemTools.cpp.orig 2018-08-27 13:59:39.000000000 +0000
+++ Source/Core/Core/MemTools.cpp
@@ -17,7 +17,7 @@
#include "Core/MachineContext.h"
#include "Core/PowerPC/JitInterface.h"
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__)
#include <signal.h>
#endif
#ifndef _WIN32
$NetBSD: patch-Source_Core_VideoCommon_DriverDetails.cpp,v 1.1 2018/10/15 17:20:21 nia Exp $
Support NetBSD.
--- Source/Core/VideoCommon/DriverDetails.cpp.orig 2018-08-27 13:59:39.000000000 +0000
+++ Source/Core/VideoCommon/DriverDetails.cpp
@@ -33,6 +33,8 @@ const u32 m_os = OS_ALL | OS_OSX;
const u32 m_os = OS_ALL | OS_LINUX;
#elif __FreeBSD__
const u32 m_os = OS_ALL | OS_FREEBSD;
+#elif __NetBSD__
+const u32 m_os = OS_ALL | OS_NETBSD;
#elif __OpenBSD__
const u32 m_os = OS_ALL | OS_OPENBSD;
#elif __HAIKU__
$NetBSD: patch-Source_Core_VideoCommon_DriverDetails.h,v 1.1 2018/10/15 17:20:21 nia Exp $
Support NetBSD.
--- Source/Core/VideoCommon/DriverDetails.h.orig 2018-08-27 13:59:39.000000000 +0000
+++ Source/Core/VideoCommon/DriverDetails.h
@@ -28,6 +28,7 @@ enum OS
OS_FREEBSD = (1 << 5),
OS_OPENBSD = (1 << 6),
OS_HAIKU = (1 << 7),
+ OS_NETBSD = (1 << 8),
};
// Enum of known vendors
// Tegra and Nvidia are separated out due to such substantial differences