ports/math/p5-PDL-Graphics-PLplot/files/patch-Alien-PLplot
Po-Chuan Hsieh e05d39136c
math/p5-PDL-Graphics-PLplot: Add p5-PDL-Graphics-PLplot 0.84
PDL::Graphics::PLplot is the PDL interface to the PLplot graphics library. It
provides a familiar 'perlish' Object Oriented interface as well as access to the
low-level PLplot commands from the C-API.
2025-01-29 01:03:19 +08:00

31 lines
820 B
Text

--- Makefile.PL.orig 2024-04-21 20:36:49 UTC
+++ Makefile.PL
@@ -7,7 +7,6 @@ use Devel::CheckLib;
use PDL::Core::Dev;
use Devel::CheckLib;
-use Alien::PLplot;
my $PL_MAJOR = 5; # minimum required
my $PL_MINOR = 13;
@@ -31,9 +30,9 @@ sub probe {
}
sub probe {
- $header = (Alien::PLplot->inline_auto_include)->[0];
- $plplot_include_path = Alien::PLplot->cflags;
- $libs = Alien::PLplot->libs;
+ $header = 'plplot.h';
+ $plplot_include_path = '-I%%LOCALBASE%%/include/plplot';
+ $libs = '-L%%LOCALBASE%%/lib -lplplot';
}
probe;
@@ -77,7 +76,6 @@ $hash{CONFIGURE_REQUIRES} = {
$hash{CONFIGURE_REQUIRES} = {
'PDL' => '2.083', # output OtherPars
'Devel::CheckLib' => 0,
- 'Alien::PLplot' => 0,
};
# $hash{'OPTIMIZE'} = '-g'; # If you want to debug, uncomment this.
$hash{TEST_REQUIRES} = {