On Sun, Nov 30, 2008 at 11:30:06AM +0100, LÉVAI Dániel wrote: > > > Then the port now is broken, because no matter what, GraphicsMagick > > > picks up ghostscript. So keeping "CONFIGURE_ARGS += > > > --without-gslib" only matters if we also remove the > > > BUILD_DEPENDS+= > > > :ghostscript-*:print/ghostscript/gnu[,no_x11] RUN_DEPENDS+= > > > :ghostscript-*:print/ghostscript/gnu[,no_x11] lines. > > > > No, --without-gslib just ensures that GraphicsMagick isn't linked > > against libgs, even if libgs is available. It does *not* stop > > GraphicsMagick from using the ghostscript binary at runtime (for > > whatever purpose; I didn't yet have the time to look at > > GraphicsMagick). > > > Aha! I can see clearly now :) In the spirit of that, it's a new patch: > > http://leva.ecentrum.hu/patches/GraphicsMagick_1.2.6+no_gs.diff
After a closer look at configure.ac and at the source trees after make configure (with ghostscript installed and uninstalled), I think you really don't need the no_gs flavor. The only relevant part that of GraphicsMagick that will be different is delegates.mgk, and it only differs in what ghostscript device will be used for the gs-color delegate (pnmraw vs. ppmraw). So you can omit the no_gs flavor and drop the RUN_DEPENDS on ghostscript (but not the BUILD_DEPENDS). Then you'll just get an error message whenever ghostscript isn't installed and GraphicsMagick needs a gs-* delegate: $ gm display tiger.eps sh: gs: not found gm display: "gs" -q -dBATCH -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=pnmraw -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -g661x682 -r86.4681x86.4106 "-sOutputFile=/tmp/gmLXBB5a" -- "/tmp/gmD" -c quit. sh: gs: not found gm display: "gs" -q -dBATCH -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=pnmraw -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -g661x682 -r86.4681x86.4106 "-sOutputFile=/tmp/gmLXBB5a" -- "/tmp/gmD" -c quit. gm display: DPS library is not available (tiger.eps). Ciao, Kili -- Now I remember why I don't remember the last time I finished a bottle of this shit. -- Mike Erdely, about Gulden Draak