linphone.bundle 7.53 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<app-bundle>

  <meta>
    <!-- Where to pick up the GTK+ installation, icon themes,
         etc. Note that "${env:JHBUILD_PREFIX}" is evaluated to the
         value of the environment variable JHBUILD_PREFIX. You can
         define additional prefixes and refer to them in paths
         throughout this file on the form "${prefix:name}". This is
         useful for installing certain libraries or even the
         application itself separately. Note that JHBUILD_PREFIX is
         defined by jhbuild, so it you are not using jhbuild you can
         either define your own or just hardcode the path here.
    -->
Simon Morlat's avatar
Simon Morlat committed
15
    <prefix name="default">/opt/local</prefix>
16
    <prefix name="linphone">${env:LINPHONE_INSTALL_PREFIX}</prefix>
17
    <prefix name="ms2plugins">${env:MS2_PLUGINS_INSTALL_PREFIX}</prefix>
18
    <!-- This prefix definition is necessary if some dependencies are to be taken from /usr/local/lib -->
19
    <prefix name="local">${env:LINPHONE_ADDITIONAL_DEPENDENCIES_PREFIX}</prefix>
20

21 22 23 24
    <!-- The project directory is the default location of the created
         app. If you leave out the path, the current directory is
         used. Note the usage of an environment variable here again.
    -->
25
    <destination overwrite="yes">${env:BUNDLE_PREFIX}</destination>
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58

    <image>
      <!-- Not implemented yet (DMG image). -->
    </image>

    <!-- Comment this out to keep the install names in binaries -->
    <run-install-name-tool/>
 
    <!-- Optionally specify a launcher script to use. If the
         application sets up everything needed itself, like
         environment variable, linker paths, etc, a launcher script is
         not needed. If the source path is left out, the default
         script will be used.
    -->
    <!--launcher-script>${project}/launcher.sh</launcher-script -->

    <!-- Not implemented: Optional runtime, could be python or mono
         for example.
    -->
    <!-- runtime copy="yes">/usr/bin/python</runtime -->
    <!-- Indicate the active gtk version to use. This is needed only
         for gtk+-3.0 projects. -->
    <gtk>gtk+-2.0</gtk>
  </meta>

  <!-- The special macro "${project}" refers to the directory where
       this bundle file is located. The application name and bundle
       identifier are taken from the plist file.
  -->
  <plist>${project}/Info-linphone.plist</plist>

  <main-binary>${prefix:linphone}/bin/linphone</main-binary>

59
  <binary >
60
    ${prefix:ms2plugins}/lib/mediastreamer/plugins/*.*.so
61
  </binary>
Simon Morlat's avatar
Simon Morlat committed
62 63
  
  <binary >
64
    ${prefix:linphone}/lib/*.*.dylib
Simon Morlat's avatar
Simon Morlat committed
65
  </binary>
66

67 68 69 70 71 72 73 74
  <!-- Copy in GTK+ modules.  Note the ${gtkdir} macro, which expands
       to the correct library subdirectory for the specified gtk
       version.
  -->
  <binary>
     ${prefix}/lib/${gtkdir}/modules/*.so
  </binary>

75
  <data>
76
    ${prefix}/share/mime/mime.cache
77
  </data>
78

79
  <!-- Copy in GTK+ theme engines and print backends. Note the use of the
80 81 82 83 84 85 86 87
       "${pkg:module:variable}" macro, which evaluates to a pkg-config
       variable in the specified module. Note that any libraries that
       binaries link to are also copied in automatically.  Note also
       the included ${gtk} macro, which gets the correct package name
       to get. -->
  <binary>
    ${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/engines/*.so
  </binary>
88
  <binary>
89
    ${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/printbackends/*.so
90
  </binary>
91

92 93
<!-- Starting with 2.24, gdk-pixbuf installs into its own directory. Do
     not install the svg pixbuf loader as it does not work. -->
94
  <binary>
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
    ${prefix}/lib/gdk-pixbuf-2.0/${pkg:${gtk}:gtk_binary_version}/loaders/libpixbufloader-bmp.so
  </binary>
  <binary>
    ${prefix}/lib/gdk-pixbuf-2.0/${pkg:${gtk}:gtk_binary_version}/loaders/libpixbufloader-gif.so
  </binary>
  <binary>
    ${prefix}/lib/gdk-pixbuf-2.0/${pkg:${gtk}:gtk_binary_version}/loaders/libpixbufloader-icns.so
  </binary>
  <binary>
    ${prefix}/lib/gdk-pixbuf-2.0/${pkg:${gtk}:gtk_binary_version}/loaders/libpixbufloader-ico.so
  </binary>
  <binary>
    ${prefix}/lib/gdk-pixbuf-2.0/${pkg:${gtk}:gtk_binary_version}/loaders/libpixbufloader-jpeg.so
  </binary>
  <binary>
    ${prefix}/lib/gdk-pixbuf-2.0/${pkg:${gtk}:gtk_binary_version}/loaders/libpixbufloader-png.so
111
  </binary>
112

113

114 115 116 117 118 119 120 121 122
   <!--binary>
    ${prefix}/lib/pango/${pkg:pango:pango_module_version}/modules/
  </binary-->

  <!--data>
    ${prefix}/etc/pango/
  </data-->

 <!-- Translation filenames, one for each program or library that you
123 124 125
       want to copy in to the bundle. The "dest" attribute is
       optional, as usual. Bundler will find all translations of that
       library/program under the indicated directory and copy them.-->
126 127 128 129
  <translations name="gtk20">
    ${prefix}/share/locale
  </translations>

130
  <data name="linphone">
131
    ${prefix:linphone}/share/locale
132
  </data>
133

134
  <translations name="gdk-pixbuf">
135 136
    ${prefix}/share/locale
  </translations>
137

138
  <translations name="glib20">
139 140
    ${prefix}/share/locale
  </translations>
141 142 143 144 145 146 147

  <!-- Data to copy in, usually Glade/UI files, images, sounds files
       etc. The destination inside the bundle can be specified if the
       files should end up at a different location, by using the
       "dest" property. The destination must then start with the macro
       "${bundle}", which refers to the bundle root directory.
  -->
148
  <data>
149 150 151 152 153
    ${prefix:linphone}/share/linphone
  </data>

  <data>
    ${prefix:linphone}/share/pixmaps/linphone
154 155
  </data>

156 157 158 159
  <data>
    ${prefix:linphone}/share/images
  </data>

160 161 162 163
  <data>
    ${prefix:linphone}/share/icons
  </data>

164 165 166 167 168 169 170 171 172 173 174
  <!-- Copy in the themes data. You may want to trim this to save space
       in your bundle. -->
  <data>
    ${prefix}/share/themes
  </data>

  <!-- Copy icons. Note that the .icns file is an Apple format which
       contains up to 4 sizes of icon. You can use
       /Developer/Applications/Utilities/Icon Composer.app to import
       artwork and create the file. -->
  <data dest="${bundle}/Contents/Resources">
Simon Morlat's avatar
Simon Morlat committed
175
    ${project}/../../pixmaps/linphone.icns
176 177 178 179 180 181 182 183 184 185
  </data>

  <data dest="${bundle}/Contents/Resources">
    ${project}/environment.sh
  </data>
  
  <!-- This is where theme commands go. You can copy them in from your
       theme of choice if they provide and example, or you can just
       change the source path. -->

186 187 188
  <data dest="${bundle}/Contents/Resources/etc/${gtkdir}/gtkrc">
    ${project}/../../gtk/gtkrc.mac
  </data>
189

190 191
  <data dest="${bundle}/Contents/Resources/share/sounds/linphone/rings/oldphone-mono.wav">
      ${prefix:linphone}/share/sounds/linphone/rings/oldphone-mono.wav
192 193
  </data>

194 195
  <data dest="${bundle}/Contents/Resources/share/sounds/linphone/toy-mono.wav">
      ${prefix:linphone}/share/sounds/linphone/toy-mono.wav
196 197
  </data>

198 199
  <data dest="${bundle}/Contents/Resources/share/sounds/linphone/ringback.wav">
      ${prefix:linphone}/share/sounds/linphone/ringback.wav
200
  </data>
201

202 203 204
  <data dest="${bundle}/Contents/Resources/share/sounds/linphone/incoming_chat.wav">
      ${prefix:linphone}/share/sounds/linphone/incoming_chat.wav
  </data>
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220

  <!-- Icon themes to copy. The "icons" property can be either of
       "auto", "all", or "none". All or none should be
       self-explanatory, while auto means that the script will try to
       figure out which icons are needed. This is done by getting all
       the strings from all copied binaries, and matching them against
       icon names. To be safe, you should use "all". "none" is useful
       if you want just the index.theme file but no icons, mostly
       needed for the "hicolor" base theme.
  >
  <icon-theme icons="auto">
    Tango
  </icon-theme -->

</app-bundle>