ImageMagick/ImageMagick-6.2.0-hp2xx.patch
2005-03-16 16:10:35 +00:00

22 lines
1.4 KiB
Diff

--- ImageMagick-6.2.0/config/delegates.xml.in.hp2xx 2005-03-16 09:31:42.843768000 -0500
+++ ImageMagick-6.2.0/config/delegates.xml.in 2005-03-16 09:33:16.544971000 -0500
@@ -70,8 +70,16 @@
<delegate decode="gs-mono" stealth="True" command='"@PSDelegate@" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 "-sDEVICE=@GSMonoDevice@" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-g%s" "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s"' />
<delegate decode="hpg" command='"@HPGLDecodeDelegate@" -q -m eps -f `basename "%o"` "%i"
mv -f `basename "%o"` "%o"' />
- <delegate decode="hpgl" command='"@HPGLDecodeDelegate@" -q -m eps -f `basename "%o"` "%i"
- mv -f `basename "%o"` "%o"' />
+ <delegate decode="hpgl" command='if [ -e @HPGLDecodeDelegate@ -o -e /usr/bin/@HPGLDecodeDelegate@ ]; then
+ @HPGLDecodeDelegate@ -q -m eps -f `basename "%o"` "%i"
+ mv -f `basename "%o"` "%o
+ else
+ echo "You need to install hp2xx (which is not part of Red Hat Linux) to use"
+ echo "HPGL files with ImageMagick."
+ echo "Current hp2xx RPM packages for Red Hat Linux can be found at"
+ echo "http://rhcontrib.bero.org/search.php in the Applications/Multimedia section."
+ exit 1
+ fi' />
<delegate decode="htm" command='"@HTMLDecodeDelegate@" -U -o "%o" "%i"' />
<delegate decode="html" command='"@HTMLDecodeDelegate@" -U -o "%o" "%i"' />
<delegate decode="https" command='"@WWWDecodeDelegateDefault@" -q -O "%o" "https:%i"' />