putty.bundle 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
  2. <app-bundle>
  3. <meta>
  4. <!--
  5. Set up the pathname prefix where the bundler will look for GTK
  6. components such as themes and input method modules.
  7. This is more of a pain than it ought to be. The example bundle
  8. files that come with gtk-mac-bundler set this up by writing
  9. <prefix name="default">${env:JHBUILD_PREFIX}</prefix>
  10. which works provided your OS X GTK dev environment was set up
  11. by jhbuild. But not everybody's is: some people prefer
  12. alternative packaging systems. So that environment variable
  13. won't be reliably set in everyone's world.
  14. The gtk-mac-bundler README suggests that you _ought_ to be
  15. able to write this instead:
  16. <prefix name="default">${pkg:gtk+-3.0:prefix}</prefix>
  17. which uses pkg-config from $PATH to get the 'prefix' variable.
  18. That's surely exactly what you want - except that it doesn't
  19. work, because ${pkg:...} is not expanded when processing
  20. <prefix> directives in particular!
  21. So instead, to make this work sensibly whether or not
  22. someone's using jhbuild, I work around it by inventing an
  23. environment variable of my own and setting that in the
  24. Makefile to the value given by the above pkg-config command.
  25. It's absurd that I have to, but there we go. As a result, if
  26. you try to run the bundler command standalone, you'll find you
  27. have to set that variable up manually before you run it.
  28. -->
  29. <prefix name="default">${env:PUTTY_GTK_PREFIX_FROM_MAKEFILE}</prefix>
  30. <run-install-name-tool/>
  31. <gtk>gtk+-3.0</gtk>
  32. <!-- Optionally specify a launcher script to use. If the
  33. application sets up everything needed itself, like
  34. environment variable, linker paths, etc, a launcher script is
  35. not needed. If the source path is left out, the default
  36. script will be used.
  37. -->
  38. <launcher-script>${project}/../osxlaunch</launcher-script >
  39. </meta>
  40. <plist>${project}/putty.plist</plist>
  41. <main-binary dest="${bundle}/Contents/MacOS">
  42. ${project}/../puttyapp
  43. </main-binary>
  44. <binary>
  45. ${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/immodules/*.so
  46. </binary>
  47. <binary>
  48. ${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/printbackends/*.so
  49. </binary>
  50. <data>
  51. ${prefix}/share/themes/Adwaita
  52. </data>
  53. <data dest="${bundle}/Contents/Resources">
  54. ${project}/../icons/PuTTY.icns
  55. </data>
  56. <icon-theme icons="auto">
  57. Adwaita
  58. </icon-theme>
  59. </app-bundle>