mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Fix build for -current boxes with egcs' f77 compiler.
This commit is contained in:
parent
1d64b9c2df
commit
b285b7b5d8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=18967
@ -3,7 +3,7 @@
|
||||
# Date created: 1997-04-23
|
||||
# Whom: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp>
|
||||
#
|
||||
# $Id: Makefile,v 1.2 1999/05/07 05:12:13 taoka Exp $
|
||||
# $Id: Makefile,v 1.3 1999/05/08 08:06:43 taoka Exp $
|
||||
#
|
||||
|
||||
DISTNAME= mopac7
|
||||
@ -20,6 +20,11 @@ MAINTAINER= rmiya@cc.hirosaki-u.ac.jp
|
||||
|
||||
USE_GMAKE= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
.if ${OSVERSION} >= 400005
|
||||
MAKE_ENV+= HAVE_G2C=yes
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
${CP} ${WRKDIR}/${DISTNAME}/esp.rof ${WRKDIR}/${DISTNAME}/esp.f
|
||||
|
||||
@ -39,4 +44,4 @@ post-install:
|
||||
${INSTALL_DATA} ${WRKDIR}/mopac7-man/mopac.tex ${PREFIX}/share/doc/mopac
|
||||
${INSTALL_DATA} ${WRKDIR}/mopac7-man/mopac.dvi ${PREFIX}/share/doc/mopac
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user