diff options
-rw-r--r-- | lang/fort77/Makefile | 41 | ||||
-rw-r--r-- | lang/fort77/files/md5 | 3 | ||||
-rw-r--r-- | lang/fort77/patches/patch-aa | 13 | ||||
-rw-r--r-- | lang/fort77/patches/patch-ab | 17 | ||||
-rw-r--r-- | lang/fort77/pkg/COMMENT | 1 | ||||
-rw-r--r-- | lang/fort77/pkg/DESCR | 4 | ||||
-rw-r--r-- | lang/fort77/pkg/PLIST | 3 |
7 files changed, 82 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" diff --git a/lang/fort77/files/md5 b/lang/fort77/files/md5 new file mode 100644 index 00000000000..96c8aa33b09 --- /dev/null +++ b/lang/fort77/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 1999/01/14 15:48:29 frueauf Exp $ + +MD5 (fort77-1.14a.tar.gz) = 387e4a201f8b063d1af7c2d1788af4d5 diff --git a/lang/fort77/patches/patch-aa b/lang/fort77/patches/patch-aa new file mode 100644 index 00000000000..7b5d18a898a --- /dev/null +++ b/lang/fort77/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 1999/01/14 15:48:29 frueauf Exp $ + +--- fort77.orig Sun Sep 27 17:05:10 1998 ++++ fort77 Sun Sep 27 17:07:36 1998 +@@ -12,6 +12,8 @@ + $debug = 0; + $debugcmd = ""; + ++push(@includes, "-I/usr/include"); ++ + # Loop over all options; pull all options from @ARGV and put all + # arguments into @argv. This is needed because, apparently, UNIX + # compilers acceppt options anywhere on the command line. diff --git a/lang/fort77/patches/patch-ab b/lang/fort77/patches/patch-ab new file mode 100644 index 00000000000..37eac239f6e --- /dev/null +++ b/lang/fort77/patches/patch-ab @@ -0,0 +1,17 @@ +$NetBSD: patch-ab,v 1.1.1.1 1999/01/14 15:48:29 frueauf Exp $ + +--- Makefile.orig Sun Sep 27 17:32:07 1998 ++++ Makefile Sun Sep 27 17:32:47 1998 +@@ -6,9 +6,9 @@ + test: + (cd tests; ./test.pl -v) + +-install: test +- install -m 755 fort77 $(BINDIR) +- install -m 644 fort77.1 $(MANDIR) ++install: ++ install -c -m 755 fort77 $(BINDIR) ++ install -c -m 644 fort77.1 $(MANDIR) + + clean: + rm -f *.bak *.o core */*.bak */*.o */core diff --git a/lang/fort77/pkg/COMMENT b/lang/fort77/pkg/COMMENT new file mode 100644 index 00000000000..37d70233a3b --- /dev/null +++ b/lang/fort77/pkg/COMMENT @@ -0,0 +1 @@ +the driver for f2c, a fortran to C translator diff --git a/lang/fort77/pkg/DESCR b/lang/fort77/pkg/DESCR new file mode 100644 index 00000000000..dd2daa50be0 --- /dev/null +++ b/lang/fort77/pkg/DESCR @@ -0,0 +1,4 @@ +Fort77 is a Perl driver script for the f2c Fortran to +C converter, which makes it possible to use it like +a compiler. It's a replacement for the f77 script, +and includes support for debugging. diff --git a/lang/fort77/pkg/PLIST b/lang/fort77/pkg/PLIST new file mode 100644 index 00000000000..72b84b4ebb4 --- /dev/null +++ b/lang/fort77/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 1999/01/14 15:48:29 frueauf Exp $ +bin/fort77 +man/man1/fort77.1 |