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: Mon Oct 15 17:20:22 UTC 2018
Modified Files:
pkgsrc/emulators: Makefile
Added Files:
pkgsrc/emulators/libretro-dolphin: DESCR MESSAGE Makefile PLIST
distinfo
pkgsrc/emulators/libretro-dolphin/patches: patch-CMakeLists.txt
patch-Externals_SFML_include_SFML_Config.hpp
patch-Source_Core_Common_MemoryUtil.cpp
patch-Source_Core_Common_StringUtil.cpp
patch-Source_Core_Common_Swap.h patch-Source_Core_Common_Thread.cpp
patch-Source_Core_Core_Analytics.cpp
patch-Source_Core_Core_HW_EXI_EXI__DeviceEthernet.h
patch-Source_Core_Core_IOS_Network_Socket.h
patch-Source_Core_Core_MemTools.cpp
patch-Source_Core_VideoCommon_DriverDetails.cpp
patch-Source_Core_VideoCommon_DriverDetails.h
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.287 -r1.288 pkgsrc/emulators/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/emulators/libretro-dolphin/DESCR \
pkgsrc/emulators/libretro-dolphin/MESSAGE \
pkgsrc/emulators/libretro-dolphin/Makefile \
pkgsrc/emulators/libretro-dolphin/PLIST \
pkgsrc/emulators/libretro-dolphin/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/emulators/libretro-dolphin/patches/patch-CMakeLists.txt \
pkgsrc/emulators/libretro-dolphin/patches/patch-Externals_SFML_include_SFML_Config.hpp \
pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Common_MemoryUtil.cpp \
pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Common_StringUtil.cpp \
pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Common_Swap.h \
pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Common_Thread.cpp \
pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Core_Analytics.cpp \
pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Core_HW_EXI_EXI__DeviceEthernet.h \
pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Core_IOS_Network_Socket.h \
pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Core_MemTools.cpp \
pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_VideoCommon_DriverDetails.cpp \
pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_VideoCommon_DriverDetails.h
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.287 pkgsrc/emulators/Makefile:1.288
--- pkgsrc/emulators/Makefile:1.287 Sat Oct 13 17:58:08 2018
+++ pkgsrc/emulators/Makefile Mon Oct 15 17:20:21 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.287 2018/10/13 17:58:08 nia Exp $
+# $NetBSD: Makefile,v 1.288 2018/10/15 17:20:21 nia Exp $
#
COMMENT= Emulators for other operating systems
@@ -103,6 +103,7 @@ SUBDIR+= libretro-cap32
SUBDIR+= libretro-core-info
SUBDIR+= libretro-database
SUBDIR+= libretro-desmume
+SUBDIR+= libretro-dolphin
SUBDIR+= libretro-fbalpha
SUBDIR+= libretro-fceumm
SUBDIR+= libretro-freeintv
Added files:
Index: pkgsrc/emulators/libretro-dolphin/DESCR
diff -u /dev/null pkgsrc/emulators/libretro-dolphin/DESCR:1.1
--- /dev/null Mon Oct 15 17:20:22 2018
+++ pkgsrc/emulators/libretro-dolphin/DESCR Mon Oct 15 17:20:21 2018
@@ -0,0 +1,8 @@
+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.
Index: pkgsrc/emulators/libretro-dolphin/MESSAGE
diff -u /dev/null pkgsrc/emulators/libretro-dolphin/MESSAGE:1.1
--- /dev/null Mon Oct 15 17:20:22 2018
+++ pkgsrc/emulators/libretro-dolphin/MESSAGE Mon Oct 15 17:20:21 2018
@@ -0,0 +1,9 @@
+===========================================================================
+$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.
+
+===========================================================================
Index: pkgsrc/emulators/libretro-dolphin/Makefile
diff -u /dev/null pkgsrc/emulators/libretro-dolphin/Makefile:1.1
--- /dev/null Mon Oct 15 17:20:22 2018
+++ pkgsrc/emulators/libretro-dolphin/Makefile Mon Oct 15 17:20:21 2018
@@ -0,0 +1,53 @@
+# $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@localhost
+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"
Index: pkgsrc/emulators/libretro-dolphin/PLIST
diff -u /dev/null pkgsrc/emulators/libretro-dolphin/PLIST:1.1
--- /dev/null Mon Oct 15 17:20:22 2018
+++ pkgsrc/emulators/libretro-dolphin/PLIST Mon Oct 15 17:20:21 2018
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2018/10/15 17:20:21 nia Exp $
+lib/libretro/dolphin_libretro.so
Index: pkgsrc/emulators/libretro-dolphin/distinfo
diff -u /dev/null pkgsrc/emulators/libretro-dolphin/distinfo:1.1
--- /dev/null Mon Oct 15 17:20:22 2018
+++ pkgsrc/emulators/libretro-dolphin/distinfo Mon Oct 15 17:20:21 2018
@@ -0,0 +1,18 @@
+$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
Index: pkgsrc/emulators/libretro-dolphin/patches/patch-CMakeLists.txt
diff -u /dev/null pkgsrc/emulators/libretro-dolphin/patches/patch-CMakeLists.txt:1.1
--- /dev/null Mon Oct 15 17:20:22 2018
+++ pkgsrc/emulators/libretro-dolphin/patches/patch-CMakeLists.txt Mon Oct 15 17:20:21 2018
@@ -0,0 +1,24 @@
+$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()
Index: pkgsrc/emulators/libretro-dolphin/patches/patch-Externals_SFML_include_SFML_Config.hpp
diff -u /dev/null pkgsrc/emulators/libretro-dolphin/patches/patch-Externals_SFML_include_SFML_Config.hpp:1.1
--- /dev/null Mon Oct 15 17:20:22 2018
+++ pkgsrc/emulators/libretro-dolphin/patches/patch-Externals_SFML_include_SFML_Config.hpp Mon Oct 15 17:20:21 2018
@@ -0,0 +1,18 @@
+$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
Index: pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Common_MemoryUtil.cpp
diff -u /dev/null pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Common_MemoryUtil.cpp:1.1
--- /dev/null Mon Oct 15 17:20:22 2018
+++ pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Common_MemoryUtil.cpp Mon Oct 15 17:20:21 2018
@@ -0,0 +1,33 @@
+$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);
Index: pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Common_StringUtil.cpp
diff -u /dev/null pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Common_StringUtil.cpp:1.1
--- /dev/null Mon Oct 15 17:20:22 2018
+++ pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Common_StringUtil.cpp Mon Oct 15 17:20:21 2018
@@ -0,0 +1,52 @@
+$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)
+ {
Index: pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Common_Swap.h
diff -u /dev/null pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Common_Swap.h:1.1
--- /dev/null Mon Oct 15 17:20:22 2018
+++ pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Common_Swap.h Mon Oct 15 17:20:21 2018
@@ -0,0 +1,15 @@
+$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
+
Index: pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Common_Thread.cpp
diff -u /dev/null pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Common_Thread.cpp:1.1
--- /dev/null Mon Oct 15 17:20:22 2018
+++ pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Common_Thread.cpp Mon Oct 15 17:20:21 2018
@@ -0,0 +1,24 @@
+$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
Index: pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Core_Analytics.cpp
diff -u /dev/null pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Core_Analytics.cpp:1.1
--- /dev/null Mon Oct 15 17:20:22 2018
+++ pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Core_Analytics.cpp Mon Oct 15 17:20:21 2018
@@ -0,0 +1,15 @@
+$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
Index: pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Core_HW_EXI_EXI__DeviceEthernet.h
diff -u /dev/null pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Core_HW_EXI_EXI__DeviceEthernet.h:1.1
--- /dev/null Mon Oct 15 17:20:22 2018
+++ pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Core_HW_EXI_EXI__DeviceEthernet.h Mon Oct 15 17:20:21 2018
@@ -0,0 +1,23 @@
+$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;
Index: pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Core_IOS_Network_Socket.h
diff -u /dev/null pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Core_IOS_Network_Socket.h:1.1
--- /dev/null Mon Oct 15 17:20:22 2018
+++ pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Core_IOS_Network_Socket.h Mon Oct 15 17:20:21 2018
@@ -0,0 +1,16 @@
+$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>
Index: pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Core_MemTools.cpp
diff -u /dev/null pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Core_MemTools.cpp:1.1
--- /dev/null Mon Oct 15 17:20:22 2018
+++ pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_Core_MemTools.cpp Mon Oct 15 17:20:21 2018
@@ -0,0 +1,15 @@
+$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
Index: pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_VideoCommon_DriverDetails.cpp
diff -u /dev/null pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_VideoCommon_DriverDetails.cpp:1.1
--- /dev/null Mon Oct 15 17:20:22 2018
+++ pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_VideoCommon_DriverDetails.cpp Mon Oct 15 17:20:21 2018
@@ -0,0 +1,15 @@
+$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__
Index: pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_VideoCommon_DriverDetails.h
diff -u /dev/null pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_VideoCommon_DriverDetails.h:1.1
--- /dev/null Mon Oct 15 17:20:22 2018
+++ pkgsrc/emulators/libretro-dolphin/patches/patch-Source_Core_VideoCommon_DriverDetails.h Mon Oct 15 17:20:21 2018
@@ -0,0 +1,14 @@
+$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
Home |
Main Index |
Thread Index |
Old Index