forked from Yasushi/putty
-
Notifications
You must be signed in to change notification settings - Fork 6
/
putty.bundle
77 lines (59 loc) · 2.57 KB
/
putty.bundle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<app-bundle>
<meta>
<!--
Set up the pathname prefix where the bundler will look for GTK
components such as themes and input method modules.
This is more of a pain than it ought to be. The example bundle
files that come with gtk-mac-bundler set this up by writing
<prefix name="default">${env:JHBUILD_PREFIX}</prefix>
which works provided your OS X GTK dev environment was set up
by jhbuild. But not everybody's is: some people prefer
alternative packaging systems. So that environment variable
won't be reliably set in everyone's world.
The gtk-mac-bundler README suggests that you _ought_ to be
able to write this instead:
<prefix name="default">${pkg:gtk+-3.0:prefix}</prefix>
which uses pkg-config from $PATH to get the 'prefix' variable.
That's surely exactly what you want - except that it doesn't
work, because ${pkg:...} is not expanded when processing
<prefix> directives in particular!
So instead, to make this work sensibly whether or not
someone's using jhbuild, I work around it by inventing an
environment variable of my own and setting that in the
Makefile to the value given by the above pkg-config command.
It's absurd that I have to, but there we go. As a result, if
you try to run the bundler command standalone, you'll find you
have to set that variable up manually before you run it.
-->
<prefix name="default">${env:PUTTY_GTK_PREFIX_FROM_MAKEFILE}</prefix>
<run-install-name-tool/>
<gtk>gtk+-3.0</gtk>
<!-- 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}/../osxlaunch</launcher-script >
</meta>
<plist>${project}/putty.plist</plist>
<main-binary dest="${bundle}/Contents/MacOS">
${project}/../puttyapp
</main-binary>
<binary>
${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/immodules/*.so
</binary>
<binary>
${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/printbackends/*.so
</binary>
<data>
${prefix}/share/themes/Adwaita
</data>
<data dest="${bundle}/Contents/Resources">
${project}/../icons/PuTTY.icns
</data>
<icon-theme icons="auto">
Adwaita
</icon-theme>
</app-bundle>