summaryrefslogtreecommitdiff
path: root/x11-misc/xscreensaver/files/xscreensaver-6.05-get-dirs-from-gtk3.0-in-configure.patch
blob: 4147540e118930d872b380a06968ff2f4d8e0758 (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
Even though xscreensaver now uses GTK+3 instead of GTK+2 since version 6.05
it still gets its directories from GTK+2 which results in an empty prefix
when GTK+2 is not installed.

Bug: https://bugs.gentoo.org/878875

Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>

--- a/configure.ac
+++ b/configure.ac
@@ -2822,7 +2822,7 @@ if test "$with_gtk" = yes; then

   GTK_DATADIR=""
   if test "$have_gtk" = yes; then
-    GTK_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
+    GTK_DATADIR=`$pkg_config --variable=prefix gtk+-3.0`
     GTK_DATADIR="$GTK_DATADIR/share"
   fi

@@ -4282,6 +4282,6 @@ AC_MSG_CHECKING([for locale directory])
 if test -n "$GTK_DATADIR" ; then
   PO_DATADIR="$GTK_DATADIR"
 elif test "$have_gtk" = yes; then
-  PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
+  PO_DATADIR=`$pkg_config --variable=prefix gtk+-3.0`
   PO_DATADIR="$PO_DATADIR/share"
 fi