summaryrefslogtreecommitdiff
path: root/math/p5-Math-Pari/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'math/p5-Math-Pari/patches/patch-ab')
-rw-r--r--math/p5-Math-Pari/patches/patch-ab29
1 files changed, 29 insertions, 0 deletions
diff --git a/math/p5-Math-Pari/patches/patch-ab b/math/p5-Math-Pari/patches/patch-ab
new file mode 100644
index 00000000000..30268304671
--- /dev/null
+++ b/math/p5-Math-Pari/patches/patch-ab
@@ -0,0 +1,29 @@
+$NetBSD: patch-ab,v 1.1 2004/02/22 22:04:54 heinz Exp $
+
+--- utils/Math/PariBuild.pm.orig Sun Feb 1 10:30:06 2004
++++ utils/Math/PariBuild.pm
+@@ -714,6 +714,24 @@ sub find_machine_architecture () {
+ } elsif ((split ' ', $Config{myuname})[3] eq 'sun') {
+ $machine = 'm86k';
+ }
++ } elsif ($os eq 'netbsd') {
++ chomp($machine = `uname -p`);
++ if ($machine =~ 'arm.*') {
++ machine='arm';
++ } elsif ($machine = 'i386') {
++ machine='ix86';
++ } elsif ($machine =~ 'mips.*') {
++ machine='mips';
++ } elsif ($machine = 'powerpc') {
++ machine='ppc';
++ } elsif ($machine =~ 'sh3.*') {
++ machine='sh3';
++ } elsif ($machine =~ 'sh5.*') {
++ machine='sh5';
++ } elsif ($machine = 'sparc64') {
++ machine='sparcv9';
++ }
++ # these can be used verbatim: alpha amd64 m68k sparc vax
+ }
+
+ if ( $machine ne 'alpha'