summaryrefslogtreecommitdiff
path: root/emulators/dolphin-emu/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/dolphin-emu/Makefile')
-rw-r--r--emulators/dolphin-emu/Makefile22
1 files changed, 13 insertions, 9 deletions
diff --git a/emulators/dolphin-emu/Makefile b/emulators/dolphin-emu/Makefile
index a4f52e9efce0..28a4114b8714 100644
--- a/emulators/dolphin-emu/Makefile
+++ b/emulators/dolphin-emu/Makefile
@@ -1,5 +1,5 @@
PORTNAME= dolphin-emu
-PORTVERSION= 2412
+PORTVERSION= 2506
PORTREVISION= 1
CATEGORIES= emulators
@@ -10,16 +10,19 @@ WWW= https://www.dolphin-emu.org
LICENSE= BSD3CLAUSE CC0-1.0 GPLv2+ MIT
LICENSE_COMB= multi
-BUILD_DEPENDS= vulkan-headers>0:graphics/vulkan-headers
+BUILD_DEPENDS= vulkan-headers>0:graphics/vulkan-headers \
+ ${LOCALBASE}/include/linux/input.h:devel/evdev-proto
# Notes on dependencies:
# - alsa support has been disabled (not optimal)
-# - enet and soundtouch come from Externals/ as Dolphin's versions diverge
+# - enet comes from Externals/ as Dolphin's version diverges
# (see comments in CMakeLists.txt)
# Various problems that may be addressed in the future:
# - freesurround comes from Externals/ as it is not available from ports yet
# - cubeb comes from Externals/ as it is not available from ports yet
# - gtest detection is missing (Externals/ version enforced by CMakeLists.txt)
+# - SFML comes from Externals/ as v3.0 is needed
# - mbedtls2 comes from Externals/ as it has been deprecated in the ports tree
+# - mGBA comes from Externals/ as building with our ports' version fails
LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \
libavdevice.so:multimedia/ffmpeg \
libavfilter.so:multimedia/ffmpeg \
@@ -39,11 +42,12 @@ LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \
libpulse.so:audio/pulseaudio \
libjack.so:audio/jack \
libsndio.so:audio/sndio \
- libsfml-system.so:devel/sfml \
libminiupnpc.so:net/miniupnpc \
libcurl.so:ftp/curl \
libhidapi.so:comms/hidapi \
- libxkbcommon.so:x11/libxkbcommon
+ libxkbcommon.so:x11/libxkbcommon \
+ libudev.so:devel/libudev-devd \
+ libevdev.so:devel/libevdev
USES= cmake compiler:c++17-lang desktop-file-utils elfctl gl iconv \
pkgconfig python qmake qt:6 sdl xorg
@@ -61,14 +65,14 @@ USE_SDL= sdl2
USE_XORG= ice sm x11 xext xi xrandr
USE_QT= base svg
-# XXX Does not build with USE_MGBA or ENABLE_EVDEV
CMAKE_ARGS+= -DUSE_UPNP:BOOL=ON \
-DENABLE_QT:BOOL=ON \
-DENABLE_ALSA:BOOL=OFF \
-DENABLE_PULSEAUDIO:BOOL=ON \
-DUSE_DISCORD_PRESENCE:BOOL=OFF \
- -DUSE_MGBA:BOOL=OFF \
- -DENABLE_AUTOUPDATE:BOOL=OFF
+ -DUSE_MGBA:BOOL=ON \
+ -DENABLE_AUTOUPDATE:BOOL=OFF \
+ -DENABLE_EVDEV:BOOL=ON
MAKE_ENV+= DESTDIR="${STAGEDIR}"
# XXX Fix build on archs where 'unsigned long' is 32bit
@@ -76,7 +80,7 @@ CXXFLAGS+= -DLZO_CFG_PREFER_TYPEOF_ACC_INT32E_T=LZO_TYPEOF_INT
# Bypass git check (and set a dummy -unused- revision)
CMAKE_ARGS+= -DDOLPHIN_WC_BRANCH:STRING="stable" \
- -DDOLPHIN_WC_REVISION:STRING="1"
+ -DDOLPHIN_WC_REVISION:STRING="${PORTVERSION}"
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes