1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

driver utility for f2c and gcc

PR:		ports/11220
Submitted by:	Steven G. Kargl <kargl@troutmask.apl.washington.edu>
This commit is contained in:
David E. O'Brien 1999-04-24 22:50:24 +00:00
parent 9da570befc
commit bbbfbf9e10
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=18116
5 changed files with 59 additions and 0 deletions

48
lang/f77/Makefile Normal file
View File

@ -0,0 +1,48 @@
# Ports collection makefile for: f77-freebsd
# Version required: 0.3
# Date created: 19 JAN 1999
# Whom: Steven G. Kargl
#
# $Id$
#
DISTNAME= f77-freebsd.0.3
PKGNAME= f77-0.3
CATEGORIES= lang
MASTER_SITES= ftp://troutmask.apl.washington.edu/pub/
MAINTAINER= kargl@troutmask.apl.washington.edu
.ifdef GNU_CPP
RUN_DEPENDS= ${PREFIX}/bin/f2c:${PORTSDIR}/lang/f2c
.else
RUN_DEPENDS= ${PREFIX}/bin/fpp:${PORTSDIR}/devel/fpp \
${PREFIX}/bin/f2c:${PORTSDIR}/lang/f2c
.endif
# Set F77NAME to the name of the Fortran 77 wrapper.
F77NAME= fc
.ifdef GNU_CPP
MAKE_ARGS= "CFLAGS= ${CFLAGS} -DPP_COMMAND='\"/usr/bin/cpp\"' \
-DF2C_COMMAND='\"${PREFIX}/bin/f2c\"'"
.else
MAKE_ARGS= "CFLAGS= ${CFLAGS} -DSUN_FPP \
-DPP_COMMAND='\"${PREFIX}/bin/fpp\"' \
-DF2C_COMMAND='\"${PREFIX}/bin/f2c\"'"
.endif
.include <bsd.port.pre.mk>
ALL_TARGET= depend all
MAN1= ${F77NAME}.1
do-install:
@echo 'bin/${F77NAME}' > ${PKGDIR}/PLIST
${INSTALL_PROGRAM} ${WRKSRC}/f77 ${PREFIX}/bin/${F77NAME}
@${SED} -e 's/F77/${F77NAME}/g' -e 's/f77/${F77NAME}/g' \
${WRKSRC}/f77.1 > ${WRKSRC}/${F77NAME}.1
${INSTALL_MAN} ${WRKSRC}/${F77NAME}.1 ${PREFIX}/man/man1
.include <bsd.port.post.mk>

1
lang/f77/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (f77-freebsd.0.3.tar.gz) = c5b7cc72f120c1ae2fe01e6628116f1a

1
lang/f77/pkg-comment Normal file
View File

@ -0,0 +1 @@
Fortran 77 driver utility for f2c and gcc

8
lang/f77/pkg-descr Normal file
View File

@ -0,0 +1,8 @@
f77 is a driver utility for f2c and gcc. By default, f77 will
install and use Sun microsystem's fpp Fortran 77 preprocessor;
the driver can be built to use cpp instead. The driver recognizes
all f2c and fpp (or cpp) options that could be used in the context
of compiling Fortran 77 source code.
Steve
kargl@troutmask.apl.washington.edu

1
lang/f77/pkg-plist Normal file
View File

@ -0,0 +1 @@
bin/fc