freebsd-ports/math/metis-edf/files/patch-CONFIG::configure
Oliver Lehmann 151b250bdc unbreaking on Alpha (and maybe on other 64bit platforms (untested))
bump PORTREVISION

Submitted by:	Thierry Thomas <thierry@pompo.net>
PR:		ports/55544
2003-08-13 14:34:12 +00:00

53 lines
1.3 KiB
Text

--- CONFIG/configure.orig Mon Dec 16 18:11:44 2002
+++ CONFIG/configure Tue Aug 12 22:47:59 2003
@@ -4,6 +4,7 @@
# SHELL defined by make (sh)
OS_TYPE=`uname -s`
+ARCHI=`uname -p`
if [ $OS_TYPE = "SunOS" ]; then
OS_LEVEL=`uname -r`
OS_NIV=`echo $OS_LEVEL | awk -F'.' '{print $2}'`
@@ -18,7 +19,7 @@
if [ -z "$rtn" ] || [ "$rtn" = "y" -o "$rtn" = "Y" ]; then
OS_TYPE=SunOS64
fi
-elif [ $OS_TYPE != "OSF1" -a $OS_TYPE != "IRIX64" -a $OS_TYPE != "Linux" ]; then
+elif [ $OS_TYPE != "OSF1" -a $OS_TYPE != "IRIX64" -a $OS_TYPE != "Linux" -a $OS_TYPE != "FreeBSD" ]; then
echo " Operating system $OS_TYPE unknown on this distribution"
echo " Installation failed !"
exit 8
@@ -30,14 +31,25 @@
# FOPTIONS : Fortran compiler options,
# LDOPTIONS : link options, AR : archiver
-CC="cc"
-F90="f90"
-LD="$F90"
-COPTIONS=""
-FOPTIONS=""
-LDOPTIONS="-L. -L.."
-OPTFLAGS="-O"
-AR="ar rv"
+if [ $OS_TYPE = "FreeBSD" ]; then
+ CC="$CC"
+ F90="$F77"
+ LD="$CC -v"
+ COPTIONS="$CFLAGS"
+ OPTFLAGS=""
+ FOPTIONS="$FFLAGS"
+ LDOPTIONS="$LDFLAGS -L. -L.."
+ AR="$AR rv"
+else
+ CC="cc"
+ F90="f90"
+ LD="$F90"
+ COPTIONS=""
+ FOPTIONS=""
+ LDOPTIONS="-L. -L.."
+ OPTFLAGS="-O"
+ AR="ar rv"
+fi
if [ $OS_TYPE = "Linux" ]; then
CC="gcc"
F90="g77"