Index: head/math/scilab/files/patch-bin_scilab =================================================================== --- head/math/scilab/files/patch-bin_scilab (nonexistent) +++ head/math/scilab/files/patch-bin_scilab (revision 566044) @@ -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/" Property changes on: head/math/scilab/files/patch-bin_scilab ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/math/scilab/files/patch-configure =================================================================== --- head/math/scilab/files/patch-configure (revision 566043) +++ head/math/scilab/files/patch-configure (revision 566044) @@ -1,29 +1,51 @@ --- configure.orig 2020-02-25 09:59:42 UTC +++ configure @@ -9995,7 +9995,7 @@ if test -z "$CXX"; then fi case "$CXX" in - g++-* | g++ | ccache*g++ | ccache*g++-* ) + g++-* | g++ | ccache*g++ | ccache*g++-* | c++ | clang++* ) ## With GNU C++ Compiler # enable the code coverage @@ -10022,7 +10022,7 @@ esac #### 64 bits detection IS_64_BITS_CPU=false case "$host" in - x86_64-*-linux-gnu | x86_64-linux-gnu | ia64-*-linux-gnu | alpha-*-linux-gnu | alpha-*-netbsd* | x86_64-*-netbsd* | sparc64-*-netbsd*) -+ x86_64-*-linux-gnu | x86_64-linux-gnu | ia64-*-linux-gnu | alpha-*-linux-gnu | alpha-*-netbsd* | x86_64-*-netbsd* | sparc64-*-netbsd* | amd64-*-freebsd* ) ++ x86_64-*-linux-gnu | x86_64-linux-gnu | ia64-*-linux-gnu | alpha-*-linux-gnu | alpha-*-netbsd* | x86_64-*-netbsd* | sparc64-*-netbsd* | amd64-*-freebsd* | powerpc64*-*-freebsd*) IS_64_BITS_CPU=true ;; esac @@ -10030,7 +10030,7 @@ esac ##########" case "$CC" in - gcc-* | gcc | ccache*gcc | ccache*gcc-* ) + gcc-* | gcc | ccache*gcc | ccache*gcc-* | cc | clang* ) ## With GNU Compiler # enable the code coverage +@@ -13126,7 +13126,7 @@ + ;; + *) + +- machine=`uname -m` ++ machine=`uname -p` + case "$machine" in + i?86) + machine=i386 +@@ -13142,10 +13142,10 @@ + powerpc) + machine=ppc + ;; +- ppc64le) ++ powerpc64le|ppc64le) + machine=ppc64le + ;; +- ppc64) ++ powerpc64|ppc64) + machine=ppc64 + ;; + armv*)