Update to fceux-2.5.0.
From Tom Murphy; thanks! ok sdk@
This commit is contained in:
parent
09b56d3ebc
commit
d78a0dbf6d
|
@ -1,8 +1,8 @@
|
|||
# $OpenBSD: Makefile,v 1.22 2021/10/29 10:26:23 bentley Exp $
|
||||
# $OpenBSD: Makefile,v 1.23 2022/01/11 13:52:38 bentley Exp $
|
||||
|
||||
COMMENT = emulator for Nintendo Entertainment System
|
||||
|
||||
V = 2.4.0
|
||||
V = 2.5.0
|
||||
DISTNAME = fceux-${V}
|
||||
CATEGORIES = emulators games
|
||||
|
||||
|
@ -16,14 +16,16 @@ PERMIT_PACKAGE = Yes
|
|||
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=fceultra/}
|
||||
|
||||
WANTLIB += ${COMPILER_LIBCXX} ${MODLUA_WANTLIB}
|
||||
WANTLIB += GL GLU Qt5Core Qt5Gui Qt5OpenGL Qt5Widgets
|
||||
WANTLIB += SDL2 c m minizip x264 z
|
||||
WANTLIB += avcodec avformat avutil GL GLU Qt5Core
|
||||
WANTLIB += Qt5Gui Qt5OpenGL Qt5Widgets SDL2
|
||||
WANTLIB += swresample swscale c m minizip x264 x265 z
|
||||
|
||||
COMPILER = base-clang ports-gcc base-gcc
|
||||
|
||||
RUN_DEPENDS = devel/desktop-file-utils
|
||||
LIB_DEPENDS = archivers/minizip \
|
||||
devel/sdl2 \
|
||||
graphics/ffmpeg \
|
||||
multimedia/x264
|
||||
|
||||
MODULES = devel/cmake \
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
SHA256 (fceux-2.4.0.tar.gz) = p4wm2EfCIlPRTSZO8DiWk3GIowL8GQtgiLAaYFYsLno=
|
||||
SIZE (fceux-2.4.0.tar.gz) = 21807471
|
||||
SHA256 (fceux-2.5.0.tar.gz) = ZdhKPMWBStlYuKBrg1wWYMgyC9Zss07zPBR9Y3TNGyA=
|
||||
SIZE (fceux-2.5.0.tar.gz) = 21992303
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
$OpenBSD: patch-src_CMakeLists_txt,v 1.1 2021/10/29 10:13:16 bentley Exp $
|
||||
$OpenBSD: patch-src_CMakeLists_txt,v 1.2 2022/01/11 13:52:38 bentley Exp $
|
||||
|
||||
Index: src/CMakeLists.txt
|
||||
--- src/CMakeLists.txt.orig
|
||||
+++ src/CMakeLists.txt
|
||||
@@ -98,7 +98,7 @@ else(WIN32)
|
||||
@@ -128,7 +128,7 @@ else(WIN32)
|
||||
endif()
|
||||
|
||||
# Check for LUA
|
||||
|
@ -11,17 +11,8 @@ Index: src/CMakeLists.txt
|
|||
+ pkg_search_module( LUA lua51 lua-5.1 )
|
||||
|
||||
add_definitions( -DHAVE_ASPRINTF ) # What system wouldn't have this?
|
||||
|
||||
@@ -106,7 +106,7 @@ else(WIN32)
|
||||
set( OPENGL_LDFLAGS "-framework OpenGL" )
|
||||
else()
|
||||
set( OPENGL_LDFLAGS ${OPENGL_LIBRARIES} )
|
||||
- set( SYS_LIBS -lrt -lpthread )
|
||||
+ set( SYS_LIBS -lpthread )
|
||||
endif()
|
||||
|
||||
endif(WIN32)
|
||||
@@ -581,7 +581,7 @@ install( FILES ${CMAKE_CURRENT_SOURCE_DIR}/auxlib.
|
||||
add_definitions( -DLUA_USE_LINUX ) # This needs to be set when link LUA internally for linux and macosx
|
||||
@@ -631,7 +631,7 @@ install( FILES ${CMAKE_CURRENT_SOURCE_DIR}/auxlib.
|
||||
install( DIRECTORY ${CMAKE_SOURCE_DIR}/output/. DESTINATION share/fceux )
|
||||
install( FILES ${CMAKE_SOURCE_DIR}/fceux1.png DESTINATION share/pixmaps )
|
||||
install( FILES ${CMAKE_SOURCE_DIR}/fceux.desktop DESTINATION share/applications )
|
||||
|
|
|
@ -1,41 +0,0 @@
|
|||
$OpenBSD: patch-src_drivers_Qt_ConsoleWindow_cpp,v 1.1 2021/10/29 10:13:16 bentley Exp $
|
||||
|
||||
Index: src/drivers/Qt/ConsoleWindow.cpp
|
||||
--- src/drivers/Qt/ConsoleWindow.cpp.orig
|
||||
+++ src/drivers/Qt/ConsoleWindow.cpp
|
||||
@@ -3817,7 +3817,7 @@ int consoleWin_t::getSchedParam( int &policy, int &pri
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
-#if defined(__linux__) || defined(__unix__)
|
||||
+#if defined(__linux__)
|
||||
struct sched_param p;
|
||||
|
||||
policy = sched_getscheduler( getpid() );
|
||||
@@ -3833,7 +3833,7 @@ int consoleWin_t::getSchedParam( int &policy, int &pri
|
||||
priority = p.sched_priority;
|
||||
}
|
||||
|
||||
-#elif defined(__APPLE__)
|
||||
+#elif defined(__APPLE__) || defined(__OpenBSD__)
|
||||
struct sched_param p;
|
||||
|
||||
if ( pthread_getschedparam( pthread_self(), &policy, &p ) )
|
||||
@@ -3853,7 +3853,7 @@ int consoleWin_t::getSchedParam( int &policy, int &pri
|
||||
int consoleWin_t::setSchedParam( int policy, int priority )
|
||||
{
|
||||
int ret = 0;
|
||||
-#if defined(__linux__) || defined(__unix__)
|
||||
+#if defined(__linux__)
|
||||
struct sched_param p;
|
||||
int minPrio, maxPrio;
|
||||
|
||||
@@ -3875,7 +3875,7 @@ int consoleWin_t::setSchedParam( int policy, int prior
|
||||
perror("GUI thread sched_setscheduler error");
|
||||
ret = -1;
|
||||
}
|
||||
-#elif defined(__APPLE__)
|
||||
+#elif defined(__APPLE__) || defined(__OpenBSD__)
|
||||
struct sched_param p;
|
||||
int minPrio, maxPrio;
|
||||
|
Loading…
Reference in New Issue
Block a user