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-ab62
1 files changed, 31 insertions, 31 deletions
diff --git a/math/p5-Math-Pari/patches/patch-ab b/math/p5-Math-Pari/patches/patch-ab
index 7faf9cac788..75d90e0dd21 100644
--- a/math/p5-Math-Pari/patches/patch-ab
+++ b/math/p5-Math-Pari/patches/patch-ab
@@ -1,38 +1,38 @@
-$NetBSD: patch-ab,v 1.4 2006/02/14 22:52:15 heinz Exp $
+$NetBSD: patch-ab,v 1.5 2008/02/09 22:39:50 adrianp Exp $
---- utils/Math/PariBuild.pm.orig 2006-01-31 21:51:44.000000000 +0100
+--- utils/Math/PariBuild.pm.orig 2006-10-25 21:28:06.000000000 +0100
+++ utils/Math/PariBuild.pm
-@@ -699,7 +699,7 @@ sub find_machine_architecture () {
- $machine = 'irix';
- } elsif ($os =~ /^hp/) {
- $machine = `uname -m` || 'hppa';
+@@ -768,7 +768,7 @@ sub find_machine_architecture () {
+ } elsif ($machine ne 'ia64') {
+ $machine = 'hppa';
+ }
- } elsif ($os eq 'os2' or $os eq 'netbsd'
+ } elsif ($os eq 'os2' or $os eq 'dragonfly'
or $os eq 'freebsd' or $os =~ /^cygwin/) {
chomp($machine = `uname -m`);
$machine ||= 'ix86';
-@@ -742,6 +742,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
- } elsif ($os eq 'gnu') {
- chomp($machine = `uname -m`);
- $machine = 'ix86' if $machine =~ /^i386-/;
+@@ -820,6 +820,24 @@ sub find_machine_architecture () {
+ $machine = 'ix86';
+ } 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
+ } elsif ($redo++ == 0) {
+ $type = `uname -m`;
+ redo find_machine;