Hi,

  Here's an update to emulators/fceux to v2.5.0. A few highlights:

  * Dependency on graphics/ffmpeg for recording videos
  * Cmakelists patch changed. Some upstream changes went in
  * QT ConsoleWindow.cpp patch no longer needed (upstream changes)

  Runs well on my amd64 system -- tested with a few roms.

  OK?

  Thanks,
  Tom

Index: Makefile
===================================================================
RCS file: /cvs/ports/emulators/fceux/Makefile,v
retrieving revision 1.22
diff -u -p -r1.22 Makefile
--- Makefile    29 Oct 2021 10:26:23 -0000      1.22
+++ Makefile    4 Dec 2021 13:00:58 -0000
@@ -2,7 +2,7 @@
 
 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 \
Index: distinfo
===================================================================
RCS file: /cvs/ports/emulators/fceux/distinfo,v
retrieving revision 1.5
diff -u -p -r1.5 distinfo
--- distinfo    29 Oct 2021 10:13:16 -0000      1.5
+++ distinfo    4 Dec 2021 13:00:58 -0000
@@ -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
Index: patches/patch-src_CMakeLists_txt
===================================================================
RCS file: /cvs/ports/emulators/fceux/patches/patch-src_CMakeLists_txt,v
retrieving revision 1.1
diff -u -p -r1.1 patch-src_CMakeLists_txt
--- patches/patch-src_CMakeLists_txt    29 Oct 2021 10:13:16 -0000      1.1
+++ patches/patch-src_CMakeLists_txt    4 Dec 2021 13:00:58 -0000
@@ -3,7 +3,7 @@ $OpenBSD: patch-src_CMakeLists_txt,v 1.1
 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  )
Index: patches/patch-src_drivers_Qt_ConsoleWindow_cpp
===================================================================
RCS file: patches/patch-src_drivers_Qt_ConsoleWindow_cpp
diff -N patches/patch-src_drivers_Qt_ConsoleWindow_cpp
--- patches/patch-src_drivers_Qt_ConsoleWindow_cpp      29 Oct 2021 10:13:16 
-0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -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;
- 

Reply via email to