Josh DuBois : buildimage: Allow use of rsvg-convert as alternative to rsvg.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jan 26 15:59:19 CST 2015


Module: wine
Branch: master
Commit: 52171a8b1553f9e484c3519a721ecdc8d73a31f4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=52171a8b1553f9e484c3519a721ecdc8d73a31f4

Author: Josh DuBois <duboisj at codeweavers.com>
Date:   Fri Jan 23 10:32:36 2015 -0600

buildimage: Allow use of rsvg-convert as alternative to rsvg.

---

 configure        | 2 +-
 configure.ac     | 2 +-
 tools/buildimage | 7 ++++++-
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/configure b/configure
index 4774513..7413f28 100755
--- a/configure
+++ b/configure
@@ -5771,7 +5771,7 @@ fi
 done
 test -n "$FONTFORGE" || FONTFORGE="false"
 
-  for ac_prog in rsvg
+  for ac_prog in rsvg-convert rsvg
 do
   # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
diff --git a/configure.ac b/configure.ac
index b40fde4..95c230b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -284,7 +284,7 @@ then
 else
   test "$srcdir" = . || AC_MSG_ERROR([Maintainer mode cannot work out of tree.])
   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(ICOTOOL, icotool, false)
   test "$FONTFORGE" != "false" || AC_MSG_ERROR([You need fontforge to rebuild fonts in maintainer mode.])
diff --git a/tools/buildimage b/tools/buildimage
index 2216ad8..0a7e466 100755
--- a/tools/buildimage
+++ b/tools/buildimage
@@ -141,7 +141,12 @@ sub svg_element_start
 }
 
 # 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
 my $parser = new XML::Parser(




More information about the wine-cvs mailing list