summaryrefslogtreecommitdiff
path: root/games-board/aisleriot/files/aisleriot-3.16.2-detect-svg.patch
diff options
context:
space:
mode:
Diffstat (limited to 'games-board/aisleriot/files/aisleriot-3.16.2-detect-svg.patch')
-rw-r--r--games-board/aisleriot/files/aisleriot-3.16.2-detect-svg.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/games-board/aisleriot/files/aisleriot-3.16.2-detect-svg.patch b/games-board/aisleriot/files/aisleriot-3.16.2-detect-svg.patch
new file mode 100644
index 00000000..2dd9001c
--- /dev/null
+++ b/games-board/aisleriot/files/aisleriot-3.16.2-detect-svg.patch
@@ -0,0 +1,28 @@
+Do not require a particular SVG library unless actually found.
+
+--- a/configure.ac 2015-05-11 00:13:51.180002639 +0200
++++ b/configure.ac 2015-05-11 00:13:40.365069049 +0200
+@@ -319,7 +319,9 @@
+
+ PKG_CHECK_EXISTS([librsvg-2.0 >= $RSVG_REQUIRED],[have_rsvg=yes],[have_rsvg=no])
+
+- PKGS="$PKGS librsvg-2.0 >= $RSVG_REQUIRED cairo >= $CAIRO_REQUIRED"
++ if test "$have_rsvg" = "yes" ; then
++ PKGS="$PKGS librsvg-2.0 >= $RSVG_REQUIRED cairo >= $CAIRO_REQUIRED"
++ fi
+
+ AC_DEFINE([HAVE_RSVG],[1],[Refine if librsvg is available])
+ fi
+@@ -334,8 +336,10 @@
+
+ PKG_CHECK_EXISTS([QtSvg >= $QT_SVG_REQUIRED],[have_qtsvg=yes],[have_qtsvg=no])
+
+- PKGS="$PKGS QtSvg >= $QT_SVG_REQUIRED"
+- EXTRA_CXX_LIBS="$EXTRA_CXX_LIBS -lstdc++"
++ if test "$have_qtsvg" = "yes" ; then
++ PKGS="$PKGS QtSvg >= $QT_SVG_REQUIRED"
++ EXTRA_CXX_LIBS="$EXTRA_CXX_LIBS -lstdc++"
++ fi
+
+ AC_DEFINE([HAVE_QTSVG],[1],[Refine if QtSvg is available])
+ fi