diff options
author | Robert Clausecker <fuz@FreeBSD.org> | 2023-02-09 16:25:27 +0000 |
---|---|---|
committer | Robert Clausecker <fuz@FreeBSD.org> | 2023-02-14 20:18:58 +0000 |
commit | 09490acc3fef0a0a6dfdb264f78965e2738175bd (patch) | |
tree | e9ea5ee787113b50a3b80a2418b23cf0e6dba7d4 | |
parent | 342a19d2da54e08fc124722bf9d91b75303582df (diff) | |
download | ports-09490acc3fef0a0a6dfdb264f78965e2738175bd.tar.gz ports-09490acc3fef0a0a6dfdb264f78965e2738175bd.zip |
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
-rw-r--r-- | emulators/fceux/Makefile | 12 | ||||
-rw-r--r-- | emulators/fceux/distinfo | 6 | ||||
-rw-r--r-- | emulators/fceux/files/patch-src_drivers_Qt_keyscan.cpp | 11 | ||||
-rw-r--r-- | 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 |