summaryrefslogtreecommitdiff
path: root/graphics/p5-Cairo
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/p5-Cairo')
-rw-r--r--graphics/p5-Cairo/Makefile2
-rw-r--r--graphics/p5-Cairo/files/patch-Makefile.PL14
2 files changed, 15 insertions, 1 deletions
diff --git a/graphics/p5-Cairo/Makefile b/graphics/p5-Cairo/Makefile
index e7e20d61515f..2d6f99f601dd 100644
--- a/graphics/p5-Cairo/Makefile
+++ b/graphics/p5-Cairo/Makefile
@@ -1,6 +1,6 @@
PORTNAME= Cairo
PORTVERSION= 1.109
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics perl5
MASTER_SITES= CPAN \
SF/gtk2-perl/Cairo/${PORTVERSION}
diff --git a/graphics/p5-Cairo/files/patch-Makefile.PL b/graphics/p5-Cairo/files/patch-Makefile.PL
new file mode 100644
index 000000000000..b90da87f1d95
--- /dev/null
+++ b/graphics/p5-Cairo/files/patch-Makefile.PL
@@ -0,0 +1,14 @@
+Propagate Perl's ccflags to make sure it uses Perl's headers the same way as
+Perl itself.
+
+--- Makefile.PL.orig 2021-01-19 17:26:47 UTC
++++ Makefile.PL
+@@ -612,7 +612,7 @@ my $dep = ExtUtils::Depends->new ('Cairo');
+ push @typemaps, 'cairo-perl.typemap';
+
+ my $dep = ExtUtils::Depends->new ('Cairo');
+-$dep->set_inc ('-I. -I'.$autogen_dir.' '.$cairo_cfg{cflags});
++$dep->set_inc ('-I. -I'.$autogen_dir.' '.$cairo_cfg{cflags}.' '.$Config::Config{ccflags});
+ $dep->set_libs ($cairo_cfg{libs});
+ $dep->add_xs (@xs_files);
+ $dep->add_c (qw/cairo-perl-enums.c cairo-perl-flags.c/);