Ok, so I'll try to describe the changes in the build process I've made.
You are using various port install commands on different packages. I've patched some Portfiles (gimp, gimp2, openjpeg) so I can do a single "sudo port install gimp". This is just a matter of taste. Most important differences are:
dropped: xsane, ghostscript
added: gimp-jp2, gtk2-clearlooks, greycstoration
and modified some configure-options in gimp2 (removed: --without-dbus, added: --disable-dependency-tracking, --disable-glibtest, --disable-gtktest, --disable-alsatest, --without-alsa)
I've patched ufraw source code too (more Aperture compatible files extensions, the main window remains open after you save an image. I will desribe the patches in some other posting...)
You can can download the patched Portfiles here: http://gimp.lisanet.de/gimp-Portfile http://gimp.lisanet.de/gimp2-Portfile http://gimp.lisanet.de/openjpeg-Portfile
I've made a new template for the application bundle. Main differences are:
- version in Info.plist is updated by the scipt 'makegimpapp'
- version in Contents/Resources/script is updated by 'makegimpappscript' script, Leopard only (I don't have Tiger to test with)
- version file 'vXXX' is updated by the script, so 'script' can ensure that the symlink points to the correct Gimp.app version
- Contents/Resources/sript is prepared for a separate launcher app for ufraw (needs to be done, still beta)
- Contents/Resources/openDoc: same changes as in 'script', Leopard only
- new icon
- no getdisplay.sh in C/R/bin (because Leopard only)
- added some themes to C/R/share/themes
- added QuickLook-plugin to Contents/Library/QuickLook
I've written a script 'makegimpapp'. These are the differences to gimpguts.sh
- some checking if the symlink exists
- detecting Gimp version
echo copying binaries ...
BINS="dbus-daemon dbus-launch gimp-2.4 gimp-remote-2.4 python2.5 ufraw"
So I don't use gimp-console, gimp-tool and gs
'gimp-console is just the same as calling 'gimp -i'. 'gimp-tool' isn't needed because Gimp.app is not ready for compiling plugins. gs isn't need because you can use OS X's on CUPS
echo copying etc direcories and files ...
ETC="dbus-1 fonts gimp gtk-2.0 pango"
this is exactly the same as gimpguts.sh
# libdirs and .so and .dylib
echo copying libraries ...
LIBDIRS="engines gimp gnome-vfs-2.0 gtk-2.0 libglade orbit-2.0 pango python2.5"
changes in cleaning up lib/*:
delete *.la and *.a in any subdirs too
removed lib/gnome-vfs-2.0/include, lib/gtk-2.0/include, lib/python2.5/test
dropped: pygtk (there's no usefull lib in it)
added: engines, gnome-vfs, libglade, orbit (AFAIK they are needed, but I'm not quite sure)
added: *.so files in lib
echo copying share subdirectories ...
SHAREDIRS="gimp gimp-lqr-plugin gutenprint icons locale poppler pygobject pygtk"
ghostscript is dropped (The print plugin works without it. I'm using OS X's own CUPS)
removed some sudirs: icons/gnome, icons/hicolor, gutenprint/doc, gutenprint/samples
echo cleaning up locales ...
find locale \( \! -name "gtk*" -and \! -name "gimp*" -and \! -name "ufraw" \) -delete
delete anything but gtk*, gimp*, ufraw* (oops, there's a typo in my script....)
Finally I do some configuring for files in etc
- dbus-1/system.conf: use a user writeable directory in the /tmp hierarchy
- fonts/fonts.conf: use ~/Library/App...Support/Gimp/fonts as additional font dir
and set font caching dir to a sudir in ~/Library/App...Support/Gimp (your build still uses dot files/folders)
This is mainly because I think that on OS X every app should use the OS x specific fiels and direcories and not use the Unix-like dot files and dot directories. On OS X it should be possible to delete an app by dropping it into Trash. If the app needs some additional files or other stuff, this should go into '~/Library/Application Support/APPNAME' or '/Library/Application Support/APPNAME'
# Availbale themes (Place the name of the theme in quotes):
# Glossy P
gtk-theme-name = "Leopard"
# this is Mac OS X default font
gtk-font-name = "Lucida Grande 10"
# this is for Gimp's print preview
- this creates a default gtkrc in etc/gtk-2.0/gtkrc (used by ufraw) and in etc/gimp/2.0 (used by gimp)
- Lucida Grande 10 in combination with a correct dpi setting in /usr/X11/bin/startx will result in the same font sizes as OS X
- no hardcoded path to Preview.app. This uses the users preferred pdf viewer app.
# configuration default for Mac OS X leopard, by skl
(comment "Created with GIMP on a Mac"))
(rgb-profile "/System/Library/ColorSync/Profiles/sRGB Profile.icc")
(cmyk-profile "/System/Library/ColorSync/Profiles/Generic CMYK Profile.icc")
(web-browser "open %s")
and these are some gimp defaults in etc/gimp/2.0/gimprc