diff options
author | Steve Price <steve@FreeBSD.org> | 1999-05-24 02:20:21 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 1999-05-24 02:20:21 +0000 |
commit | b285b7b5d8fb9ace3a3308e556cd89ac729840a7 (patch) | |
tree | 8e0f548326986befb1638329de4a41591e8315f0 /biology/mopac/files | |
parent | Fix build for Alpha boxes. (diff) |
Fix build for -current boxes with egcs' f77 compiler.
Notes
Notes:
svn path=/head/; revision=18967
Diffstat (limited to 'biology/mopac/files')
-rw-r--r-- | biology/mopac/files/patch-ad | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/biology/mopac/files/patch-ad b/biology/mopac/files/patch-ad index 82335302788e..5fb91c238546 100644 --- a/biology/mopac/files/patch-ad +++ b/biology/mopac/files/patch-ad @@ -1,12 +1,25 @@ -*** Makefile.orig Sun Apr 18 22:38:02 1999 ---- Makefile Sun Apr 18 22:49:30 1999 +*** Makefile.orig Sat May 22 13:51:28 1999 +--- Makefile Sat May 22 13:56:17 1999 *************** -*** 8,13 **** ---- 8,14 ---- +*** 7,13 **** + # make Makes the MOPAC file # make clean Clean up disk to minimum config # - FFLAGS = -O2 -w -+ LFLAGS = -lf2c +! FFLAGS = -O2 -w + HDRS = SIZES + SRCS := $(shell ls *.f) + CSRCS := $(shell ls *.c) +--- 7,19 ---- + # make Makes the MOPAC file + # make clean Clean up disk to minimum config + # +! FFLAGS ?= -O2 -w +! ifdef HAVE_G2C +! LFLAGS = -lg2c +! CFLAGS += -DHAVE_G2C +! else +! LFLAGS = -lf2c +! endif HDRS = SIZES SRCS := $(shell ls *.f) CSRCS := $(shell ls *.c) @@ -16,7 +29,7 @@ SIZEDEPEND = $(SIZEDEPSRC:.f=.o) MOPAC = MOPAC7 ! MOPACSHELL = mopac - BINDIR = /usr/local/bin +! BINDIR = /usr/local/bin OWNER = root.bin $(MOPAC): SIZES $(OBJS) @@ -26,12 +39,12 @@ clean: $(RM) $(OBJS) *.trace core ---- 16,31 ---- +--- 21,36 ---- SIZEDEPSRC := $(shell grep -l -i ' INCLUDE ' *.f; true) SIZEDEPEND = $(SIZEDEPSRC:.f=.o) MOPAC = MOPAC7 ! MOPACSHELL = rmopac - BINDIR = /usr/local/bin +! BINDIR = $(PREFIX)/bin OWNER = root.bin $(MOPAC): SIZES $(OBJS) |