adding osx application bundler scripts
[pspp] / utilities / osxbundler / pspp.bundle
1 <?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
2 <app-bundle>
3
4   <meta>
5     <!-- Where to pick up the GTK+ installation, icon themes,
6          etc. Note that "/opt/pspp" is evaluated to the
7          value of the environment variable JHBUILD_PREFIX. You can
8          define additional prefixes and refer to them in paths
9          throughout this file on the form "${prefix:name}". This is
10          useful for installing certain libraries or even the
11          application itself separately. Note that JHBUILD_PREFIX is
12          defined by jhbuild, so it you are not using jhbuild you can
13          either define your own or just hardcode the path here.
14     -->
15     <prefix name="default">${env:PSPPINSTALL}</prefix>
16
17     <!-- The project directory is the default location of the created
18          app. If you leave out the path, the current directory is
19          used. Note the usage of an environment variable here again.
20     -->
21     <!--destination overwrite="yes">${env:HOME}/Desktop</destination-->
22
23     <image>
24       <!-- Not implemented yet (DMG image). -->
25     </image>
26
27     <!-- Comment this out to keep the install names in binaries -->
28     <run-install-name-tool/>
29  
30     <!-- Optionally specify a launcher script to use. If the
31          application sets up everything needed itself, like
32          environment variable, linker paths, etc, a launcher script is
33          not needed. If the source path is left out, the default
34          script will be used.
35     -->
36     <launcher-script>${project}/install/share/gtk-mac-bundler/examples/gtk3-launcher.sh</launcher-script >
37
38     <!-- Not implemented: Optional runtime, could be python or mono
39          for example.
40     -->
41     <!-- runtime copy="yes">/usr/bin/python</runtime -->
42     <!-- Indicate the active gtk version to use. This is needed only
43          for gtk+-3.0 projects. -->
44     <gtk>gtk+-3.0</gtk>
45   </meta>
46
47   <!-- The special macro "${project}" refers to the directory where
48        this bundle file is located. The application name and bundle
49        identifier are taken from the plist file.
50   -->
51   <plist>${project}/Info-pspp.plist</plist>
52
53   <main-binary>${prefix}/bin/psppire</main-binary>
54
55   <binary>${prefix}/bin/psppire.bin</binary>
56   
57
58   <!-- Copy in the input methods. Dunno if they actually work with
59        OSX. Note the ${gtkdir} macro, which expands to the correct
60        library subdirectory for the specified gtk version. -->
61   <binary>
62     ${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/immodules/*.so
63   </binary>
64
65 <!-- And the print backends -->
66   <binary>
67     ${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/printbackends/*.so
68   </binary>
69
70 <!-- Starting with 2.24, gdk-pixbuf installs into its own directory. -->
71   <binary>
72     ${prefix}/lib/gdk-pixbuf-2.0/${pkg:gdk-pixbuf-2.0:gdk_pixbuf_binary_version}/loaders/*.so
73   </binary>
74
75 <!-- No longer needed for pango >= 1.38
76   <binary>
77     ${prefix}/lib/pango/${pkg:pango:pango_module_version}/modules/
78   </binary>
79 -->
80
81   <!-- Translation filenames, one for each program or library that you
82        want to copy in to the bundle. The "dest" attribute is
83        optional, as usual. Bundler will find all translations of that
84        library/program under the indicated directory and copy them.-->
85   <translations  name="gtk30">
86     ${prefix}/share/locale
87   </translations>
88   <translations  name="pspp">
89     ${prefix}/share/locale
90   </translations>
91
92   <!-- Data to copy in, usually Glade/UI files, images, sounds files
93        etc. The destination inside the bundle can be specified if the
94        files should end up at a different location, by using the
95        "dest" property. The destination must then start with the macro
96        "${bundle}", which refers to the bundle root directory.
97   -->
98   <data>
99     ${prefix}/share/pspp
100   </data>
101
102   <!-- Copy in the themes data. You may want to trim this to save space
103        in your bundle. -->
104   <data>
105     ${prefix}/share/themes
106   </data>
107
108   <data>
109     ${prefix}/share/icons
110   </data>
111
112   <data>
113     ${prefix}/share/mime
114   </data>
115   <data>
116     ${prefix}/share/glib-2.0
117   </data>  
118
119   <!-- Copy icons. Note that the .icns file is an Apple format which
120        contains up to 4 sizes of icon. You can use
121        /Developer/Applications/Utilities/Icon Composer.app to import
122        artwork and create the file. -->
123   <data dest="${bundle}/Contents/Resources">
124     ${project}/pspp.icns
125   </data>
126
127   </app-bundle>