blob: 1a9a76f15a4bd41f65cf84ac3c03e9f3bed41067 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
--- configure.ac 2006-01-10 23:22:31.000000000 +0100
+++ configure.ac.patched 2016-02-11 12:30:25.093357000 +0100
@@ -55,7 +55,7 @@
fi
fi
-# Check for rsvg or ksvgtopng for creating large scale bitmaps from svg
+# Check for imagemagick for creating large scale bitmaps from svg
AC_ARG_ENABLE(png-creation,
AC_HELP_STRING([--enable-png-creation],
[enable creating png images from svg [default=disabled]]),
@@ -65,17 +65,13 @@
SVGCONVERT=""
AC_MSG_CHECKING([SVG to PNG conversion method])
if test "x$enable_large_bitmaps" = "xyes"; then
- PKG_CHECK_EXISTS([librsvg-2.0 >= 2.12.3],
+ PKG_CHECK_EXISTS([imagemagick],
[enable_large_bitmaps=yes], [enable_large_bitmaps=no])
- if test "x$enable_large_bitmaps" = "xyes"; then
- svgconvert_prog="rsvg"
- else
- svgconvert_prog="ksvgtopng"
- fi
+ svgconvert_prog="convert"
AC_MSG_RESULT([$svgconvert_prog])
AC_PATH_PROG(SVGCONVERT, $svgconvert_prog)
if test -z "$SVGCONVERT"; then
- AC_MSG_ERROR([You need librsvg >= 2.12.3 or ksvgtopng installed to create large scale bitmaps])
+ AC_MSG_ERROR([You need imagemagick installed to create large scale bitmaps])
else
enable_large_bitmaps=yes
fi
--- svg2png.sh.in 2006-01-10 23:22:31.000000000 +0100
+++ svg2png.sh.in.patched 2016-02-11 12:36:00.153362000 +0100
@@ -8,11 +8,8 @@
fi
ICONNAME=`echo ${3} | sed -e "s/.svg//"`
-if test `basename $SVGCONVERT` = "rsvg"; then
- OPTIONS="-w ${1} -h ${1}"
-else
- OPTIONS="${1} ${1}"
-fi
+OPTIONS="-background none"
+OUTPUT="-resize ${1}x${1}"
-${SVGCONVERT} ${OPTIONS} ${3} ${2}/${ICONNAME}.png
+${SVGCONVERT} ${OPTIONS} ${3} {OUTPUT} ${2}/${ICONNAME}.png
|