Files
macports-ports/science/gamess/files/patch-config.diff

123 lines
3.6 KiB
Diff

--- config.orig 2018-09-30 20:45:26.000000000 -0700
+++ config 2018-11-03 09:57:40.000000000 -0700
@@ -85,7 +85,7 @@
echo "use the word 'type' to indicate it is a command for the other window."
echo " "
echo -n "After the new window is open, please hit <return> to go on."
-set reply=$<
+set reply=''
tput clear
#
echo " GAMESS can compile on the following 32 bit or 64 bit machines:"
@@ -112,7 +112,7 @@
echo "winazure - Windows Azure Cloud Platform running Windows 64-bit"
echo " type 'uname -a' to partially clarify your computer's flavor."
echo -n "please enter your target machine name: "
-set GMS_TARGET=$<
+set GMS_TARGET=__MACPORTS_GMS_TARGET__
tput clear
# A number of targets in compall/comp/lked are omitted above.
@@ -132,7 +132,7 @@
echo "most probably the correct answer is `pwd`"
echo " "
echo -n "GAMESS directory? [`pwd`] "
-set GMS_PATH=$<
+set GMS_PATH=''
if (null$GMS_PATH == null) set GMS_PATH=`pwd`
#
if (-d $GMS_PATH) then
@@ -151,7 +151,7 @@
echo "This may be the same location as the GAMESS directory."
echo " "
echo -n "GAMESS build directory? [`pwd`] "
-set GMS_BUILD_DIR=$<
+set GMS_BUILD_DIR=''
if (null$GMS_BUILD_DIR == null) set GMS_BUILD_DIR=`pwd`
if (! -d $GMS_BUILD_DIR) then
mkdir $GMS_BUILD_DIR
@@ -175,7 +175,7 @@
echo "for example: gamess.00.x"
echo ""
echo -n "Version? [00] "
-set GMS_VERSION=$<
+set GMS_VERSION=''
if(null$GMS_VERSION == null) set GMS_VERSION=00
tput clear
@@ -846,8 +846,8 @@
echo "can be found in the 'comp' script."
echo " "
-set GMS_FORTRAN=gfortran
-set GMS_MATHLIB=vecLib
+set GMS_FORTRAN=__MACPORTS_GMS_FORTRAN__
+set GMS_MATHLIB=__MACPORTS_GMS_MATHLIB__
#
echo "Please type 'gfortran -dumpversion' or else 'gfortran -v' to"
echo "detect the version number of your gfortran."
@@ -857,7 +857,7 @@
echo "but it is really your gfortran version."
echo " "
echo -n "Please enter only the first decimal place, such as 4.6 or 4.8: "
-set GMS_GFORTRAN_VERNO=$<
+set GMS_GFORTRAN_VERNO=`$GMS_FORTRAN -dumpversion`; set GMS_GFORTRAN_VERNO=$GMS_GFORTRAN_VERNO:r
#
switch ($GMS_GFORTRAN_VERNO)
case 4.1:
@@ -942,7 +942,7 @@
echo "since Lion versions up to at least 10.7.6 fail to work."
echo "Some slow but correct FORTRAN code will be used instead,"
echo "with significant performance penalties for MP2/CC runs."
- set GMS_MATHLIB='blas.o'
+ #set GMS_MATHLIB='blas.o'
breaksw
case 10.8:
case 10.9:
@@ -951,7 +951,7 @@
echo " "
echo "This target will use the Accelerate framework math library,"
echo "which is standard in OS X."
- set GMS_MATHLIB=Accelerate
+ #set GMS_MATHLIB=Accelerate
breaksw
default:
echo " "
@@ -969,6 +969,9 @@
echo "If this is 10.5 or higher, consider switching to 'mac64',"
echo "by rerunning this 'config' step, for 'mac64' intead of 'mac32'."
echo " "
+ set FORTRAN_EXTRA_FLAGS="-m32"
+ else
+ set FORTRAN_EXTRA_FLAGS="-m64"
endif
breaksw
# thus ends a passage common to both mac32/mac64.
@@ -1302,7 +1305,7 @@
#
echo " "
echo -n "please hit <return> to compile the GAMESS source code activator "
-set reply=$<
+set reply=''
tput clear
#
if (-e tools/actvte.code) then
@@ -1361,7 +1364,7 @@
breaksw
default:
set echo
- $GMS_FORTRAN -o $GMS_BUILD_DIR/tools/actvte.x actvte.f
+ $GMS_FORTRAN $FORTRAN_EXTRA_FLAGS -o $GMS_BUILD_DIR/tools/actvte.x actvte.f
unset echo
breaksw
endsw
@@ -1660,7 +1663,7 @@
echo ""
#
echo -n "Optional: Build Michigan State University CCT3 & CCSD3A methods? (yes/no): "
-set reply=$<
+set reply='no'
if ($reply == no) then
set GMS_MSUCC=false
else