blob: ca1470a5ce252611bac7a82bc555e317a8edaff6 (
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
28
|
https://rt.cpan.org/Public/Bug/Display.html?id=149742
From 319db4d47493f7ef3909efc1b3904c134c90af5e Mon Sep 17 00:00:00 2001
From: Sergei Zhmylev <zhmylove@cpan.org>
Date: Mon, 11 Sep 2023 21:29:17 +0300
Subject: [PATCH] Make Build.PL compatible with Imlib2 v1.7.5+
--- a/Build.PL
+++ b/Build.PL
@@ -1,10 +1,14 @@
use Module::Build;
use strict;
-# We need to find imlib2-config
-my $CONFIG = "imlib2-config";
+my $CONFIG = "pkg-config imlib2";
my $version = `$CONFIG --version`;
+if (!$version) {
+ # Try deprecated imlib2-config
+ $CONFIG = "imlib2-config";
+ $version = `$CONFIG --version`;
+}
if (!$version) {
warn 'You must install the imlib2 library before you can install
Image::Imlib2. You can obtain imlib2 from
--
2.40.0
|