File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ brew 'portmidi'
5555brew 'potrace'
5656brew 'pugixml'
5757brew 'sdl2'
58+ brew 'sdl3'
5859brew 'shared-mime-info'
5960brew 'curl'
6061brew 'perl'
Original file line number Diff line number Diff line change @@ -249,6 +249,15 @@ for dtSharedObj in $dtSharedObjDirs; do
249249 cp -LR " $homebrewHome " /lib/" $dtSharedObj " /* " $dtResourcesDir " /lib/" $dtSharedObj " /
250250done
251251
252+ # Homebrew's `sdl2` is sdl2-compat, which dlopen()s libSDL3 at runtime —
253+ # otool can't see that, so install_dependencies misses it; copy explicitly
254+ sdl3Source=" $homebrewHome /opt/sdl3/lib/libSDL3.dylib"
255+ if [[ -f " $sdl3Source " ]]; then
256+ cp -L " $sdl3Source " " $dtResourcesDir " /lib/libSDL3.dylib
257+ install_name_tool -id " @executable_path/../Resources/lib/libSDL3.dylib" \
258+ " $dtResourcesDir " /lib/libSDL3.dylib || true
259+ fi
260+
252261dtSharedObjDirs=" libgphoto2 libgphoto2_port"
253262for dtSharedObj in $dtSharedObjDirs ; do
254263 mkdir " $dtResourcesDir " /lib/" $dtSharedObj "
You can’t perform that action at this time.
0 commit comments