dev-python/agate: Bump to 1.13.0
[gentoo/gentoo.git] / x11-misc / idesk / files / idesk-0.7.8-use-pkg-config-imlib2.patch
blob7f062c94280f281baae4654359179023446908c6
1 https://github.com/antonialoytorrens/idesk/pull/1
2 https://github.com/neagix/idesk/pull/9
3 https://github.com/neagix/idesk/issues/7
5 From b13626bbe2669b8a267ad53df93f1060379a462e Mon Sep 17 00:00:00 2001
6 From: Sam James <sam@gentoo.org>
7 Date: Fri, 15 Jul 2022 08:22:12 +0100
8 Subject: [PATCH] build: use pkg-config to find imlib2
10 imlib2 1.7.5+ drops imlib2-config, hence pkg-config
11 must now be used to find it.
13 Bug: https://bugs.gentoo.org/828962
14 --- a/configure.in
15 +++ b/configure.in
16 @@ -94,19 +94,10 @@ LIBS="$LIBS $Xext_lib"
18 dnl Imlib2 detection
20 -AC_PATH_GENERIC(imlib2, , [
21 - AC_SUBST(IMLIB_LIBS)
22 - AC_SUBST(IMLIB_CXXFLAGS) ],
23 - AC_MSG_ERROR(Cannot find imlib2: Is imlib2-config in the path?
24 - You need Imlib2 to build Idesk. Verify that you have Imlib2-dev))
26 -dnl the above doesn't work for some reason :/
27 -IMLIB_LIBS=`imlib2-config --libs`
28 -IMLIB_CFLAGS=`imlib2-config --cflags`
29 -AC_SUBST(IMLIB_LIBS)
30 -AC_SUBST(IMLIB_CXXFLAGS)
32 -CXXFLAGS="$CXXFLAGS $IMLIB_CXXFLAGS"
33 +PKG_PROG_PKG_CONFIG
34 +PKG_CHECK_MODULES([IMLIB], [imlib2 > 1.0])
36 +CXXFLAGS="$CXXFLAGS $IMLIB_CFLAGS"
37 LIBS="$LIBS $IMLIB_LIBS"