1999-04-24 22:50:24 +00:00
|
|
|
# Ports collection makefile for: f77-freebsd
|
|
|
|
# Date created: 19 JAN 1999
|
|
|
|
# Whom: Steven G. Kargl
|
|
|
|
#
|
1999-08-25 06:35:40 +00:00
|
|
|
# $FreeBSD$
|
1999-04-24 22:50:24 +00:00
|
|
|
#
|
|
|
|
|
2000-04-12 06:21:15 +00:00
|
|
|
PORTNAME= f77
|
|
|
|
PORTVERSION= 0.3
|
1999-04-24 22:50:24 +00:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= ftp://troutmask.apl.washington.edu/pub/
|
2000-04-12 06:21:15 +00:00
|
|
|
DISTNAME= f77-freebsd.0.3
|
1999-04-24 22:50:24 +00:00
|
|
|
|
|
|
|
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.
|
2000-05-29 02:40:24 +00:00
|
|
|
F77NAME= ftn77
|
1999-04-24 22:50:24 +00:00
|
|
|
|
|
|
|
.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
|
|
|
|
|
1999-05-11 07:27:03 +00:00
|
|
|
ALL_TARGET= depend all
|
1999-04-24 22:50:24 +00:00
|
|
|
MAN1= ${F77NAME}.1
|
1999-05-11 07:27:03 +00:00
|
|
|
PLIST= ${WRKDIR}/PLIST
|
1999-04-24 22:50:24 +00:00
|
|
|
|
|
|
|
do-install:
|
1999-08-27 22:30:39 +00:00
|
|
|
@${ECHO} 'bin/${F77NAME}' > ${PLIST}
|
1999-04-24 22:50:24 +00:00
|
|
|
${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
|
|
|
|
|
1999-05-11 07:27:03 +00:00
|
|
|
.include <bsd.port.mk>
|