freebsd-ports/science/2dhf/files/patch-Makefile
Maho Nakata 4d3ec3c9cd * Migrate to gfortran
* Update to 2005.05 version
* Change master site
2007-01-09 08:54:01 +00:00

50 lines
1.1 KiB
Text

--- Makefile.orig Tue May 17 02:15:36 2005
+++ Makefile Tue Jan 9 17:36:22 2007
@@ -45,21 +45,22 @@
# of grid and orbital parameters according to expected range of input
# data
-#MEMALLOC = main-static.inc
+# MEMALLOC = main-static.inc
# For a Sun workstation with f77 or a PC with g77 compiler
-MEMALLOC = main-dynamic-f77.inc
+# MEMALLOC = main-dynamic-f77.inc
# For a DEC workstation and f77 compiler
# MEMALLOC = main-dynamic-f77-dec.inc
# For f90 compiler
-# MEMALLOC = main-dynamic-f90.inc
+MEMALLOC = main-dynamic-f90.inc
# set system type/compiler
# available keywords are: cray, dec, ibm, lahey, linux, sgi, solaris
+# and freebsd
-SYSTEM = linux
+SYSTEM = freebsd
#SYSTEM = intel
# if BLAS library is available set the BLAS variable to yes
@@ -189,6 +190,20 @@
CC = cc
CFLAGS =
endif
+# FreeBSD
+ifeq ($(SYSTEM),freebsd)
+ FC = %%FC%%
+ FFLAGS = %%FFLAGS%%
+# -fstrength-reduce -funroll-loops
+# FFLAGS = -O1 -malign-double
+# FFLAGS = -g -C
+ FFLAGS_ADD = %%FFLAGS_ADD%%
+ FLIB = -L%%LOCALBASE%%/lib %%BLAS%%
+ BLAS = yes
+
+ CC = %%CC%%
+ CFLAGS = %%CFLAGS%%
+ endif
# nothing to be set below this line