Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jan 2024 14:11:56 GMT
From:      Nuno Teixeira <eduardo@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 1dc0204a6f14 - main - graphics/p5-Image-Imlib2: Fix build with graphics/imlib2 1.12.1
Message-ID:  <202401191411.40JEBu5w087201@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1dc0204a6f14541b977f9c8a30458c466c6db7ac

commit 1dc0204a6f14541b977f9c8a30458c466c6db7ac
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2024-01-19 14:10:35 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2024-01-19 14:10:35 +0000

    graphics/p5-Image-Imlib2: Fix build with graphics/imlib2 1.12.1
    
    Add minimal support to `pkg-config imlib2`; imlib2-config has been
    dropped since imlib2-1.7.5.
    
    PR:             276439
    Approved by:    portmgr (buildfix blanket)
---
 graphics/p5-Image-Imlib2/Makefile             |  2 +-
 graphics/p5-Image-Imlib2/files/patch-Build.PL | 34 +++++++++++++++++++++++++++
 2 files changed, 35 insertions(+), 1 deletion(-)

diff --git a/graphics/p5-Image-Imlib2/Makefile b/graphics/p5-Image-Imlib2/Makefile
index 71c58a340ed8..e07fd1ef8e4c 100644
--- a/graphics/p5-Image-Imlib2/Makefile
+++ b/graphics/p5-Image-Imlib2/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	Image-Imlib2
 PORTVERSION=	2.03
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	graphics perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-
diff --git a/graphics/p5-Image-Imlib2/files/patch-Build.PL b/graphics/p5-Image-Imlib2/files/patch-Build.PL
new file mode 100644
index 000000000000..da69af69896f
--- /dev/null
+++ b/graphics/p5-Image-Imlib2/files/patch-Build.PL
@@ -0,0 +1,34 @@
+Add minimal support to `pkg-config imlib2`; imlib2-config has been
+dropped since imlib2-1.7.5.
+
+--- Build.PL.orig	2009-11-24 21:41:36 UTC
++++ Build.PL
+@@ -1,26 +1,8 @@ use strict;
+ use Module::Build;
+ use strict;
+ 
+-# We need to find imlib2-config
+-my $CONFIG = "imlib2-config";
+-
+-my $version = `$CONFIG --version`;
+-if (!$version) {
+-  warn 'You must install the imlib2 library before you can install
+-Image::Imlib2. You can obtain imlib2 from
+-http://sourceforge.net/projects/enlightenment/
+-
+-Alternatively, if you have downloaded and installed imlib2 and this
+-still will not work, modify the $CONFIG variable inside Build.PL to
+-point to the imlib2-config program that provides.
+-';
+-  exit 0;
+-} else {
+-  print "Found imlib2 $version";
+-}
+-
+-my $libs = `$CONFIG --libs`;
+-my $cflags = "-DX_DISPLAY_MISSING " . `$CONFIG --cflags`;
++my $libs = `pkg-config --libs imlib2`;
++my $cflags = "-DX_DISPLAY_MISSING " . `pkg-config --cflags imlib2`;
+ 
+ my $build = Module::Build->new(
+   c_source     => './lib/Image',



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401191411.40JEBu5w087201>