1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/biology/tinker/files/patch-aa
Will Andrews db03c16270 Clean up this port so that it installs stuff in a more proper location
as per hier(7) and Porter's Handbook.

PR:		18929
Submitted by:	MAINTAINER
2000-06-09 04:59:14 +00:00

194 lines
6.6 KiB
Plaintext

--- ../make/Makefile.orig Mon Jul 12 10:56:36 1999
+++ ../make/Makefile Wed May 31 16:00:31 2000
@@ -9,8 +9,8 @@
##
## 1. make all Build all the TINKER executables
## 2. make rename Move the executables to BINDIR
-## 3. make remove_links Create soft links in LINKDIR
-## 4. make create_links Remove soft links from LINKDIR
+## 3. make remove_links Remove soft links in LINKDIR
+## 4. make create_links Create soft links from LINKDIR
## 6. make listing Concatenate source to tinker.txt
## 5. make clean Delete objects and executables
##
@@ -30,9 +30,9 @@
## LINKDIR Linked Copies of TINKER Executables
##
-TINKERDIR = /user/ponder/tinker
-BINDIR = $(TINKERDIR)/bin
-LINKDIR = /usr/local/bin
+TINKERDIR = ${WRKDIR}
+BINDIR = ${PREFIX}/bin
+#LINKDIR = /usr/local/bin
####################################################################
## Known Machine Types; Uncomment One of the Following Sections ##
@@ -45,13 +45,13 @@
## Compiler: DEC Fortran 77/90, V4.1
##
-F77 = /usr/bin/f77
-RM = /sbin/rm
-LIBS =
-F77FLAGS = -c
-OPTFLAGS = -fast -tune host
-LIBFLAGS = -rlv
-LINKFLAGS = -fast -non_shared -om -WL,-om_no_inst_sched
+#F77 = /usr/bin/f77
+#RM = /sbin/rm
+#LIBS =
+#F77FLAGS = -c
+#OPTFLAGS = -fast -tune host
+#LIBFLAGS = -rlv
+#LINKFLAGS = -fast -non_shared -om -WL,-om_no_inst_sched
##
## Machine: Silicon Graphics
@@ -104,6 +104,40 @@
#diagq.o:
# ${F77} ${F77FLAGS} -ffast-math diagq.f
+##
+## Machine: IntelPC
+## CPU Type: Pentium Pro
+## Oper Sys: FreeBSD 3.0
+## Compiler: f77(f2c/gcc version 2.7.2.1) || egcs g77
+##
+
+F77 = ${FC}
+RM = /bin/rm
+
+.if ${FC}==f77
+.if !defined(HAVE_G2C)
+LIBS = -lU77
+F77FLAGS = -NL400 -c -w
+LINKFLAGS = -L${PREFIX}/lib
+.else
+LIBS =
+F77FLAGS = -Wno-globals -fno-globals -c -w
+LINKFLAGS =
+.endif
+.elseif ${FC}==g77
+LIBS=
+F77FLAGS = -Wno-globals -fno-globals -c -w
+LINKFLAGS =
+.endif
+
+OPTFLAGS = ${FFLAGS} -ffast-math
+.if ${MACHINE_ARCH} == "i386"
+OPTFLAGS+= -malign-double
+.endif
+LIBFLAGS = -rcuv
+diagq.o:
+ ${F77} ${F77FLAGS} -ffast-math diagq.f
+
#################################################################
## Should not be Necessary to Change Things Below this Point ##
#################################################################
@@ -775,6 +809,7 @@
volume2.o \
writeout.o \
xyzatm.o
+ ranlib libtinker.a
alchemy.x:
${F77} ${LINKFLAGS} -o alchemy.x alchemy.o libtinker.a ${LIBS}
@@ -868,51 +903,51 @@
${F77} ${LINKFLAGS} -o xyzsybyl.x xyzsybyl.o libtinker.a ${LIBS}
rename:
- mv alchemy.x $(BINDIR)/alchemy
- mv analyze.x $(BINDIR)/analyze
- mv anneal.x $(BINDIR)/anneal
- mv archive.x $(BINDIR)/archive
- mv correlate.x $(BINDIR)/correlate
- mv crystal.x $(BINDIR)/crystal
- mv distgeom.x $(BINDIR)/distgeom
- mv document.x $(BINDIR)/document
- mv dynamic.x $(BINDIR)/dynamic
- mv gda.x $(BINDIR)/gda
- mv intedit.x $(BINDIR)/intedit
- mv intxyz.x $(BINDIR)/intxyz
- mv minimize.x $(BINDIR)/minimize
- mv minirot.x $(BINDIR)/minirot
- mv newton.x $(BINDIR)/newton
- mv newtrot.x $(BINDIR)/newtrot
- mv optimize.x $(BINDIR)/optimize
- mv optirot.x $(BINDIR)/optirot
- mv optrigid.x $(BINDIR)/optrigid
- mv path.x $(BINDIR)/path
- mv pdbxyz.x $(BINDIR)/pdbxyz
- mv protein.x $(BINDIR)/protein
- mv pss.x $(BINDIR)/pss
- mv pssrigid.x $(BINDIR)/pssrigid
- mv pssrot.x $(BINDIR)/pssrot
- mv saddle.x $(BINDIR)/saddle
- mv scan.x $(BINDIR)/scan
- mv sniffer.x $(BINDIR)/sniffer
- mv spacefill.x $(BINDIR)/spacefill
- mv superpose.x $(BINDIR)/superpose
- mv sybylxyz.x $(BINDIR)/sybylxyz
- mv testgrad.x $(BINDIR)/testgrad
- mv testhess.x $(BINDIR)/testhess
- mv testlight.x $(BINDIR)/testlight
- mv testrot.x $(BINDIR)/testrot
- mv timer.x $(BINDIR)/timer
- mv timerot.x $(BINDIR)/timerot
- mv vibrate.x $(BINDIR)/vibrate
- mv vibrot.x $(BINDIR)/vibrot
- mv xtalfit.x $(BINDIR)/xtalfit
- mv xtalmin.x $(BINDIR)/xtalmin
- mv xyzedit.x $(BINDIR)/xyzedit
- mv xyzint.x $(BINDIR)/xyzint
- mv xyzpdb.x $(BINDIR)/xyzpdb
- mv xyzsybyl.x $(BINDIR)/xyzsybyl
+ ${INSTALL_PROGRAM} alchemy.x $(BINDIR)/alchemy
+ ${INSTALL_PROGRAM} analyze.x $(BINDIR)/analyze
+ ${INSTALL_PROGRAM} anneal.x $(BINDIR)/anneal
+ ${INSTALL_PROGRAM} archive.x $(BINDIR)/archive
+ ${INSTALL_PROGRAM} correlate.x $(BINDIR)/correlate
+ ${INSTALL_PROGRAM} crystal.x $(BINDIR)/crystal
+ ${INSTALL_PROGRAM} distgeom.x $(BINDIR)/distgeom
+ ${INSTALL_PROGRAM} document.x $(BINDIR)/document
+ ${INSTALL_PROGRAM} dynamic.x $(BINDIR)/dynamic
+ ${INSTALL_PROGRAM} gda.x $(BINDIR)/gda
+ ${INSTALL_PROGRAM} intedit.x $(BINDIR)/intedit
+ ${INSTALL_PROGRAM} intxyz.x $(BINDIR)/intxyz
+ ${INSTALL_PROGRAM} minimize.x $(BINDIR)/minimize
+ ${INSTALL_PROGRAM} minirot.x $(BINDIR)/minirot
+ ${INSTALL_PROGRAM} newton.x $(BINDIR)/newton
+ ${INSTALL_PROGRAM} newtrot.x $(BINDIR)/newtrot
+ ${INSTALL_PROGRAM} optimize.x $(BINDIR)/optimize
+ ${INSTALL_PROGRAM} optirot.x $(BINDIR)/optirot
+ ${INSTALL_PROGRAM} optrigid.x $(BINDIR)/optrigid
+ ${INSTALL_PROGRAM} path.x $(BINDIR)/path
+ ${INSTALL_PROGRAM} pdbxyz.x $(BINDIR)/pdbxyz
+ ${INSTALL_PROGRAM} protein.x $(BINDIR)/protein
+ ${INSTALL_PROGRAM} pss.x $(BINDIR)/pss
+ ${INSTALL_PROGRAM} pssrigid.x $(BINDIR)/pssrigid
+ ${INSTALL_PROGRAM} pssrot.x $(BINDIR)/pssrot
+ ${INSTALL_PROGRAM} saddle.x $(BINDIR)/saddle
+ ${INSTALL_PROGRAM} scan.x $(BINDIR)/scan
+ ${INSTALL_PROGRAM} sniffer.x $(BINDIR)/sniffer
+ ${INSTALL_PROGRAM} spacefill.x $(BINDIR)/spacefill
+ ${INSTALL_PROGRAM} superpose.x $(BINDIR)/superpose
+ ${INSTALL_PROGRAM} sybylxyz.x $(BINDIR)/sybylxyz
+ ${INSTALL_PROGRAM} testgrad.x $(BINDIR)/testgrad
+ ${INSTALL_PROGRAM} testhess.x $(BINDIR)/testhess
+ ${INSTALL_PROGRAM} testlight.x $(BINDIR)/testlight
+ ${INSTALL_PROGRAM} testrot.x $(BINDIR)/testrot
+ ${INSTALL_PROGRAM} timer.x $(BINDIR)/timer
+ ${INSTALL_PROGRAM} timerot.x $(BINDIR)/timerot
+ ${INSTALL_PROGRAM} vibrate.x $(BINDIR)/vibrate
+ ${INSTALL_PROGRAM} vibrot.x $(BINDIR)/vibrot
+ ${INSTALL_PROGRAM} xtalfit.x $(BINDIR)/xtalfit
+ ${INSTALL_PROGRAM} xtalmin.x $(BINDIR)/xtalmin
+ ${INSTALL_PROGRAM} xyzedit.x $(BINDIR)/xyzedit
+ ${INSTALL_PROGRAM} xyzint.x $(BINDIR)/xyzint
+ ${INSTALL_PROGRAM} xyzpdb.x $(BINDIR)/xyzpdb
+ ${INSTALL_PROGRAM} xyzsybyl.x $(BINDIR)/xyzsybyl
remove_links:
rm -f $(LINKDIR)/alchemy