summaryrefslogtreecommitdiffstats
path: root/packaging/macosx
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-05-19 19:52:46 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-05-19 21:22:31 -0700
commitdce7e46766f5acb8d4723f0b126df120e17051dd (patch)
treeb6eb5fcdfe18d062b11f1f501dcc4864ca547d70 /packaging/macosx
parentd417d717b99f322ba297199c311495cc93a3e1ef (diff)
downloadsubsurface-dce7e46766f5acb8d4723f0b126df120e17051dd.tar.gz
Mac: don't try to copy libraries we got from Homebrew
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/macosx')
-rwxr-xr-xpackaging/macosx/make-package.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/macosx/make-package.sh b/packaging/macosx/make-package.sh
index ba717bdb2..e1da0fc75 100755
--- a/packaging/macosx/make-package.sh
+++ b/packaging/macosx/make-package.sh
@@ -26,7 +26,7 @@ LIBRARY_PATH=${DIR}/install-root/lib make install
EXECUTABLE=Subsurface.app/Contents/MacOS/Subsurface
for i in libgit2 libGrantlee_TextDocument.dylib libGrantlee_Templates.dylib; do
OLD=$(otool -L ${EXECUTABLE} | grep $i | cut -d\ -f1 | tr -d "\t")
- if [ ! -z ${OLD} ] ; then
+ if [[ ! -z ${OLD} && ! -f Subsurface.app/Contents/Frameworks/$(basename ${OLD}) ]] ; then
# copy the library into the bundle and make sure its id and the reference to it are correct
cp ${DIR}/install-root/lib/$(basename ${OLD}) Subsurface.app/Contents/Frameworks
SONAME=$(basename $OLD)