ports/textproc/p5-XML-LibXML/files/patch-Makefile.PL

40 lines
1.1 KiB
Perl

Avoid using more Alien::* in ports tree.
--- Makefile.PL.orig 2022-09-30 03:26:14 UTC
+++ Makefile.PL
@@ -17,15 +17,12 @@ use warnings;
require 5.008001;
-use Alien::Base::Wrapper qw( Alien::Libxml2 );
use ExtUtils::MakeMaker;
use Config;
my $SKIP_SAX_INSTALL = $ENV{SKIP_SAX_INSTALL};
my %ConfigReqs = (
- "Alien::Libxml2" => '0.14',
- "Alien::Base::Wrapper" => 0,
"Config" => 0,
"ExtUtils::MakeMaker" => 0,
);
@@ -68,15 +65,13 @@ my %prereqs = (
"warnings" => 0,
);
-my %xsbuild_concat = (
+my %xsbuild = (
DEFINE => '-DHAVE_UTF8',
OBJECT => '$(O_FILES)',
+ CCFLAGS => " $Config{ccflags}",
+ INC => "-I$ENV{LOCALBASE}/include/libxml2 -I/usr/include",
+ LIBS => "-L$ENV{LOCALBASE}/lib -lxml2 -L/usr/lib -llzma -lm -lz",
);
-my %xsbuild = Alien::Base::Wrapper->mm_args; # Might contain a definition of DEFINE, must thus concatenate.
-while (my ($k, $v) = each %xsbuild_concat) {
- my $base_val = $xsbuild{$k};
- $xsbuild{$k} = (defined($base_val) ? ($base_val . ' ' . $v) : $v);
-}
my %WriteMakefileArgs = (
"NAME" => "XML::LibXML",