~ubuntu-branches/ubuntu/wily/openms/wily

« back to all changes in this revision

Viewing changes to cmake/MacOSX/install_qt.bash

  • Committer: Package Import Robot
  • Author(s): Filippo Rusconi
  • Date: 2013-12-20 11:30:16 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20131220113016-wre5g9bteeheq6he
Tags: 1.11.1-3
* remove version number from libbost development package names;
* ensure that AUTHORS is correctly shipped in all packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
## 
3
 
## 04/16/2009 - Stephan Aiche
4
 
##  Copies the Qt libraries into the installation bundle and fixes the 
5
 
##  internal associations between the different Qt libraries
6
 
##
7
 
## Commandline arguments are: 
8
 
##  $1 -> QT_LIB_PATH
9
 
##  $2 -> target path
10
 
##  $3 -> install_name_tool
11
 
for lib in QtOpenGL QtCore QtGui QtXml QtSql QtNetwork QtTest QtSvg QtWebKit QtXmlPatterns
12
 
do
13
 
    # copy Qt library
14
 
    cp -Rf $1/$lib.framework $2
15
 
 
16
 
    # update user rights on framework since we cannot be sure if we already have 
17
 
    # write access
18
 
    chmod -RH u+w $2/$lib.framework
19
 
 
20
 
    # fix the id's
21
 
    $3 -id @executable_path/../lib/$lib.framework/Versions/4/$lib \
22
 
        $2/$lib.framework/Versions/4/$lib
23
 
 
24
 
    # fix reference to core
25
 
    $3 -change $1/QtCore.framework/Versions/4/QtCore \
26
 
        @executable_path/../lib/QtCore.framework/Versions/4/QtCore \
27
 
        $2/$lib.framework/Versions/4/$lib
28
 
done
29
 
 
30
 
#fix reference of QtOpenGL to QtGui
31
 
$3 -change $1/QtGui.framework/Versions/4/QtGui \
32
 
    @executable_path/../lib/QtGui.framework/Versions/4/QtGui \
33
 
    $2/QtOpenGL.framework/Versions/4/QtOpenGL
34
 
 
35
 
$3 -change $1/QtGui.framework/Versions/4/QtGui \
36
 
    @executable_path/../lib/QtGui.framework/Versions/4/QtGui \
37
 
    $2/QtSvg.framework/Versions/4/QtSvg
38
 
 
39
 
#delete debug stuff
40
 
find $2 -name "*debug*" -not -name "*.h" -exec rm -f {} \;