It turns out that installing gimp-gap is not as difficult as it seems. I added a few steps to the Lisa Method, and now I have GAP 2.4.0 running with Gimp 2.4.5 on my Tiger PPC.
There is already a gimp-gap Portfile in macports under graphics/gimp-gap. That portfile references gimp-gap 2.2, so you have to change the version number, download location, and md5 checksum as follows:
Line 6:
version 2.4.0
Line 14:
master_sites
ftp://ftp.gimp.org/pub/gimp/plug-ins/v2.4/gap/Line 15:
checksums md5 b3e8eb56cc3d94325a81266a2d95fa39
Save the changes to the portfile and copy it to:
~/src/macports/Gimp.app/Contents/Resources/var/macports/sources/rsync.macports.org/release/ports/graphics/gimp-gap
After installing gimp and the other plugins, install gap by typing:
sudo ~/src/macports/Gimp.app/Contents/Resources/bin/port -d install gimp-gap
This will install and configure MPlayer, ffmpeg, XViD, and all the other dependencies GAP needs. The final step is getting the executables into the Gimp.app skeleton. I added the following lines to gimpguts.sh in darwingimp/experimental/new-skeleton/build:
sudo cp -v ~/src/macports/Gimp.app/Contents/Resources/bin/mplayer bin/
sudo cp -vRP ~/src/macports/Gimp.app/Contents/Resources/etc/MPlayer etc/
sudo cp -vRP ~/src/macports/Gimp.app/Contents/Resources/share/gimp-gap share/
sudo cp -vRP ~/src/macports/Gimp.app/Contents/Resources/lib/gimp-gap-2.4 lib/
This may copy more files than are necessary, but it works, so I'm not too concerned about it. Maybe someone who knows more about the skeleton portion of the process can verify this. The final Gimp.app is about 200 MB as compared to 130 MB without GAP. So far I have tested some of the features like extracting frames, moving paths, and re-encoding. These functions all work fine, but I'll continue to test the others. The only issue I have is that the gap_wr_opacity plugin fails to load at startup. It gives this error:
(gap_wr_opacity:390 8) : LibGimp-CRITICAL **: gimp_install_procedure: assertion `(n_return_vals == 0 && return_vals == NULL) || (n_return_vals > 0 && return_vals != NULL)' failed
GIMP-Error: Plug-in "gap_wr_opacity"
(/tmp/skl/Gimp.app/Contents/Resources/lib/gimp/2.0/plug-ins/gap_wr_opacity)
attempted to register the menu item "
/Video/Layer/" for the procedure "plug-in-wr-set-opacity".
It has however not installed that procedure. This is not allowed.
Here are the specs for my system, but I'd be surprised if this doesn't work on other platforms (Intel, Leopard)
Mac OS X Tiger 10.4.11
1.25 GHz PPC G4
Xcode 2.5
X11 1.1.3