summaryrefslogtreecommitdiffstats
path: root/biology/deft/files
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-06-07 17:10:12 +0000
committerwill <will@FreeBSD.org>2000-06-07 17:10:12 +0000
commitcd9876309e41723f6d085e143916bcbb14efebc7 (patch)
tree8f3975ef4485cc8430823cf33eac817966833e46 /biology/deft/files
parent4222d27d9e922d1f7210c45b9a893b3dba7fdbf4 (diff)
downloadFreeBSD-ports-cd9876309e41723f6d085e143916bcbb14efebc7.zip
FreeBSD-ports-cd9876309e41723f6d085e143916bcbb14efebc7.tar.gz
Fix build for 4.0 and later. Make DESCR shorter.
PR: 19092 Submitted by: MAINTAINER
Diffstat (limited to 'biology/deft/files')
-rw-r--r--biology/deft/files/Makefile.deft20
-rw-r--r--biology/deft/files/patch-aa77
2 files changed, 48 insertions, 49 deletions
diff --git a/biology/deft/files/Makefile.deft b/biology/deft/files/Makefile.deft
index 2567e48..92451c4 100644
--- a/biology/deft/files/Makefile.deft
+++ b/biology/deft/files/Makefile.deft
@@ -2,10 +2,18 @@
# Makefile for DeFT
#
TARGET = DeFT.exec
-.if ${MACHINE_ARCH} != "i386"
-FFLAGS = -O2
-.else
-FFLAGS = -O2 -malign-double -Nn802
+FFLAGS += -w
+CFLAGS += -w
+.if ${MACHINE_ARCH} == "i386"
+FFLAGS += -malign-double
+CFLAGS += -malign-double
+.endif
+F2C = f2c
+F2CFLAGS += -w -Nn802
+.if ${OSVERSION} >= 400005
+#FC = ftn77
+FC = fc
+CFLAGS += -I${PREFIX}/include
.endif
LFLAGS =
SRCS:sh = ls *.f
@@ -16,6 +24,10 @@ all: ${TARGET}
${TARGET}: ${OBJS}
${FC} ${LFLAGS} ${OBJS} -o $@
+cdgrxx.o:
+ ${F2C} ${F2CFLAGS} cdgrxx.f
+ ${CC} ${CFLAGS} -c cdgrxx.c
+
clean:
rm -f ${OBJS} ${TARGET}
diff --git a/biology/deft/files/patch-aa b/biology/deft/files/patch-aa
index e498e17..9333419 100644
--- a/biology/deft/files/patch-aa
+++ b/biology/deft/files/patch-aa
@@ -1,45 +1,32 @@
-*** ../examples/DeFT Fri Aug 28 06:35:41 1998
---- ../examples/DeFT.new Sun May 9 23:41:43 1999
-***************
-*** 1,10 ****
- #
-! # here is the shell for running DeFT
- #
-
-! setenv my_directory $HOME/DeFT_2.2/examples
-! setenv DeFT_directory $HOME/DeFT_2.2
-! setenv temp_directory /scratch/tmp$$
-
- mkdir $temp_directory
- cd $temp_directory
---- 1,11 ----
-+ #!/bin/csh -f
- #
-! # running DeFT
- #
-
-! setenv my_directory $2
-! setenv DeFT_directory /usr/local/share/doc/DeFT
-! setenv temp_directory /usr/tmp/tmp$$
-
- mkdir $temp_directory
- cd $temp_directory
-***************
-*** 19,27 ****
-
- chmod u+w $temp_directory/*
-
-! cp $DeFT_directory/source/DeFT DeFT
-!
-! time DeFT < input >& $my_directory/$1.out
-
- cp new_restart $my_directory/$1.rst
- cp espf $my_directory/$1.espf
---- 20,26 ----
-
- chmod u+w $temp_directory/*
-
-! time DeFT.exec < input >& $my_directory/$1.out
-
- cp new_restart $my_directory/$1.rst
- cp espf $my_directory/$1.espf
+--- ../examples/DeFT.orig Thu Aug 27 16:35:41 1998
++++ ../examples/DeFT Wed May 31 18:40:28 2000
+@@ -1,10 +1,14 @@
++#!/bin/csh -f
+ #
+-# here is the shell for running DeFT
++# running DeFT
+ #
+
+-setenv my_directory $HOME/DeFT_2.2/examples
+-setenv DeFT_directory $HOME/DeFT_2.2
+-setenv temp_directory /scratch/tmp$$
++setenv my_directory $2
++if (null$my_directory == null) then
++ setenv my_directory `echo $PWD`
++endif
++setenv DeFT_directory /usr/local/share/DeFT
++setenv temp_directory /usr/tmp/tmp$$
+
+ mkdir $temp_directory
+ cd $temp_directory
+@@ -19,9 +23,7 @@
+
+ chmod u+w $temp_directory/*
+
+-cp $DeFT_directory/source/DeFT DeFT
+-
+-time DeFT < input >& $my_directory/$1.out
++time DeFT.exec < input >& $my_directory/$1.out
+
+ cp new_restart $my_directory/$1.rst
+ cp espf $my_directory/$1.espf
OpenPOWER on IntegriCloud