diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2013-01-14 14:58:08 -0500 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2013-01-14 14:58:08 -0500 |
commit | 1eca3a0f0dfb31d57a7d2b0a43cc14b67f501c44 (patch) | |
tree | 4fe815084a3d6531a1275b2e22ef4ee5ad78b693 | |
parent | 1b722297976f0dc1a1824c87b46dda98dc73d317 (diff) | |
parent | fe703deae753710dc80dcc280ff475af06c0ac85 (diff) | |
download | bitcoin-1eca3a0f0dfb31d57a7d2b0a43cc14b67f501c44.tar.xz |
Merge branch 'macdeployqt_fix' of git://github.com/themighty1/bitcoin
-rwxr-xr-x | contrib/macdeploy/macdeployqtplus | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/contrib/macdeploy/macdeployqtplus b/contrib/macdeploy/macdeployqtplus index 16daa59b08..cc60537589 100755 --- a/contrib/macdeploy/macdeployqtplus +++ b/contrib/macdeploy/macdeployqtplus @@ -172,7 +172,9 @@ class DeploymentInfo(object): elif os.path.exists(os.path.join(os.path.dirname(parentDir), "share", "qt4", "translations")): # Newer Macports layout self.qtPath = os.path.join(os.path.dirname(parentDir), "share", "qt4") - + else: + self.qtPath = os.getenv("QTDIR", None) + if self.qtPath is not None: pluginPath = os.path.join(self.qtPath, "plugins") if os.path.exists(pluginPath): @@ -242,7 +244,11 @@ def runStrip(binaryPath, verbose): subprocess.check_call(["strip", "-x", binaryPath]) def copyFramework(framework, path, verbose): - fromPath = framework.sourceFilePath + if framework.sourceFilePath.startswith("Qt"): + #standard place for Nokia Qt installer's frameworks + fromPath = "/Library/Frameworks/" + framework.sourceFilePath + else: + fromPath = framework.sourceFilePath toDir = os.path.join(path, framework.destinationDirectory) toPath = os.path.join(toDir, framework.binaryName) @@ -345,7 +351,7 @@ def deployPlugins(appBundleInfo, deploymentInfo, strip, verbose): if pluginDirectory == "designer": # Skip designer plugins continue - elif pluginDirectory == "phonon": + elif pluginDirectory == "phonon" or pluginDirectory == "phonon_backend": # Deploy the phonon plugins only if phonon is in use if not deploymentInfo.usesFramework("phonon"): continue |