Skip to content

Commit

Permalink
emulators/fceux: Update to 2.6.5
Browse files Browse the repository at this point in the history
An interim release, gathering bug fixes and improvements from the past
year.

 - move REINPLACE_CMD usage to pre-configure to make make makepatch
   easier to use.
 - commit 2d34c2b for PR #262886 has changed the package list to
   ship a man page we explicitly did not want to ship.  Fix the
   post-install target and pkg-plist to continue not shipping the
   man page.

Changelog: https://fceux.com/web/pressrelease-2.6.5.html

Approved by:	eduardo (mentor)
Differential Revision: https://reviews.freebsd.org/D38517
  • Loading branch information
clausecker committed Feb 14, 2023
1 parent 342a19d commit 09490ac
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
12 changes: 7 additions & 5 deletions emulators/fceux/Makefile
@@ -1,8 +1,7 @@
PORTNAME= fceux
DISTVERSION= 2.6.4
PORTREVISION= 1
DISTVERSIONPREFIX= v
DISTVERSION= 2.6.5
CATEGORIES= emulators games
MASTER_SITES= SF/fceultra/Source%20Code/${DISTVERSION}%20src/

MAINTAINER= fuz@FreeBSD.org
COMMENT= NES emulator
Expand All @@ -18,6 +17,9 @@ USE_GL= gl glu
USE_QT= buildtools:build core gui opengl qmake:build widgets
USE_SDL= sdl2

USE_GITHUB= yes
GH_ACCOUNT= TASEmulators

CFLAGS+= -DPUBLIC_RELEASE
CMAKE_ON= GLVND

Expand All @@ -29,7 +31,7 @@ FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
X264_LIB_DEPENDS= libx264.so:multimedia/libx264
X265_LIB_DEPENDS= libx265.so:multimedia/x265

post-patch:
pre-configure:
${REINPLACE_CMD} -e 's,/usr,${PREFIX},' ${WRKSRC}/fceux.desktop
${REINPLACE_CMD} -e 's:%%PKGNAME%%:${PKGNAME}:' ${WRKSRC}/scripts/genGitHdr.sh
${REINPLACE_CMD} -e 's,/usr,${PREFIX},' ${WRKSRC}/src/drivers/Qt/HelpPages.cpp
Expand All @@ -41,6 +43,6 @@ post-install:
${RM} ${STAGEDIR}${DATADIR}/*.dll
${RM} ${STAGEDIR}${DATADIR}/*.chm
# currently broken and not shipped
${RM} ${STAGEDIR}${PREFIX}/man/man6/fceux-net-server.6
${RM} ${STAGEDIR}${PREFIX}/share/man/man6/fceux-net-server.6

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions emulators/fceux/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1648120308
SHA256 (fceux-2.6.4.tar.gz) = cc2f153076af0969cec2d8ab33077af98f820ef89bfcea7f72c50cb2c2a22df6
SIZE (fceux-2.6.4.tar.gz) = 23372193
TIMESTAMP = 1676212323
SHA256 (TASEmulators-fceux-v2.6.5_GH0.tar.gz) = 78156f3685c55849351178773940871ed607bc4fc37f233fdab58c232e3208fa
SIZE (TASEmulators-fceux-v2.6.5_GH0.tar.gz) = 23299626
11 changes: 11 additions & 0 deletions emulators/fceux/files/patch-src_drivers_Qt_keyscan.cpp
@@ -0,0 +1,11 @@
--- src/drivers/Qt/keyscan.cpp.orig 2023-02-13 00:05:10 UTC
+++ src/drivers/Qt/keyscan.cpp
@@ -46,7 +46,7 @@ static uint32_t AltKeyCodeR = VK_RMENU;
static uint32_t MetaKeyCodeR = VK_RWIN;
static BYTE keyBuf[256];

-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__FreeBSD__)

#if defined(_HAS_XKB)
#include <xkbcommon/xkbcommon.h>
1 change: 0 additions & 1 deletion emulators/fceux/pkg-plist
@@ -1,7 +1,6 @@
bin/fceux
share/applications/fceux.desktop
share/man/man6/fceux.6.gz
share/man/man6/fceux-net-server.6.gz
%%PORTDOCS%%%%DATADIR%%/fceux.qch
%%PORTDOCS%%%%DATADIR%%/fceux.qhc
%%PORTDOCS%%%%DATADIR%%/fceux.qhp
Expand Down

0 comments on commit 09490ac

Please sign in to comment.