2012-10-02 03:47:50 +00:00
|
|
|
Creating a Subsurface bundle
|
2012-10-07 14:39:17 +00:00
|
|
|
============================
|
2012-10-02 03:47:50 +00:00
|
|
|
|
|
|
|
install gtk-mac-bundler (this has been tested with version 0.7.0) and run
|
|
|
|
|
2012-10-07 14:39:17 +00:00
|
|
|
$ gtk-mac-bundler subsurface.bundle
|
2012-10-02 03:47:50 +00:00
|
|
|
|
2012-10-19 19:53:08 +00:00
|
|
|
This should install a self-contained Subsurface application under
|
|
|
|
./staging/Subsurface.app
|
|
|
|
|
|
|
|
Sadly because of the way gettext accesses the gtk20.mo file, this fails
|
|
|
|
for localized use - in that case you need to rebuild MacPorts with
|
|
|
|
-prefix /Applications/Subsurface.app/Contents/Resources
|
|
|
|
And then things work correctly IFF the app gets installed with that path.
|
|
|
|
|
|
|
|
What a pain.
|
|
|
|
|
2012-10-02 03:47:50 +00:00
|
|
|
You still need to manually build a DMG if you want to easily distribute this.
|
|
|
|
|
2012-10-19 19:53:08 +00:00
|
|
|
hdiutil create -volname Subsurface -srcfolder staging Subsurface-<version>.dmg
|
|
|
|
|
2012-10-07 14:39:17 +00:00
|
|
|
Caveats
|
|
|
|
-------
|
2012-10-02 03:47:50 +00:00
|
|
|
|
2012-10-07 14:39:17 +00:00
|
|
|
* You need (at least with MacPorts) to build pango like this:
|
|
|
|
|
|
|
|
$ sudo port install pango +builtin_modules +no_x11 +quartz
|
2012-10-02 03:47:50 +00:00
|
|
|
|
|
|
|
Without the builtin modules the installed application fails to find the modules and doesn't render any text.
|
2012-10-19 19:53:08 +00:00
|
|
|
Also note the comment above about the -prefix
|
2012-10-02 03:47:50 +00:00
|
|
|
|
2012-10-07 14:39:17 +00:00
|
|
|
* It seems that gtk-mac-bundler expects the charset.alias file to be
|
|
|
|
in the ${prefix}/lib folder which it isn't with the current version of
|
|
|
|
MacPorts. The following fixes that:
|
2012-10-02 19:13:19 +00:00
|
|
|
|
2012-10-07 14:39:17 +00:00
|
|
|
$ sudo cp /usr/lib/charset.alias /opt/local/lib
|
2012-10-02 19:13:19 +00:00
|
|
|
|
2012-10-07 14:39:17 +00:00
|
|
|
* libdivecomputer needs to be configured with --with-prefix=/opt/local
|
2012-10-19 19:53:08 +00:00
|
|
|
(or /Applications/Subsurface.app/Contents/Resources for localized builds)
|
2012-10-02 03:47:50 +00:00
|
|
|
|