From 79a655261b8f7c409c68d6838446d5cb5d0dcbc4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Mon, 6 Nov 2023 15:45:06 +0100
Subject: [PATCH] macOS package: adapt for new filesystem location of MATLAB
 R2016b for x86-64

---
 macOS/build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/macOS/build.sh b/macOS/build.sh
index d4680da724..845be10853 100755
--- a/macOS/build.sh
+++ b/macOS/build.sh
@@ -38,7 +38,7 @@ else
     path_remove PATH /opt/homebrew/bin
     MATLAB_ARCH=maci64
     # On x86_64 we need to differentiate between older and newer MATLAB versions
-    OLD_MATLAB_PATH=/Applications/MATLAB_R2016b.app
+    OLD_MATLAB_PATH=/Applications/"$PKG_ARCH"/MATLAB_R2016b.app
 fi
 MATLAB_PATH=/Applications/"$PKG_ARCH"/MATLAB_R2023b.app
 
-- 
GitLab