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
16 @@ -94,19 +94,10 @@ LIBS="$LIBS $Xext_lib"
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`
30 -AC_SUBST(IMLIB_CXXFLAGS)
32 -CXXFLAGS="$CXXFLAGS $IMLIB_CXXFLAGS"
34 +PKG_CHECK_MODULES([IMLIB], [imlib2 > 1.0])
36 +CXXFLAGS="$CXXFLAGS $IMLIB_CFLAGS"
37 LIBS="$LIBS $IMLIB_LIBS"