diff options
author | frueauf <frueauf@pkgsrc.org> | 1999-01-14 15:48:29 +0000 |
---|---|---|
committer | frueauf <frueauf@pkgsrc.org> | 1999-01-14 15:48:29 +0000 |
commit | b678ec31633ce93535eba39c61ea93f713d9417e (patch) | |
tree | 24093fa88987f44d23cc74c65ed13a5cb657c7d0 /lang/fort77/Makefile | |
parent | 959dd8aef25ee454221d728c34e22384c140f9d4 (diff) | |
download | pkgsrc-b678ec31633ce93535eba39c61ea93f713d9417e.tar.gz |
Initial import of fort77-1.14a, the driver for f2c, a fortran to C translator.
Provided in pr 6733 by Rene Hexel with tweaks done by myself.
Diffstat (limited to 'lang/fort77/Makefile')
-rw-r--r-- | lang/fort77/Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/lang/fort77/Makefile b/lang/fort77/Makefile new file mode 100644 index 00000000000..94e4a0e2e62 --- /dev/null +++ b/lang/fort77/Makefile @@ -0,0 +1,41 @@ +# $NetBSD: Makefile,v 1.1.1.1 1999/01/14 15:48:29 frueauf Exp $ +# + +DISTNAME= fort77-1.14a +CATEGORIES= lang +MASTER_SITES= ${MASTER_SITE_SUNSITE} +MASTER_SITE_SUBDIR= devel/lang/fortran + +MAINTAINER= packages@netbsd.org + +DEPENDS+= f2c-19980913:../../lang/f2c + +# on 1.3.X systems there is not shared libf2c, thus use libf2c.a +# from the f2c package. +.if !exists(/usr/bin/f77) +F2CPKGHASNOSHAREDLIB= -e 's:-lf2c:'${PREFIX}'/lib/libf2c.a:g' +.else +F2CPKGHASNOSHAREDLIB= +.endif + +.if exists(/usr/bin/fort77) +IGNORE= "is part of your NetBSD distribution" +.endif + +ALL_TARGET= test + +USE_PERL5= YES + +post-patch: + for f in `find ${WRKDIR} -type f -print|xargs ${GREP} -l '/usr'`; \ + do \ + ${SED} -e 's:/usr:'${PREFIX}':g' <$$f >$$f.pdone && \ + ${MV} $$f.pdone $$f; \ + done + ${SED} -e 's:/lib/cpp:/usr/bin/cpp:g' ${F2CPKGHASNOSHAREDLIB} \ + < ${WRKSRC}/fort77 > ${WRKSRC}/fort77.new + ${MV} ${WRKSRC}/fort77.new ${WRKSRC}/fort77 + ${CHMOD} +x ${WRKSRC}/fort77 + ${CHMOD} +x ${WRKSRC}/tests/test.pl + +.include "../../mk/bsd.pkg.mk" |