Comment 5 for bug 390024

Revision history for this message
su_v (suv-lp) wrote :

I could not get it to work with $MAGICK_HOME. Inkscape-bin still loaded the coder files from the MacPorts installation.
new proposed fix:

in 'Contents/Resources/bin/inkscape' add
        export MAGICK_CODER_FILTER_PATH="$TOP/lib/ImageMagick-6.5.4/modules-Q16/filters"
        export MAGICK_CODER_MODULE_PATH="$TOP/lib/ImageMagick-6.5.4/modules-Q16/coders"

in 'osx-app.sh' add
cp -r "$LIBPREFIX/lib/ImageMagick-6.5.4" "$pkglib/"
cp -r "$LIBPREFIX/share/ImageMagick-6.5.4" "$pkgresources/share/"

works for me, though I didn't test with patched files yet - just tried these steps:
1) added the resource directories to the bundle (into lib and share),
2) renamed the original directories in $LIBPREFIX (i.e. the MacPorts installation),
3) changed the 'bin/inkscape' script and
4) watched inkscape-bin with 'lsof'.

Raster effect used for testing: 'Swirl'
Image: linked PNG image (inkscape bitmap copy), embedded as result of raster effect