Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Feb 2023 20:23:50 GMT
From:      Robert Clausecker <fuz@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 09490acc3fef - main - emulators/fceux: Update to 2.6.5
Message-ID:  <202302142023.31EKNoel059708@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=09490acc3fef0a0a6dfdb264f78965e2738175bd

commit 09490acc3fef0a0a6dfdb264f78965e2738175bd
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-02-09 16:25:27 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-02-14 20:18:58 +0000

    emulators/fceux: Update to 2.6.5
    
    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
---
 emulators/fceux/Makefile                               | 12 +++++++-----
 emulators/fceux/distinfo                               |  6 +++---
 emulators/fceux/files/patch-src_drivers_Qt_keyscan.cpp | 11 +++++++++++
 emulators/fceux/pkg-plist                              |  1 -
 4 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/emulators/fceux/Makefile b/emulators/fceux/Makefile
index e3c46481c044..f92005edff42 100644
--- a/emulators/fceux/Makefile
+++ b/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
@@ -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
 
@@ -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
@@ -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>
diff --git a/emulators/fceux/distinfo b/emulators/fceux/distinfo
index f2c4bd836766..3d914f5dca23 100644
--- a/emulators/fceux/distinfo
+++ b/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
diff --git a/emulators/fceux/files/patch-src_drivers_Qt_keyscan.cpp b/emulators/fceux/files/patch-src_drivers_Qt_keyscan.cpp
new file mode 100644
index 000000000000..11b7ed196d1f
--- /dev/null
+++ b/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>
diff --git a/emulators/fceux/pkg-plist b/emulators/fceux/pkg-plist
index d4a44cdb3370..40b8fb8afad0 100644
--- a/emulators/fceux/pkg-plist
+++ b/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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302142023.31EKNoel059708>