diff options
Diffstat (limited to 'emulators/fceux/Makefile')
-rw-r--r-- | emulators/fceux/Makefile | 29 |
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 |