Hello,
I've recently switched for good to MacOSX (after several years of work with Windows). I'm user and fan Inkscape. On Windows there was pretty well working native build, while it is missing on MacOSX (X11 build is pretty slow and not handy) So I've decided to make it myself and now share my experience with you.
Attached the screenshot of my running native OSX (Leopard) version of Inkscape (no, it's not a fake ! ;P)
I've used the recipe from http://wiki.inkscape.org/wiki/index.php/CompilingMacOsX with MacPorts.
Here are my changes to original MacPorts recipe:
1) I've updated to latest GTK+2 using: (you need to do the same or Inkscape will be crashing every few seconds) port edit gtk2 version 2.12.5 checksums md5 588c7fb3d9ebadf4f5a1ab4c534e4db5 port install gtk2 +quartz 2) I've downgraded boehmgc to 6.8 (latest 7.0 causes Inkscape to hang (never ending loop) on startup) port edit boehmgc version 6.8 distname ${d_name}${version} checksums sha1 6d5def5ba5d29292ba9c76f04df3ec06d3ab3278 3) Applied my own-cooked patch Inkscape_OSX_native_menu_and_toolbars.patch (attached)
* src/widgets/toolbox.cpp: removes tb_s, tb_e spacers from the toolbars to they DON'T have ugly underlines (who did invent this anyway, this produces ugly look in most GTK themes where toolbars are 2x inset in the GUI, I believe this should be removed anyway in all builds (platforms)) * src/ige-mac-menu.[c/h]: sources for native Carbon Mac top menu wrapper instead of having the menu inside the window (taken from GIMP sources) * src/interface.cpp: use ige_mac_menu_set_menu_bar on native GTK (Quartz) for menu and return NULL so no menu is displayed in the Window itself * configure.ac: add Carbon checking and libs define required ige-mac- menu * src/Makefile_insert: add Carbon libs and ige-mac-menu sources * removes packaging/macosx/Resources/themes/Clearlooks-Quicksilver- OSX: we should take Leopardish-normal theme instead from: http://www.gnome-look.org/content/show.php/Leopardish?content=65299 which is far more adequate for GTK looking like OSX 4) then normally built with packaging/macosx/osx-build.sh a c b i p 5) fixed Inkscape.app so it is displayed as single Launch bar icon named "Inkscape" by: * removing Contents/Resources/getdisplay.sh & Contents/Resources/ inkscape (we don't need those in native !) * renaming Contents/Resources/inkscape-bin to Contents/Resources/ Inkscape * replacing Contents/MacOS/Inkscape with simple shell script that sets cwd to Inkscape.app and runs Contents/Resources/bin/Inkscape:
#!/bin/sh PRG="$0" while [ -h "$PRG" ] ; do ls=`ls -ld "$PRG"` link=`expr "$ls" : '.*-> (.*)$'` if expr "$link" : '/.*' > /dev/null; then PRG="$link" else PRG=`dirname "$PRG"`"/$link" fi done DIR="`dirname $PRG`" cd $DIR cd ../.. exec Contents/Resources/bin/Inkscape
6) Changed GTK theme (with gtk-chtheme) to Leopardish and font "Geneva 11pt" - MacOSX default
And the result is Inkscape looking & working like native OSX (Leopard) application: * native look with GTK Leopardish-normal theme * native menus with ige-mac-menu-bar * native Name and application in Launch bar
Yet I found some problems while doing those changes: * ige-mac-menu doesn't map properly keyboard shortcuts as it should (as it does with GIMP), those should be mapped with Ctrl<->Cmd transition, while they're not mapped at all with Inkscape * ige-mac-menu trick with returning NULL to avoid display the 2nd menu in the window makes probably some problem with updating the menu in the app in later stages so things like recent files don't show up in the app menu anymore * ige-mac-menu should be extended with Inkscape (bold) menu entries for preferences and application closure (I hope Mac users will know what I mean) * my tricks with Inkscape.app are as dirty as old tricks for X11 version, I believe that proper solution should anyway place final native binary of Inkscape in Contents/Resources/MacOS and map properly path in Contents/Resources for lib, etc, share,.. and so on without intermediate shell scripts (like mine) * toolbox should be set to small icons by default (SVN is set to big icons), unless the Inkscape window will forced to set its minimum height of toolbox height, which results in Inkscape not being resizable vertically on my MacBook at all ! (being too big) * Leopardish-normal theme and "Geneva 11pt" should be set by default in Inkscape.app somehow if no GTK settings (or other GTK installation) are present * ... and finally there's some problem with SVG View repaint, everytime it repaints (when opening or activating Inkscape window) the view is afterward erased by default (grayish) color (???) and then when I move the mouse over the view (which is erased with solid color), the repaints 2nd time, this time the proper output stays on screen. I believe it is problem of Inkscape not GTK+ cos it doesn't happen in any other place but just SVG (Document) view.
Anyway my build works pretty well, there're some minor annoyances in some windows (like File open window) however it seems to be pretty stable (doesn't crash) and responsible.
I hope it will help you (Developers) to make some time native OSX official builds... maybe 0.46 !?
Best regards,