git: c5e6b567dcfb - main - emulators/fceux: add qt5/qt6 flavours
Date: Sun, 28 Sep 2025 09:30:56 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c5e6b567dcfb6ca8a5c9632ba4edfbd14a0e294d
commit c5e6b567dcfb6ca8a5c9632ba4edfbd14a0e294d
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-09-22 13:12:49 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-09-28 09:29:32 +0000
emulators/fceux: add qt5/qt6 flavours
PR: 289724
Reported by: diizzy
---
emulators/fceux/Makefile | 29 +++++++++++++++++++++++------
1 file changed, 23 insertions(+), 6 deletions(-)
diff --git a/emulators/fceux/Makefile b/emulators/fceux/Makefile
index b8cdef87b71a..d8f379380948 100644
--- a/emulators/fceux/Makefile
+++ b/emulators/fceux/Makefile
@@ -1,7 +1,7 @@
PORTNAME= fceux
DISTVERSIONPREFIX= v
DISTVERSION= 2.6.6
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= emulators games
PATCH_SITES= https://github.com/TASEmulators/fceux/commit/
@@ -17,21 +17,38 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libminizip.so:archivers/minizip
-USES= cmake desktop-file-utils gl libarchive lua:51 pkgconfig qt:5 sdl
-USE_GL= gl glu
-USE_QT= buildtools:build core gui opengl qmake:build widgets
-USE_SDL= sdl2
+FLAVORS= qt5 qt6
+FLAVOR?= ${FLAVORS:[1]}
+qt5_PKGNAMEPREFIX= qt5-
+qt6_PKGNAMEPREFIX= qt6-
+USES= cmake desktop-file-utils gl libarchive lua:51 pkgconfig sdl
USE_GITHUB= yes
GH_ACCOUNT= TASEmulators
+USE_GL= gl glu
+USE_SDL= sdl2
+
+.if ${FLAVOR} == qt5
+USE_QT= buildtools:build core gui opengl qmake:build widgets
+USES+= qt:5
+CMAKE_OFF= QT6
+.else
+USES+= qt:6
+USE_QT= base
+CMAKE_ON= QT6
+.endif
CFLAGS+= -DPUBLIC_RELEASE
-CMAKE_ON= GLVND
+CMAKE_ON+= GLVND QHELP QT6
OPTIONS_DEFINE= DOCS FFMPEG X264 X265
OPTIONS_DEFAULT= FFMPEG X264 X265
DOCS_CMAKE_BOOL= QHELP
+.if ${FLAVOR} == qt5
DOCS_USE= qt=help,sql
+.else
+DOCS_USE= qt=tools
+.endif
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
X264_LIB_DEPENDS= libx264.so:multimedia/libx264
X265_LIB_DEPENDS= libx265.so:multimedia/x265