summaryrefslogtreecommitdiffstats
path: root/packaging/macosx
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-03 13:30:10 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-03 13:30:10 -0700
commit7a6cc12da28b055abbce6fc34a51c08fba200cb8 (patch)
tree9a61ab98e038509fc92cd048a4edbf8f9128d447 /packaging/macosx
parent65f6db6e2c0eb1a943ed42f8ae2ced97e628b051 (diff)
downloadsubsurface-7a6cc12da28b055abbce6fc34a51c08fba200cb8.tar.gz
Mac packaging - don't move Grantlee plugins
I don't know why we moved them from the 5.0 subdirectory, but that seems to break things now. Odd. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/macosx')
-rwxr-xr-xpackaging/macosx/make-package.sh12
1 files changed, 2 insertions, 10 deletions
diff --git a/packaging/macosx/make-package.sh b/packaging/macosx/make-package.sh
index 5392f9100..3e122fe17 100755
--- a/packaging/macosx/make-package.sh
+++ b/packaging/macosx/make-package.sh
@@ -59,22 +59,14 @@ for i in QtScript.framework/Versions/5/QtScript QtCore.framework/Versions/5/QtCo
install_name_tool -change @rpath/$i @executable_path/../Frameworks/$i ${LIBG}
done
-# it seems the compiler in XCode 4.6 doesn't build Grantlee5 correctly,
-# so cheat and copy over pre-compiled binaries created with a newer compiler
-# and adjust their references to the Grantlee template library
-#
-# -disabled for now as this is still under more investigation-
-# cp -a /Users/hohndel/src/tmp/Subsurface.app/Contents Subsurface.app/
-#cp ${DIR}/tmp/Subsurface.app/Contents/Frameworks/lib{sql,usb,zip}* Subsurface.app/Contents/Frameworks
-
# clean up shared library dependency in the Grantlee plugins
for i in Subsurface.app/Contents/PlugIns/grantlee/5.0/*.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;
- mv $i Subsurface.app/Contents/PlugIns/grantlee
+ OLD=$(otool -L $i | grep QtCore | cut -d\ -f1 | tr -d "\t")
+ install_name_tool -change ${OLD} @executable_path/../Frameworks/QtCore.framework/QtCore $i;
done
-rmdir Subsurface.app/Contents/PlugIns/grantlee/5.0
# copy things into staging so we can create a nice DMG
rm -rf ./staging