Skip to content

Commit 091da48

Browse files
committed
macports
1 parent efe2fd3 commit 091da48

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/tsdl.ml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ let lib_sdl2 =
5959
try trylib "/usr/local/lib/libSDL2.dylib"
6060
with _ -> (* Homebrew Apple Silicon (M1/M2/M3) *)
6161
try trylib "/opt/homebrew/lib/libSDL2.dylib"
62-
with _ -> begin
62+
with _ -> (* Macports *)
63+
try trylib "/opt/local/lib/libSDL2.dylib"
64+
with _ ->
65+
begin
6366
print_endline "Could not find SDL2 library file.";
6467
None
6568
end

0 commit comments

Comments
 (0)