diff options
Diffstat (limited to 'lang')
-rw-r--r-- | lang/f77/Makefile | 48 | ||||
-rw-r--r-- | lang/f77/distinfo | 1 | ||||
-rw-r--r-- | lang/f77/pkg-comment | 1 | ||||
-rw-r--r-- | lang/f77/pkg-descr | 8 | ||||
-rw-r--r-- | lang/f77/pkg-plist | 1 |
5 files changed, 59 insertions, 0 deletions
diff --git a/lang/f77/Makefile b/lang/f77/Makefile new file mode 100644 index 000000000000..3d289d1dc526 --- /dev/null +++ b/lang/f77/Makefile @@ -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> diff --git a/lang/f77/distinfo b/lang/f77/distinfo new file mode 100644 index 000000000000..ca5c56c892e6 --- /dev/null +++ b/lang/f77/distinfo @@ -0,0 +1 @@ +MD5 (f77-freebsd.0.3.tar.gz) = c5b7cc72f120c1ae2fe01e6628116f1a diff --git a/lang/f77/pkg-comment b/lang/f77/pkg-comment new file mode 100644 index 000000000000..bbb26e06a2a4 --- /dev/null +++ b/lang/f77/pkg-comment @@ -0,0 +1 @@ +Fortran 77 driver utility for f2c and gcc diff --git a/lang/f77/pkg-descr b/lang/f77/pkg-descr new file mode 100644 index 000000000000..bd853e2baaa6 --- /dev/null +++ b/lang/f77/pkg-descr @@ -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 diff --git a/lang/f77/pkg-plist b/lang/f77/pkg-plist new file mode 100644 index 000000000000..b03b441f1909 --- /dev/null +++ b/lang/f77/pkg-plist @@ -0,0 +1 @@ +bin/fc |