ports/math/PDL/files/patch-amd64
Po-Chuan Hsieh 2827469fcb
math/PDL: Update to 2.084
- Update WWW
- Convert REINPLACE_CMD to patch files
- Update pkg-descr
- Take maintainership

Changes:	https://metacpan.org/dist/PDL/changes
2023-08-01 00:39:50 +08:00

33 lines
1.4 KiB
Text

--- Libtmp/Minuit/Makefile.PL.orig 2022-02-14 10:02:23 UTC
+++ Libtmp/Minuit/Makefile.PL
@@ -120,7 +120,7 @@ undef &MY::postamble; # suppress warning
my $mycompiler = $f77->compiler();
my $mycflags = $f77->cflags();
my $orig = pdlpp_postamble_int(@pack);
- my $hack_64bit = ($Config{archname}=~m/x86_64|i686/ ?" -fPIC " : "");
+ my $hack_64bit = ($Config{archname}=~m/amd64|i686|x86_64/ ?" -fPIC " : "");
$orig =~ s/:\s*minuit\.pd/: minuit.pd/;
$orig .= "FFLAGS = $hack_64bit $mycflags \$(OPTIMIZE)\n";
$orig .= join "\n",map {
--- Libtmp/Slatec/Makefile.PL.orig 2022-02-14 10:02:23 UTC
+++ Libtmp/Slatec/Makefile.PL
@@ -81,7 +81,7 @@ undef &MY::postamble; # suppress warning
my $mycompiler = $f77->compiler();
my $mycflags = $f77->cflags();
my $orig = pdlpp_postamble_int(@pack);
- my $hack_64bit = $Config{archname}=~m/x86_64|i686/ ?" -fPIC " : "";
+ my $hack_64bit = $Config{archname}=~m/amd64|i686|x86_64/ ?" -fPIC " : "";
$orig =~ s/:\s*slatec\.pd/: slatec.pd/;
$orig .= "FFLAGS = $hack_64bit $mycflags \$(OPTIMIZE)\n";
join "\n", $orig, map "$_\$(OBJ_EXT): $_.f
--- Makefile.PL.orig 2023-03-31 16:48:47 UTC
+++ Makefile.PL
@@ -160,7 +160,7 @@ my @cleanup = ("pdl$Config{exe_ext}", qw(
# use similar mods to affect CCFLAGS on other systems as needed...
my $ccflags = $Config{ccflags};
-if($Config{archname}=~m/x86_64/) {
+if($Config{archname}=~m/amd64|i686|x86_64/) {
$ccflags .= " -fPIC";
}