buildimage: Allow use of rsvg-convert as alternative to rsvg.
This commit is contained in:
parent
1042684ecd
commit
52171a8b15
|
@ -5771,7 +5771,7 @@ fi
|
||||||
done
|
done
|
||||||
test -n "$FONTFORGE" || FONTFORGE="false"
|
test -n "$FONTFORGE" || FONTFORGE="false"
|
||||||
|
|
||||||
for ac_prog in rsvg
|
for ac_prog in rsvg-convert rsvg
|
||||||
do
|
do
|
||||||
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
||||||
set dummy $ac_prog; ac_word=$2
|
set dummy $ac_prog; ac_word=$2
|
||||||
|
|
|
@ -284,7 +284,7 @@ then
|
||||||
else
|
else
|
||||||
test "$srcdir" = . || AC_MSG_ERROR([Maintainer mode cannot work out of tree.])
|
test "$srcdir" = . || AC_MSG_ERROR([Maintainer mode cannot work out of tree.])
|
||||||
AC_CHECK_PROGS(FONTFORGE, fontforge, false)
|
AC_CHECK_PROGS(FONTFORGE, fontforge, false)
|
||||||
AC_CHECK_PROGS(RSVG, rsvg, false)
|
AC_CHECK_PROGS(RSVG, rsvg-convert rsvg, false)
|
||||||
AC_CHECK_PROGS(CONVERT, convert, false)
|
AC_CHECK_PROGS(CONVERT, convert, false)
|
||||||
AC_CHECK_PROGS(ICOTOOL, icotool, false)
|
AC_CHECK_PROGS(ICOTOOL, icotool, false)
|
||||||
test "$FONTFORGE" != "false" || AC_MSG_ERROR([You need fontforge to rebuild fonts in maintainer mode.])
|
test "$FONTFORGE" != "false" || AC_MSG_ERROR([You need fontforge to rebuild fonts in maintainer mode.])
|
||||||
|
|
|
@ -141,7 +141,12 @@ sub svg_element_start
|
||||||
}
|
}
|
||||||
|
|
||||||
# Render the SVG image
|
# Render the SVG image
|
||||||
shell $rsvg, $svgFileName, $renderedSVGFileName;
|
my @rsvgCmd;
|
||||||
|
push(@rsvgCmd, $rsvg);
|
||||||
|
push(@rsvgCmd, $svgFileName);
|
||||||
|
push(@rsvgCmd, "-o") if ($rsvg eq "rsvg-convert");
|
||||||
|
push(@rsvgCmd, $renderedSVGFileName);
|
||||||
|
shell @rsvgCmd;
|
||||||
|
|
||||||
# Render the images in the SVG
|
# Render the images in the SVG
|
||||||
my $parser = new XML::Parser(
|
my $parser = new XML::Parser(
|
||||||
|
|
Loading…
Reference in New Issue