osx: More bundle fixes

This commit is contained in:
Alexander Kojevnikov 2011-02-22 18:39:09 +08:00
parent cb3460234d
commit 6c6bbbd065
3 changed files with 38 additions and 11 deletions

32
osx/README Normal file
View File

@ -0,0 +1,32 @@
Building the OS X bundle
========================
Spek bundle uses packages provided by MacPorts. After installing MacPorts build all dependencies:
$ sudo port install intltool
$ sudo port install vala
$ sudo port install pango +no_x11 +quartz
$ sudo port install gtk2 +no_x11 +quartz
$ sudo port install hicolor-icon-theme
$ sudo port install ffmpeg +no_x11 +no_nonfree
$ sudo port install ige-mac-integration
$ sudo port install ige-mac-bundler
Now make sure Spek builds by running `gmake && src/spek`.
Note that these ports:
ige-mac-integration
ffmpeg
gtk2
...require this line in their Portfile:
configure.ldflags-append -headerpad_max_install_names
Also, by some reason MacPorts doesn't install /opt/local/lib/charset.alias,
copy it from your favourite Unix flavour.
After all dependencies are built just run:
$ osx/bundle.sh

View File

@ -32,7 +32,7 @@ export GTK_PATH="$bundle_res"
export GTK2_RC_FILES="$bundle_etc/gtk-2.0/gtkrc"
export GTK_IM_MODULE_FILE="$bundle_etc/gtk-2.0/gtk.immodules"
export GDK_PIXBUF_MODULE_FILE="$bundle_etc/gtk-2.0/gdk-pixbuf.loaders"
export PANGO_RC_FILE="$bundle_etc/pango/pangorc"
export PANGO_SYSCONFDIR="$bundle_etc"
APP=name
I18NDIR="$bundle_data/locale"

View File

@ -31,21 +31,16 @@
<data dest="${bundle}/Contents/Resources/share">
${project}/bin/share
</data>
<!-- Copy in the themes data. You may want to trim this to save space
in your bundle. -->
<!-- data>
<data>
${prefix}/share/themes
</data -->
</data>
<data dest="${bundle}/Contents/Resources">
${project}/Spek.icns
</data>
<data dest="${bundle}/Contents/Resources/etc/${gtkdir}/gtkrc">
${project}/gtkrc
</data>
<!-- icon-theme icons="auto">
Tango
</icon-theme -->
<icon-theme icons="auto">
hicolor
</icon-theme>
</app-bundle>