+ pcsxr-nia
This commit is contained in:
parent
5f496174ae
commit
b64b7bf47c
1
Makefile
1
Makefile
|
@ -2797,6 +2797,7 @@ SUBDIR+= pcsx
|
|||
SUBDIR+= pcsx-df
|
||||
SUBDIR+= pcsx2
|
||||
SUBDIR+= pcsxr
|
||||
SUBDIR+= pcsxr-nia
|
||||
SUBDIR+= pdb2ldif
|
||||
SUBDIR+= pdfcrack
|
||||
SUBDIR+= pdfminer
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
PCSX-Reloaded is a forked version of the dead PCSX PlayStation emulator, with
|
||||
a nicer interface and several improvements to stability and functionality.
|
||||
|
||||
PCSX-Reloaded uses the PSEMU plugin interface to provide most functionality;
|
||||
without them, you will not be able to use it to play games. PCSX-Reloaded
|
||||
provides a number of plugins to provide basic functionality out of the box.
|
|
@ -0,0 +1,36 @@
|
|||
# $NetBSD$
|
||||
|
||||
DISTNAME= pcsxr-1.9.95.20190306
|
||||
CATEGORIES= emulators
|
||||
MASTER_SITES= ${MASTER_SITE_GITHUB:=iCatButler/}
|
||||
GITHUB_PROJECT= pcsxr
|
||||
GITHUB_TAG= 62467b86871aee3d70c7445f3cb79f0858ec566e
|
||||
|
||||
MAINTAINER= nia@NetBSD.org
|
||||
HOMEPAGE= https://github.com/iCatButler/pcsxr
|
||||
COMMENT= Sony PlayStation emulator
|
||||
LICENSE= gnu-gpl-v3
|
||||
|
||||
USE_TOOLS+= pkg-config
|
||||
USE_LANGUAGES= c c++
|
||||
|
||||
USE_CMAKE= yes
|
||||
|
||||
.include "../../mk/bsd.prefs.mk"
|
||||
|
||||
.if ${OPSYS} != "Linux"
|
||||
CMAKE_ARGS+= -DDL_LIB=""
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
|
||||
NOT_PAX_MPROTECT_SAFE= bin/pcsxr
|
||||
.endif
|
||||
|
||||
.include "../../devel/SDL2/buildlink3.mk"
|
||||
.include "../../devel/zlib/buildlink3.mk"
|
||||
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
|
||||
.include "../../sysutils/desktop-file-utils/buildlink3.mk"
|
||||
.include "../../x11/gtk3/buildlink3.mk"
|
||||
.include "../../x11/libXext/buildlink3.mk"
|
||||
.include "../../x11/libXxf86vm/buildlink3.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
|
@ -0,0 +1,34 @@
|
|||
@comment $NetBSD$
|
||||
bin/pcsxr
|
||||
lib/games/psemu/cfgBladeSio1
|
||||
lib/games/psemu/cfgDFCdrom
|
||||
lib/games/psemu/cfgDFInput
|
||||
lib/games/psemu/cfgDFNet
|
||||
lib/games/psemu/cfgDFSound
|
||||
lib/games/psemu/cfgDFXVideo
|
||||
lib/games/psemu/cfgpeopsxgl
|
||||
lib/games/psemu/libBladeSio1.so
|
||||
lib/games/psemu/libDFCdrom.so
|
||||
lib/games/psemu/libDFInput.so
|
||||
lib/games/psemu/libDFNet.so
|
||||
lib/games/psemu/libDFSound.so
|
||||
lib/games/psemu/libDFXVideo.so
|
||||
lib/games/psemu/libNullSio1.so
|
||||
lib/games/psemu/libpeopsxgl.so
|
||||
man/man1/pcsxr.1
|
||||
share/applications/pcsxr.desktop
|
||||
share/doc/pcsxr/AUTHORS
|
||||
share/doc/pcsxr/COPYING
|
||||
share/doc/pcsxr/README
|
||||
share/doc/pcsxr/keys.txt
|
||||
share/doc/pcsxr/tweaks.txt
|
||||
share/icons/hicolor/48x48/apps/pcsxr-icon.png
|
||||
share/locale/es/LC_MESSAGES/pcsxr.mo
|
||||
share/locale/fr/LC_MESSAGES/pcsxr.mo
|
||||
share/locale/hu/LC_MESSAGES/pcsxr.mo
|
||||
share/locale/it/LC_MESSAGES/pcsxr.mo
|
||||
share/locale/ko_KR/LC_MESSAGES/pcsxr.mo
|
||||
share/locale/pt_BR/LC_MESSAGES/pcsxr.mo
|
||||
share/locale/ru/LC_MESSAGES/pcsxr.mo
|
||||
share/locale/zh_CN/LC_MESSAGES/pcsxr.mo
|
||||
share/locale/zh_TW/LC_MESSAGES/pcsxr.mo
|
|
@ -0,0 +1,3 @@
|
|||
Does not play well with NetBSD X11:
|
||||
|
||||
http://releng.netbsd.org/cgi-bin/req-9.cgi?show=1087
|
|
@ -0,0 +1,15 @@
|
|||
$NetBSD$
|
||||
|
||||
SHA1 (pcsxr-1.9.95.20190306-62467b86871aee3d70c7445f3cb79f0858ec566e.tar.gz) = bd9140a4b87b60382259a502c4f9434ef5b6e4ad
|
||||
RMD160 (pcsxr-1.9.95.20190306-62467b86871aee3d70c7445f3cb79f0858ec566e.tar.gz) = 63e07f88f9e190de78d9035404ae04906cd1f813
|
||||
SHA512 (pcsxr-1.9.95.20190306-62467b86871aee3d70c7445f3cb79f0858ec566e.tar.gz) = 894e795c3616bb6abf87d144e1a2409142d457f2f2c04c4287e2804bb06caf008f42501089d555b5e43e6b2d6d2e8ac9a7d78842bed975b1b4b94465f4ed3a3c
|
||||
Size (pcsxr-1.9.95.20190306-62467b86871aee3d70c7445f3cb79f0858ec566e.tar.gz) = 2229537 bytes
|
||||
SHA1 (patch-CMakeLists.txt) = 370eb85b69b8b3c97b0caf0a2d98b25a8fbd4a78
|
||||
SHA1 (patch-doc_CMakeLists.txt) = 14ede350ef8956a5a6939ae8f1b38e2aaa5b15df
|
||||
SHA1 (patch-libpcsxcore_ix86__64_ix86__cpudetect.c) = 9e06a6b08a505457a9cc4d8f7b3771368fbf6716
|
||||
SHA1 (patch-libpcsxcore_misc.c) = fd3f91e2c4554b30cca89e30b9794fc5e0380f7f
|
||||
SHA1 (patch-plugins_bladesio1_gui.c) = 8b9d5dc170f2b40d1fc5f4832137aeb7198ec274
|
||||
SHA1 (patch-plugins_dfcdrom_cdr.c) = 84d81e0a4d7be216c7fd0c3ecdc45d5427211b7c
|
||||
SHA1 (patch-plugins_dfinput_pad.c) = 33337086faea20646856d252292cbd0ddcc6d95c
|
||||
SHA1 (patch-plugins_dfsound_cfg.c) = 4886966684220f99812c0a6b4d41e6b36d8ade08
|
||||
SHA1 (patch-plugins_dfxvideo_cfg.c) = 6cb11eeea04e9feb6764c3ffee210ded090b1ba9
|
|
@ -0,0 +1,15 @@
|
|||
$NetBSD$
|
||||
|
||||
Do not strip executables, let pkgsrc handle that.
|
||||
|
||||
--- CMakeLists.txt.orig 2019-03-06 11:37:17.000000000 +0000
|
||||
+++ CMakeLists.txt
|
||||
@@ -15,8 +15,6 @@ set(PCSXR_VERSION_PATCH "94")
|
||||
add_definitions(-DPACKAGE_VERSION="${PCSXR_VERSION_MAJOR}.${PCSXR_VERSION_MINOR}.${PCSXR_VERSION_PATCH}")
|
||||
add_definitions(-DPACKAGE_NAME="PCSXr")
|
||||
add_definitions(-DPACKAGE_STRING="PCSXr ${PCSXR_VERSION_MAJOR}.${PCSXR_VERSION_MINOR}.${PCSXR_VERSION_PATCH}")
|
||||
-set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -s")
|
||||
-set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s")
|
||||
|
||||
include(CheckCCompilerFlag)
|
||||
include(GNUInstallDirs)
|
|
@ -0,0 +1,12 @@
|
|||
$NetBSD$
|
||||
|
||||
Respect PKGMANDIR
|
||||
|
||||
--- doc/CMakeLists.txt.orig 2019-03-06 11:37:17.000000000 +0000
|
||||
+++ doc/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-install(FILES pcsxr.1 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man1)
|
||||
+install(FILES pcsxr.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
|
||||
install(FILES keys.txt DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/pcsxr)
|
||||
install(FILES tweaks.txt DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/pcsxr)
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
$NetBSD$
|
||||
|
||||
Make this more generic.
|
||||
|
||||
--- libpcsxcore/ix86_64/ix86_cpudetect.c.orig 2019-03-06 11:37:17.000000000 +0000
|
||||
+++ libpcsxcore/ix86_64/ix86_cpudetect.c
|
||||
@@ -145,7 +145,7 @@ u64 GetCPUTick( void )
|
||||
#endif
|
||||
}
|
||||
|
||||
-#if defined(__linux__) || defined(__APPLE__)
|
||||
+#if defined(__unix__)
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <errno.h>
|
|
@ -0,0 +1,24 @@
|
|||
$NetBSD$
|
||||
|
||||
Portability.
|
||||
|
||||
--- libpcsxcore/misc.c.orig 2019-03-06 11:37:17.000000000 +0000
|
||||
+++ libpcsxcore/misc.c
|
||||
@@ -124,7 +124,7 @@ int GetCdromFile(u8 *mdir, u8 *time, s8
|
||||
i += dir->length[0];
|
||||
|
||||
if (dir->flags[0] & 0x2) { // it's a dir
|
||||
- if (!strnicmp((char *)&dir->name[0], filename, dir->name_len[0])) {
|
||||
+ if (!strncasecmp((char *)&dir->name[0], filename, dir->name_len[0])) {
|
||||
if (filename[dir->name_len[0]] != '\\') continue;
|
||||
|
||||
filename += dir->name_len[0] + 1;
|
||||
@@ -135,7 +135,7 @@ int GetCdromFile(u8 *mdir, u8 *time, s8
|
||||
mdir = ddir;
|
||||
}
|
||||
} else {
|
||||
- if (!strnicmp((char *)&dir->name[0], filename, strlen(filename))) {
|
||||
+ if (!strncasecmp((char *)&dir->name[0], filename, strlen(filename))) {
|
||||
mmssdd(dir->extent, (char *)time);
|
||||
break;
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
$NetBSD$
|
||||
|
||||
Portability.
|
||||
|
||||
--- plugins/bladesio1/gui.c.orig 2019-03-06 11:37:17.000000000 +0000
|
||||
+++ plugins/bladesio1/gui.c
|
||||
@@ -27,8 +27,8 @@
|
||||
|
||||
#include <sys/socket.h>
|
||||
#include <sys/ioctl.h>
|
||||
-#include <linux/if.h>
|
||||
#include <netinet/in.h>
|
||||
+#include <net/if.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
$NetBSD$
|
||||
|
||||
Make this more generic.
|
||||
|
||||
--- plugins/dfcdrom/cdr.c.orig 2019-03-06 11:37:17.000000000 +0000
|
||||
+++ plugins/dfcdrom/cdr.c
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "cdr.h"
|
||||
-#if defined(__linux__)
|
||||
+#ifndef _MACOSX
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#endif
|
|
@ -0,0 +1,19 @@
|
|||
$NetBSD$
|
||||
|
||||
Make the code more generic.
|
||||
|
||||
--- plugins/dfinput/pad.c.orig 2019-03-06 11:37:17.000000000 +0000
|
||||
+++ plugins/dfinput/pad.c
|
||||
@@ -17,10 +17,10 @@
|
||||
*/
|
||||
|
||||
#include "pad.h"
|
||||
-#if defined(__linux__)
|
||||
+#if defined(__unix__)
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
-#if !SDL_VERSION_ATLEAST(2,0,0)
|
||||
+#if !SDL_VERSION_ATLEAST(2,0,0) && defined(__linux__)
|
||||
#include <linux/input.h>
|
||||
#include <sys/file.h>
|
||||
#include <time.h>
|
|
@ -0,0 +1,17 @@
|
|||
$NetBSD$
|
||||
|
||||
waitpid code is compiled unconditionally.
|
||||
|
||||
--- plugins/dfsound/cfg.c.orig 2019-03-06 11:37:17.000000000 +0000
|
||||
+++ plugins/dfsound/cfg.c
|
||||
@@ -26,10 +26,8 @@
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <unistd.h>
|
||||
-#if defined(__linux__)
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
-#endif
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// START EXTERNAL CFG TOOL
|
|
@ -0,0 +1,15 @@
|
|||
$NetBSD$
|
||||
|
||||
Make the code more generic.
|
||||
|
||||
--- plugins/dfxvideo/cfg.c.orig 2019-03-06 11:37:17.000000000 +0000
|
||||
+++ plugins/dfxvideo/cfg.c
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
-#if defined(__linux__)
|
||||
+#if defined(__unix__)
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#endif
|
Loading…
Reference in New Issue