diff options
author | Pablo Barciela <[email protected]> | 2019-07-05 17:50:48 +0200 |
---|---|---|
committer | monsta <[email protected]> | 2019-07-24 15:49:10 +0300 |
commit | 675ef4be0e13da77e05fe84f01deda91b6c3bd61 (patch) | |
tree | ba7cc7d2fef8ad3badc123ff9325053ebbe8a946 | |
parent | 2fcdc9e06bfce4c783cf65ba75c6942856b92dcb (diff) | |
download | mate-desktop-675ef4be0e13da77e05fe84f01deda91b6c3bd61.tar.bz2 mate-desktop-675ef4be0e13da77e05fe84f01deda91b6c3bd61.tar.xz |
make 'rsvg-convert' optional
-rw-r--r-- | .travis.yml | 4 | ||||
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | icons/Makefile.am | 2 |
3 files changed, 3 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml index b9b5467..39d5989 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,7 +44,6 @@ requires: - gtk3 - intltool - iso-codes - - librsvg - make - mate-common - startup-notification @@ -64,7 +63,6 @@ requires: - libglib2.0-doc - libgtk-3-dev - libgtk-3-doc - - librsvg2-bin - libstartup-notification0-dev - libx11-dev - libxml2-dev @@ -82,7 +80,6 @@ requires: - gtk3-devel - iso-codes-devel - itstool - - librsvg2-tools - make - mate-common - redhat-rpm-config @@ -100,7 +97,6 @@ requires: - libglib2.0-doc - libgtk-3-dev - libgtk-3-doc - - librsvg2-bin - libstartup-notification0-dev - libx11-dev - libxml2-dev diff --git a/configure.ac b/configure.ac index c9d65b1..b7380bb 100644 --- a/configure.ac +++ b/configure.ac @@ -230,9 +230,7 @@ GTK_DOC_CHECK([1.4]) dnl ICONS: convert svg to png AC_PATH_PROG(RSVG_CONVERT, rsvg-convert) -if test x$RSVG_CONVERT = x ; then - AC_MSG_ERROR([could not locate rsvg-convert]) -fi +AM_CONDITIONAL([HAVE_RSVG_CONVERT], [test "x$RSVG_CONVERT" != x]) AC_CONFIG_FILES([ Makefile diff --git a/icons/Makefile.am b/icons/Makefile.am index 74c57b5..b8bc6ad 100644 --- a/icons/Makefile.am +++ b/icons/Makefile.am @@ -29,6 +29,7 @@ update-icon-cache: echo "*** $(gtk_update_icon_cache)"; \ fi +if HAVE_RSVG_CONVERT build-png-icons: $(RSVG_CONVERT) -w 16 -h 16 scalable/apps/mate-desktop.svg -o 16x16/apps/mate-desktop.png $(RSVG_CONVERT) -w 22 -h 22 scalable/apps/mate-desktop.svg -o 22x22/apps/mate-desktop.png @@ -36,6 +37,7 @@ build-png-icons: $(RSVG_CONVERT) -w 32 -h 32 scalable/apps/mate-desktop.svg -o 32x32/apps/mate-desktop.png $(RSVG_CONVERT) -w 48 -h 48 scalable/apps/mate-desktop.svg -o 48x48/apps/mate-desktop.png $(RSVG_CONVERT) -w 128 -h 128 scalable/apps/mate-desktop.svg -o 128x128/apps/mate-desktop.png +endif clean-png-icons: rm -f $(png_icons) |