summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Clausecker <fuz@FreeBSD.org>2025-09-22 15:12:49 +0200
committerRobert Clausecker <fuz@FreeBSD.org>2025-09-28 11:29:32 +0200
commitc5e6b567dcfb6ca8a5c9632ba4edfbd14a0e294d (patch)
tree615d02200153e1ff2de70164ba4bad539b392963
parentdevel/corrade: fix build on armv7 (diff)
emulators/fceux: add qt5/qt6 flavours
PR: 289724 Reported by: diizzy
-rw-r--r--emulators/fceux/Makefile29
1 files 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