summaryrefslogtreecommitdiff
path: root/math/scilab/files/patch-bin_scilab
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2021-02-19 10:18:18 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2021-02-19 10:18:18 +0000
commitc99ec4e283c4028c42c711ea85a17a98db338fff (patch)
treef6e56af93f5fe9d5433b43a8def14fd7688c854b /math/scilab/files/patch-bin_scilab
parentscience/py-moltemplate: Update 2.19.5 -> 2.19.6 (diff)
math/scilab: partial fix for powerpc64*
It still doesn't build, but makes it through configure.
Notes
Notes: svn path=/head/; revision=566044
Diffstat (limited to 'math/scilab/files/patch-bin_scilab')
-rw-r--r--math/scilab/files/patch-bin_scilab33
1 files changed, 33 insertions, 0 deletions
diff --git a/math/scilab/files/patch-bin_scilab b/math/scilab/files/patch-bin_scilab
new file mode 100644
index 000000000000..08ffb8578f9d
--- /dev/null
+++ b/math/scilab/files/patch-bin_scilab
@@ -0,0 +1,33 @@
+--- bin/scilab.orig 2020-02-25 10:59:42.000000000 +0100
++++ bin/scilab 2021-01-25 02:36:29.251977000 +0100
+@@ -184,7 +187,7 @@
+ OS=$(uname -s) # Retrieve the Operating System
+ fi
+ if test "${MODEL}" = ""; then
+- MODEL=$(uname -m) # Retrieve the model
++ MODEL=$(uname -p) # Retrieve the model
+ fi
+
+ if test $SCIVERBOSE -ne 0; then
+@@ -622,7 +625,20 @@
+ set_macosx_java_vm
+ ;;
+ *FreeBSD*)
+- proc=$MODEL
++ case $MODEL in
++ "powerpc")
++ proc="ppc"
++ ;;
++ "powerpc64")
++ proc="ppc64"
++ ;;
++ "powerpc64le")
++ proc="ppc64le"
++ ;;
++ *)
++ proc=$MODEL
++ ;;
++ esac
+ ;;
+ *)
+ echo "Could not find the Java configuration for the OS <${OS}>. Please contact us or submit a bug report with your detailed configuration http://bugzilla.scilab.org/"