summaryrefslogtreecommitdiffstats
path: root/packaging/macosx/make-package.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/macosx/make-package.sh')
-rwxr-xr-xpackaging/macosx/make-package.sh22
1 files changed, 1 insertions, 21 deletions
diff --git a/packaging/macosx/make-package.sh b/packaging/macosx/make-package.sh
index c1cafe177..c29aa672e 100755
--- a/packaging/macosx/make-package.sh
+++ b/packaging/macosx/make-package.sh
@@ -36,7 +36,7 @@ LIBRARY_PATH=${DIR}/install-root/lib make install
# now adjust a few references that macdeployqt appears to miss
EXECUTABLE=Subsurface.app/Contents/MacOS/Subsurface
-for i in libgit2 libGrantlee_TextDocument.dylib libGrantlee_Templates.dylib; do
+for i in libgit2 ; do
OLD=$(otool -L ${EXECUTABLE} | grep $i | cut -d\ -f1 | tr -d "\t")
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
@@ -78,26 +78,6 @@ for i in ${RPATH}; do
install_name_tool -change @rpath/$i @executable_path/../Frameworks/$i ${EXECUTABLE}
done
-# next deal with libGrantlee
-LIBG=$(ls Subsurface.app/Contents/Frameworks/libGrantlee_Templates*dylib)
-for i in QtScript.framework/Versions/5/QtScript QtCore.framework/Versions/5/QtCore ; do
- install_name_tool -change @rpath/$i @executable_path/../Frameworks/$i ${LIBG}
-done
-
-# clean up shared library dependency in the Grantlee plugins
-for i in Subsurface.app/Contents/PlugIns/grantlee/5.1/*.so; do
- OLD=$(otool -L $i | grep libGrantlee_Templates | cut -d\ -f1 | tr -d "\t")
- SONAME=$(basename $OLD )
- install_name_tool -change ${OLD} @executable_path/../Frameworks/${SONAME} $i;
- OLD=$(otool -L $i | grep QtCore | cut -d\ -f1 | tr -d "\t")
- install_name_tool -change ${OLD} @executable_path/../Frameworks/QtCore.framework/QtCore $i;
- mv $i Subsurface.app/Contents/PlugIns/grantlee
-done
-rmdir Subsurface.app/Contents/PlugIns/grantlee/5.1
-pushd Subsurface.app/Contents/PlugIns/grantlee
-ln -s . 5.1
-popd
-
if [ "$1" = "-nodmg" ] ; then
exit 0
fi