wok-next view tango-icon-theme/stuff/patches/tango-icon-theme-0.8.90-rsvg-convert.patch @ rev 20666
Up freeglut (3.0.0)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri May 11 03:09:34 2018 +0300 (2018-05-11) |
parents | |
children |
line source
1 Based on https://build.opensuse.org/package/view_file?file=tango-icon-theme-rsvg-2_35_2.patch&package=tango-icon-theme&project=openSUSE%3A12.2&rev=faf71bf8278d5df6ec8a31726e5b8542
3 --- a/configure
4 +++ b/configure
5 @@ -6554,7 +6554,7 @@
6 enable_large_bitmaps=no
7 fi
8 if test "x$enable_large_bitmaps" = "xyes"; then
9 - svgconvert_prog="rsvg"
10 + svgconvert_prog="rsvg-convert"
11 else
12 svgconvert_prog="ksvgtopng"
13 fi
14 --- a/svg2png.sh.in
15 +++ b/svg2png.sh.in
16 @@ -9,12 +9,14 @@
18 ICONFILE=`basename ${3}`
19 ICONNAME=`echo ${ICONFILE} | sed -e "s/.svg//"`
20 -if test `basename $SVGCONVERT` = "rsvg"; then
21 +if test `basename $SVGCONVERT` = "rsvg-convert"; then
22 OPTIONS="-w ${1} -h ${1}"
23 + OUTPUT="-o"
24 else
25 OPTIONS="${1} ${1}"
26 + OUTPUT=""
27 fi
29 echo "${SVGCONVERT} ${OPTIONS} ${3} ${2}/${ICONNAME}.png"
30 -${SVGCONVERT} ${OPTIONS} ${3} ${2}/${ICONNAME}.png
31 +${SVGCONVERT} ${OPTIONS} ${3} ${OUTPUT} ${2}/${ICONNAME}.png