pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators libretro-dolphin: import version 20180827



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7db1c627665d
branches:  trunk
changeset: 386345:7db1c627665d
user:      nia <nia%pkgsrc.org@localhost>
date:      Mon Oct 15 17:20:21 2018 +0000

description:
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.

diffstat:

 emulators/Makefile                                                                     |   3 +-
 emulators/libretro-dolphin/DESCR                                                       |   8 +
 emulators/libretro-dolphin/MESSAGE                                                     |   9 +
 emulators/libretro-dolphin/Makefile                                                    |  53 ++++++++++
 emulators/libretro-dolphin/PLIST                                                       |   2 +
 emulators/libretro-dolphin/distinfo                                                    |  18 +++
 emulators/libretro-dolphin/patches/patch-CMakeLists.txt                                |  24 ++++
 emulators/libretro-dolphin/patches/patch-Externals_SFML_include_SFML_Config.hpp        |  18 +++
 emulators/libretro-dolphin/patches/patch-Source_Core_Common_MemoryUtil.cpp             |  33 ++++++
 emulators/libretro-dolphin/patches/patch-Source_Core_Common_StringUtil.cpp             |  52 +++++++++
 emulators/libretro-dolphin/patches/patch-Source_Core_Common_Swap.h                     |  15 ++
 emulators/libretro-dolphin/patches/patch-Source_Core_Common_Thread.cpp                 |  24 ++++
 emulators/libretro-dolphin/patches/patch-Source_Core_Core_Analytics.cpp                |  15 ++
 emulators/libretro-dolphin/patches/patch-Source_Core_Core_HW_EXI_EXI__DeviceEthernet.h |  23 ++++
 emulators/libretro-dolphin/patches/patch-Source_Core_Core_IOS_Network_Socket.h         |  16 +++
 emulators/libretro-dolphin/patches/patch-Source_Core_Core_MemTools.cpp                 |  15 ++
 emulators/libretro-dolphin/patches/patch-Source_Core_VideoCommon_DriverDetails.cpp     |  15 ++
 emulators/libretro-dolphin/patches/patch-Source_Core_VideoCommon_DriverDetails.h       |  14 ++
 18 files changed, 356 insertions(+), 1 deletions(-)

diffs (truncated from 439 to 300 lines):

diff -r 4c53cfa28615 -r 7db1c627665d emulators/Makefile
--- a/emulators/Makefile        Mon Oct 15 12:20:47 2018 +0000
+++ b/emulators/Makefile        Mon Oct 15 17:20:21 2018 +0000
@@ -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-core-info
 SUBDIR+=       libretro-database
 SUBDIR+=       libretro-desmume
+SUBDIR+=       libretro-dolphin
 SUBDIR+=       libretro-fbalpha
 SUBDIR+=       libretro-fceumm
 SUBDIR+=       libretro-freeintv
diff -r 4c53cfa28615 -r 7db1c627665d emulators/libretro-dolphin/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-dolphin/DESCR  Mon Oct 15 17:20:21 2018 +0000
@@ -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.
diff -r 4c53cfa28615 -r 7db1c627665d emulators/libretro-dolphin/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-dolphin/MESSAGE        Mon Oct 15 17:20:21 2018 +0000
@@ -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.
+
+===========================================================================
diff -r 4c53cfa28615 -r 7db1c627665d emulators/libretro-dolphin/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-dolphin/Makefile       Mon Oct 15 17:20:21 2018 +0000
@@ -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"
diff -r 4c53cfa28615 -r 7db1c627665d emulators/libretro-dolphin/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-dolphin/PLIST  Mon Oct 15 17:20:21 2018 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2018/10/15 17:20:21 nia Exp $
+lib/libretro/dolphin_libretro.so
diff -r 4c53cfa28615 -r 7db1c627665d emulators/libretro-dolphin/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-dolphin/distinfo       Mon Oct 15 17:20:21 2018 +0000
@@ -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
diff -r 4c53cfa28615 -r 7db1c627665d emulators/libretro-dolphin/patches/patch-CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-dolphin/patches/patch-CMakeLists.txt   Mon Oct 15 17:20:21 2018 +0000
@@ -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()
diff -r 4c53cfa28615 -r 7db1c627665d emulators/libretro-dolphin/patches/patch-Externals_SFML_include_SFML_Config.hpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-dolphin/patches/patch-Externals_SFML_include_SFML_Config.hpp   Mon Oct 15 17:20:21 2018 +0000
@@ -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
diff -r 4c53cfa28615 -r 7db1c627665d emulators/libretro-dolphin/patches/patch-Source_Core_Common_MemoryUtil.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-dolphin/patches/patch-Source_Core_Common_MemoryUtil.cpp        Mon Oct 15 17:20:21 2018 +0000
@@ -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);
diff -r 4c53cfa28615 -r 7db1c627665d emulators/libretro-dolphin/patches/patch-Source_Core_Common_StringUtil.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-dolphin/patches/patch-Source_Core_Common_StringUtil.cpp        Mon Oct 15 17:20:21 2018 +0000
@@ -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)
+       {
diff -r 4c53cfa28615 -r 7db1c627665d emulators/libretro-dolphin/patches/patch-Source_Core_Common_Swap.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-dolphin/patches/patch-Source_Core_Common_Swap.h        Mon Oct 15 17:20:21 2018 +0000
@@ -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
+ 
diff -r 4c53cfa28615 -r 7db1c627665d emulators/libretro-dolphin/patches/patch-Source_Core_Common_Thread.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-dolphin/patches/patch-Source_Core_Common_Thread.cpp    Mon Oct 15 17:20:21 2018 +0000
@@ -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 @@



Home | Main Index | Thread Index | Old Index