Skip to content

Commit cec3b55

Browse files
committed
dosbox-x: update to 2026.03.29
Drop patch-futimens.diff and patch-mactypes.diff, both now merged upstream. Add patch-configure-metal-link.diff: the Metal framework detection link test in configure.ac did not pass -framework Metal to the linker, causing the test to always fail and C_METAL to go undefined. Add patch-screen-metal-guard.diff: render.cpp referenced SCREEN_METAL behind a #if that lacked the C_METAL guard required by its declaration in sdlmain.h, causing a build failure when Metal is not detected.
1 parent ff9b412 commit cec3b55

File tree

5 files changed

+55
-47
lines changed

5 files changed

+55
-47
lines changed

emulators/dosbox-x/Portfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ PortGroup legacysupport 1.0
66
PortGroup app 1.0
77
PortGroup muniversal 1.0
88

9-
github.setup joncampbell123 dosbox-x 2025.10.07 dosbox-x-v
9+
github.setup joncampbell123 dosbox-x 2026.03.29 dosbox-x-v
10+
github.tarball_from archive
1011
revision 0
1112

12-
checksums rmd160 d4b2a2bb1d499a6bba10f7aadc376444796c51d2 \
13-
sha256 fed630dba74f1ad1552bc5ec94cb68f70737e67a7ca1768f6071b255426ce117 \
14-
size 124274305
13+
checksums rmd160 150a2bffb1ec04155f2d2cfd31facaf4355f9df2 \
14+
sha256 c244c1910444a0ad886d9bae05cc72b3ef036e340d5e2fc33edf364c0dce344e \
15+
size 132971542
1516

1617
categories emulators
1718
license GPL-2+
@@ -27,10 +28,9 @@ long_description DOSBox is a DOS emulator supporting 286/386 realmode, direct
2728
and 64-bit processors
2829

2930
homepage https://dosbox-x.com
30-
github.tarball_from archive
3131

32-
patchfiles patch-futimens.diff \
33-
patch-mactypes.diff
32+
patchfiles patch-configure-metal-link.diff \
33+
patch-screen-metal-guard.diff
3434

3535
supported_archs i386 x86_64 arm64
3636

@@ -112,3 +112,5 @@ post-destroot {
112112
}
113113

114114
app.icon contrib/icons/dosbox-x.png
115+
116+
github.livecheck.regex {([0-9.]+)}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
--- configure.ac.orig 2025-03-28 00:00:00.000000000 +0000
2+
+++ configure.ac 2025-03-28 00:00:00.000000000 +0000
3+
@@ -674,18 +674,23 @@ AC_MSG_CHECKING([for Metal support])
4+
case "$host_os" in
5+
darwin*)
6+
AC_LANG_PUSH([Objective C++])
7+
8+
+ saved_LIBS="$LIBS"
9+
+ LIBS="$LIBS -framework Metal -framework QuartzCore"
10+
+
11+
AC_LINK_IFELSE(
12+
[AC_LANG_PROGRAM([[
13+
#import <Metal/Metal.h>
14+
]], [[
15+
id<MTLDevice> device = MTLCreateSystemDefaultDevice();
16+
return (device == nil);
17+
]])],
18+
[have_metal=yes],
19+
[have_metal=no]
20+
)
21+
+
22+
+ LIBS="$saved_LIBS"
23+
24+
AC_LANG_POP
25+
;;
26+
esac

emulators/dosbox-x/files/patch-futimens.diff

Lines changed: 0 additions & 19 deletions
This file was deleted.

emulators/dosbox-x/files/patch-mactypes.diff

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--- src/gui/render.cpp.orig 2025-03-28 00:00:00.000000000 +0000
2+
+++ src/gui/render.cpp 2025-03-28 00:00:00.000000000 +0000
3+
@@ -887,7 +887,7 @@ skip_1:
4+
#if C_DIRECT3D && C_SDL2
5+
&& (sdl.desktop.type != SCREEN_DIRECT3D11)
6+
#endif
7+
-#if defined(MACOSX) && C_SDL2
8+
+#if defined(MACOSX) && C_SDL2 && C_METAL
9+
&& (sdl.desktop.type != SCREEN_METAL)
10+
#endif
11+
) {
12+
@@ -1375,7 +1375,7 @@ bool GFX_GetScanLines() {
13+
#if C_DIRECT3D && C_SDL2
14+
if(sdl.desktop.type == SCREEN_DIRECT3D11) return false;
15+
#endif
16+
-#if defined(MACOSX) && C_SDL2
17+
+#if defined(MACOSX) && C_SDL2 && C_METAL
18+
if(sdl.desktop.type == SCREEN_METAL) return false;
19+
#endif
20+
break;

0 commit comments

Comments
 (0)