Edit

IABSD.fr/ports/graphics/p5-Image-Imlib2/patches

Branch :

  • Show log

    Commit

  • Author : op
    Date : 2023-02-28 10:14:56
    Hash : 29df1f50
    Message : graphics/p5-Image-Imlib2: fix build after imlib2 update imlib2-config was removed, use pkg-config. While here, regen WANTLIB and PLIST. ok tb@

  • patch-Build_PL
  • work around removed imlib2-config
    
    Index: Build.PL
    --- Build.PL.orig
    +++ Build.PL
    @@ -1,26 +1,8 @@
     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',